Skip to content

Commit 5da898f

Browse files
authored
Updates for Docusaurus v4 future-proofing (#207)
* Move deprecated setting * Update to new stable class names --------- Signed-off-by: Dan Barr <[email protected]> Co-authored-by: Dan Barr <[email protected]>
1 parent 2d21b9f commit 5da898f

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const config: Config = {
4141
projectName: 'docs-website', // Usually your repo name.
4242

4343
onBrokenLinks: 'throw',
44-
onBrokenMarkdownLinks: 'warn',
44+
onBrokenAnchors: 'warn',
4545

4646
// Even if you don't use internationalization, you can use this field to set
4747
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -58,6 +58,10 @@ const config: Config = {
5858
admonitions: false,
5959
headingIds: true,
6060
},
61+
hooks: {
62+
onBrokenMarkdownLinks: 'warn',
63+
onBrokenMarkdownImages: 'throw',
64+
},
6165
},
6266

6367
themes: ['@docusaurus/theme-mermaid', 'docusaurus-json-schema-plugin'],

src/css/custom.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,17 @@ thead th {
167167
);
168168
}
169169

170-
.navbar .DocSearch-Button {
170+
.theme-layout-navbar .DocSearch-Button {
171171
border-style: solid;
172172
border-width: 1px;
173173
height: 40px;
174174
}
175175

176-
.navbar .DocSearch-Button {
176+
.theme-layout-navbar .DocSearch-Button {
177177
border-color: #dcdcdc;
178178
}
179179

180-
[data-theme='dark'] .navbar .DocSearch-Button {
180+
[data-theme='dark'] .theme-layout-navbar .DocSearch-Button {
181181
border-color: #333333;
182182
}
183183

@@ -211,23 +211,23 @@ thead th {
211211
}
212212

213213
/* Tab components */
214-
.tabs-container {
214+
.theme-tabs-container {
215215
background-color: var(--ifm-card-background-color);
216216
border: 1px solid var(--ifm-table-border-color);
217217
border-radius: var(--ifm-card-border-radius);
218218
margin-bottom: 1rem;
219219
}
220220

221-
.tabs-container > ul {
221+
.theme-tabs-container > ul {
222222
background-color: #f8fafc;
223223
}
224224

225-
[data-theme='dark'] .tabs-container > ul {
225+
[data-theme='dark'] .theme-tabs-container > ul {
226226
background-color: #1a1c1f;
227227
border-color: #1a1a1c;
228228
}
229229

230-
.tabs-container > ul {
230+
.theme-tabs-container > ul {
231231
border-bottom: 1px solid #f0f0f0;
232232
border-top-left-radius: var(--ifm-card-border-radius);
233233
border-top-right-radius: var(--ifm-card-border-radius);

src/css/footer.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
padding: 0px 12px;
3030
}
3131

32-
.footer__col:first-child {
32+
.theme-layout-footer-column:first-child {
3333
max-width: 400px;
3434
margin-right: auto;
3535
}
3636

37-
.footer__col:last-child {
37+
.theme-layout-footer-column:last-child {
3838
max-width: 200px;
3939
margin-right: 0px;
4040
}

0 commit comments

Comments
 (0)