Skip to content

Commit aaf4ed7

Browse files
authored
Merge pull request #170 from LiliaFramework/codex/rename-version.json-to-modules.json
Move modules JSON to versioning docs directory
2 parents 3a64392 + e560178 commit aaf4ed7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ jobs:
281281
else
282282
rsync -a built-docs/ lilia/documentation/
283283
fi
284-
mkdir -p lilia/documentation/docs
284+
mkdir -p lilia/documentation/docs/versioning
285285
if [ -f lilia/documentation/modules.json ]; then
286-
mv lilia/documentation/modules.json lilia/documentation/docs/modules.json
286+
mv lilia/documentation/modules.json lilia/documentation/docs/versioning/modules.json
287287
fi
288288
- name: commit-push-docs
289289
shell: bash

generate_about_md.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
const fs = require('fs')
22
const path = require('path')
33

4-
let versionPath = path.join(__dirname, 'version.json')
5-
if (!fs.existsSync(versionPath)) {
6-
const alternativePath = path.join(__dirname, 'documentation', 'version.json')
4+
let modulesPath = path.join(__dirname, 'modules.json')
5+
if (!fs.existsSync(modulesPath)) {
6+
const alternativePath = path.join(__dirname, 'documentation', 'modules.json')
77
if (fs.existsSync(alternativePath)) {
8-
versionPath = alternativePath
8+
modulesPath = alternativePath
99
} else {
1010
process.exit(1)
1111
}
1212
}
1313

1414
let modules
1515
try {
16-
modules = JSON.parse(fs.readFileSync(versionPath, 'utf8'))
16+
modules = JSON.parse(fs.readFileSync(modulesPath, 'utf8'))
1717
} catch {
1818
process.exit(1)
1919
}

0 commit comments

Comments
 (0)