Skip to content

Commit 9296bd2

Browse files
committed
[docs] Migrate releases docs
This change also moves all version data for all released versions to a JSON structure containing all relevant information for all Moodle releases since 1.4.5. This is validated using a json-schema. New React elements are introduced for: - `ReleaseTable` - to list all releases for a major release - `SupportedReleases` - to list and summarise only the supported releases All utility functions have been moved to a new `utils/SupportedReleases` file defining the types and providign useful helpers. The sidebar configuration has been updated to use the new data source, but we need to improve general infrastructure to allow the docusaurus configuration to load typescript files before it can be updated to use the new utility. That will be investigated in a separate issue.
1 parent c81a074 commit 9296bd2

File tree

31 files changed

+2925
-363
lines changed

31 files changed

+2925
-363
lines changed

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
],
88
"src/**/*.{js,jsx,ts,tsx,mjs}": [
99
"cspell --no-must-find-files --no-progress"
10+
],
11+
"data/versions.json": [
12+
"yarn ajv --spec=draft2019 validate -s static/schema/versions.json -d"
1013
]
1114
}

.markdownlint-cli2.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ config.MD033 = {
163163
"ValidExample",
164164
"InvalidExample",
165165
"ReactPlayer",
166+
"Link",
166167
]
167168
};
168169

data/migratedPages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,9 @@ Question_bank_plugins:
11591159
Release_process:
11601160
- filePath: "/general/development/process/release.md"
11611161
slug: "/general/development/process/release"
1162+
Releases:
1163+
- filePath: "/general/releases.md"
1164+
slug: "/general/releases"
11621165
Repository_plugins:
11631166
- filePath: "/docs/apis/plugintypes/repository/index"
11641167
slug: "/docs/apis/plugintypes/repository"

data/supportedVersions.json

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

0 commit comments

Comments
 (0)