Skip to content

Commit a5e04f8

Browse files
authored
Merge pull request #1365 from andrewnicols/docusaurus3.8
[repo] Bump to Docusaurus 3.8
2 parents 21b6b56 + f9395ce commit a5e04f8

File tree

14 files changed

+5957
-8811
lines changed

14 files changed

+5957
-8811
lines changed

.github/workflows/fetch-obsolete-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- uses: actions/setup-node@v4
2626
with:
27-
node-version: 18.x
27+
node-version-file: '.nvmrc'
2828
cache: yarn
2929

3030
- name: Install dependencies

.github/workflows/lint-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Setup Node.js environment
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: "18"
24+
node-version-file: '.nvmrc'
25+
cache: yarn
2526

2627
- name: Install dependencies
2728
run: yarn install --immutable

.github/workflows/markdown-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
- name: Setup Node.js environment
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: "18"
16+
node-version-file: '.nvmrc'
17+
cache: yarn
1718

1819
- name: Install dependencies
1920
run: yarn install --immutable

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 18.x
18+
node-version-file: '.nvmrc'
1919
cache: yarn
2020

2121
- name: Install dependencies

.github/workflows/update-moodle-metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 18.x
29+
node-version-file: '.nvmrc'
3030
cache: yarn
3131

3232
- name: Install dependencies

.github/workflows/update-wikimedia.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-node@v4
2424
with:
25-
node-version: 18.x
25+
node-version-file: '.nvmrc'
2626
cache: yarn
2727

2828
- name: Install dependencies

docs/apis/core/reportbuilder/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ This would cause the report to return results for users with the first name of _
606606

607607
The stress test uses helper methods which:
608608

609-
- Add and remove every colum individually from a report and ensures that is still returns data without error, it also tests the column can be sorted if that has been enabled.
609+
- Add and remove every column individually from a report and ensures that is still returns data without error, it also tests the column can be sorted if that has been enabled.
610610
- Individually aggregates a report on each column
611611
- Individually applies each filter
612612

docusaurus.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ const remarkPlugins = [
4343
UnversionedDocsLinksRemark,
4444
];
4545

46+
// See https://docs.netlify.com/configure-builds/environment-variables/
4647
const isDeployPreview = !!process.env.NETLIFY && process.env.CONTEXT === 'deploy-preview';
48+
const isNetlifyProductionDeployment = process.env.NETLIFY && process.env.CONTEXT === 'production';
49+
const isProductionDeployment = isNetlifyProductionDeployment;
4750

4851
const getBaseUrl = () => {
4952
if (typeof process.env.BASEURL !== 'undefined') {
@@ -60,6 +63,7 @@ const config = {
6063
tagline: 'Nurturing Moodle Developers',
6164
future: {
6265
experimental_faster: true,
66+
v4: true,
6367
},
6468

6569
// url: 'https://develop.moodle.org',
@@ -139,6 +143,19 @@ const config = {
139143
}),
140144
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
141145
plugins: [
146+
function disableExpensiveBundlerOptimizationPlugin() {
147+
// As documented in https://github.com/facebook/docusaurus/discussions/11199.
148+
return {
149+
name: 'disable-expensive-bundler-optimizations',
150+
configureWebpack(_config, isServer) {
151+
return {
152+
optimization: {
153+
concatenateModules: isProductionDeployment ? !isServer : false,
154+
},
155+
};
156+
},
157+
};
158+
},
142159
[
143160
'@docusaurus/plugin-content-docs',
144161
{

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"spell": "cspell '*.md' '*.mdx' '**/*.md' '**/*.mdx' 'docs/*.md' 'docs/*.mdx' 'docs/**/*.md' 'docs/**/*.mdx' 'general/*.md' 'general/*.mdx' 'general/**/*.md' 'general/**/*.mdx'"
3333
},
3434
"dependencies": {
35-
"@docusaurus/core": "^3.7.0",
36-
"@docusaurus/faster": "^3.7.0",
37-
"@docusaurus/plugin-pwa": "^3.7.0",
38-
"@docusaurus/preset-classic": "^3.7.0",
39-
"@docusaurus/theme-mermaid": "^3.7.0",
35+
"@docusaurus/core": "^3.8.0",
36+
"@docusaurus/faster": "^3.8.0",
37+
"@docusaurus/plugin-pwa": "^3.8.0",
38+
"@docusaurus/preset-classic": "^3.8.0",
39+
"@docusaurus/theme-mermaid": "^3.8.0",
4040
"@emotion/react": "^11.10.5",
4141
"@emotion/styled": "^11.10.5",
4242
"@mdx-js/react": "^3.0.0",

src/components/HomepageFeatures/styles.module.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
.feature-link {
1818
position: absolute;
19-
top: 0;
20-
right: 0;
21-
bottom: 0;
22-
left: 0;
19+
inset: 0;
2320
z-index: 1;
2421
content: "";
2522
}
@@ -31,7 +28,7 @@
3128
}
3229

3330
.card {
34-
flex: 0 0 30%;
31+
flex: 0 0 var(--ifm-col-width);
3532
padding: 1rem;
3633
max-width: none;
3734
}

0 commit comments

Comments
 (0)