Skip to content

Commit 33e337c

Browse files
authored
chore: update Docusaurus to v3.0.1
Included minor changes: * Update Node to 18.18.2 * Add 'self' to connect-src to fix website search * Remove sass plugin
1 parent c068503 commit 33e337c

File tree

15 files changed

+9161
-20897
lines changed

15 files changed

+9161
-20897
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.19.1
1+
v18.18.2

content/news/2022-07-25-jsonforms-3-0-0-rc0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ author_image_url: /img/logo.svg
88
---
99
Great news! We are in the final stretches of the long awaited JSON Forms 3.0 release. Today we published the release candidate "3.0.0-rc.0" 🎉
1010

11-
We welcome any feedback of curious users. Any questions? Check out our community forum <http://jsonforms.discourse.group>.
11+
We welcome any feedback of curious users. Any questions? Check out our [community forum](http://jsonforms.discourse.group).

content/pages/assets/index.module.css

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
/* stylelint-disable docusaurus/copyright-header */
2+
/**
3+
* CSS files with the .module.css suffix will be treated as CSS modules
4+
* and scoped locally.
5+
*/
6+
7+
.heroBanner {
8+
padding: 4rem 0;
9+
text-align: center;
10+
position: relative;
11+
overflow: hidden;
12+
color: #000;
13+
}
14+
15+
.heroBanner h1 {
16+
font-weight: normal;
17+
}
18+
19+
.heroBanner .subtitle {
20+
font-size: 1.5rem;
21+
line-height: 1.5;
22+
margin-bottom: 0;
23+
}
24+
25+
.heroBanner .subsubtitle {
26+
font-size: 1.3rem;
27+
line-height: 1.5;
28+
color: #747474;
29+
margin-bottom: 10px;
30+
}
31+
32+
@media screen and (max-width: 966px) {
33+
.heroBanner {
34+
padding: 2rem;
35+
}
36+
}
37+
38+
.logo {
39+
max-width: 200px;
40+
filter: invert(1);
41+
}
42+
43+
.home h2 {
44+
text-align: center;
45+
padding-top: 20px;
46+
padding-bottom: 20px;
47+
font-size: 2rem;
48+
}
49+
50+
.home h3 {
51+
text-align: center;
52+
padding-top: 20px;
53+
padding-bottom: 20px;
54+
font-size: 1.25rem;
55+
}
56+
57+
.home section {
58+
padding: 2rem;
59+
}
60+
61+
.buttons {
62+
display: flex;
63+
align-items: center;
64+
justify-content: center;
65+
--ifm-color-secondary: #ababab;
66+
}
67+
68+
.sectionFeatures {
69+
display: flex;
70+
align-items: center;
71+
padding: 2rem 0;
72+
width: 100%;
73+
background: var(--background-inverted);
74+
color: var(--background);
75+
}
76+
77+
.sectionFeatures .customFeatureIcon {
78+
height: 3em !important;
79+
width: auto !important;
80+
font-size: 1.5rem;
81+
}
82+
83+
.sectionFeatures .featureIcon {
84+
height: 4em !important;
85+
width: auto !important;
86+
font-size: 1.5rem;
87+
fill: var(--background);
88+
}
89+
90+
.sectionFeatures p {
91+
text-align: center;
92+
}
93+
94+
.sectionDemo {
95+
border-top: 1px solid #000;
96+
}
97+
98+
.sectionDemo .frameworkLogos {
99+
text-align: center;
100+
}
101+
102+
.sectionDemo .frameworkLogos svg {
103+
height: 80px;
104+
width: 80px;
105+
}
106+
107+
.sectionDemo .demoContent {
108+
margin: auto;
109+
max-width: 900px;
110+
}
111+
112+
.sectionNews {
113+
max-width: 700px;
114+
margin: auto;
115+
}
116+
117+
.sectionNews .newsCard {
118+
background: #f5f5f5;
119+
}
120+
121+
.sectionNews .newsButton {
122+
margin: 20px auto;
123+
text-align: center;
124+
display: block;
125+
}
126+
127+
.sectionNews .newsButton:hover {
128+
text-decoration: none;
129+
}
130+
131+
.sectionArchitecture {
132+
background: #f5f5f5;
133+
}
134+
135+
.sectionArchitecture h2 {
136+
color: #000;
137+
}
138+
139+
.sectionArchitectureContent {
140+
max-width: 1000px;
141+
margin: auto;
142+
padding: 2em;
143+
align-items: center;
144+
}
145+
146+
.architectureDiagram {
147+
max-width: 900px;
148+
width: 100%;
149+
margin: auto;
150+
display: block;
151+
}

content/pages/assets/index.module.scss

Lines changed: 0 additions & 142 deletions
This file was deleted.

content/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Layout from '@theme/Layout';
44
import Link from '@docusaurus/Link';
55
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
66
import useBaseUrl from '@docusaurus/useBaseUrl';
7-
import styles from './assets/index.module.scss';
7+
import styles from './assets/index.module.css';
88
import corePackageJson from '@jsonforms/core/package';
99

1010
import SchemaIcon from '../../static/img/schemaIcon.svg';

content/pages/support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import useBaseUrl from '@docusaurus/useBaseUrl';
33
import Layout from '@theme/Layout';
4-
import styles from './assets/support.module.scss';
4+
import styles from './assets/support.module.css';
55

66
function Support() {
77
return (

docusaurus.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module.exports = {
2424
defaultMode: 'light',
2525
disableSwitch: true,
2626
},
27+
prism: {
28+
additionalLanguages: ['json'],
29+
},
2730
navbar: {
2831
title: 'JSON Forms',
2932
style: 'dark',
@@ -121,7 +124,7 @@ module.exports = {
121124
'@docusaurus/preset-classic',
122125
{
123126
theme: {
124-
customCss: require.resolve('./src/css/global.scss'),
127+
customCss: require.resolve('./src/css/global.css'),
125128
},
126129
docs: false,
127130
blog: false,
@@ -131,7 +134,6 @@ module.exports = {
131134
],
132135
plugins: [
133136
path.resolve(__dirname, './src/custom-webpack'),
134-
'docusaurus-plugin-sass',
135137
'docusaurus2-dotenv',
136138
[
137139
'@docusaurus/plugin-content-pages',

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
[headers.values]
3535
Access-Control-Allow-Origin = "*"
3636
Referrer-Policy = "strict-origin-when-cross-origin"
37-
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-eval' 'sha256-mC5lwOEBZZZXJoN3sDvzxnxAdNIEKujq9NSXgmhc4HM=' 'sha256-iIf+c/EMxKD/FXoUDy0YsZ3mE+JhzPsmR+aVbrjkdwM=' static.cloudflareinsights.com cloudflareinsights.com/cdn-cgi/rum; connect-src cloudflareinsights.com/cdn-cgi/rum; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-ancestors 'self';"
37+
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-eval' 'sha256-mC5lwOEBZZZXJoN3sDvzxnxAdNIEKujq9NSXgmhc4HM=' 'sha256-iIf+c/EMxKD/FXoUDy0YsZ3mE+JhzPsmR+aVbrjkdwM=' static.cloudflareinsights.com cloudflareinsights.com/cdn-cgi/rum; connect-src 'self' cloudflareinsights.com/cdn-cgi/rum; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-ancestors 'self';"
3838
X-Frame-Options = "SAMEORIGIN"
3939
X-Content-Type-Options = "nosniff"
4040
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"

0 commit comments

Comments
 (0)