File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11const fs = require ( 'fs' )
22const 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
1414let modules
1515try {
16- modules = JSON . parse ( fs . readFileSync ( versionPath , 'utf8' ) )
16+ modules = JSON . parse ( fs . readFileSync ( modulesPath , 'utf8' ) )
1717} catch {
1818 process . exit ( 1 )
1919}
You can’t perform that action at this time.
0 commit comments