File tree 2 files changed +33
-13
lines changed
2 files changed +33
-13
lines changed Original file line number Diff line number Diff line change 7
7
build-and-deploy :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - name : Checkout 🛎️
11
- uses : actions/checkout@v3
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
12
12
13
- - name : Install dependencies
14
- run : |
15
- sudo apt-get install -y python3-sphinx python3-sphinx-rtd-theme
16
-
17
- - name : Build
18
- run : |
19
- cd docs && make html
13
+ - name : Install pandoc
14
+ uses : pandoc/actions/setup@v1
15
+ with :
16
+ version : 3.5
20
17
21
- - name : Deploy
22
- uses : JamesIves/github-pages-deploy-action @v4.3.3
18
+ - name : Setup Node
19
+ uses : actions/setup-node @v4
23
20
with :
24
- branch : gh-pages
25
- folder : docs/_build/html
21
+ node-version : 20
22
+ cache : npm
23
+
24
+ - name : Build md files
25
+ run : node ./scripts/generate_md.mjs
26
+
27
+ - name : Show status
28
+ run : git status
29
+
30
+ # - name: Install dependencies
31
+ # run: npm ci
32
+ #
33
+ # - name: Build with VitePress
34
+ # run: npm run docs:build
35
+
36
+ # - name: Build
37
+ # run: |
38
+ # cd docs && make html
39
+
40
+ # - name: Deploy
41
+ # uses: JamesIves/[email protected]
42
+ # with:
43
+ # branch: gh-pages
44
+ # folder: docs/_build/html
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
8
8
9
9
const generateMd = async ( ) => {
10
10
const files = fs . readdirSync ( path . resolve ( __dirname , '../docs' ) )
11
+ fs . rmdirSync ( path . resolve ( __dirname , '../docs_md' ) , { recursive : true } )
11
12
fs . mkdirSync ( path . resolve ( __dirname , '../docs_md' ) )
12
13
for await ( const file of files ) {
13
14
execSync ( `pandoc --lua-filter=${ __dirname } /pandoc_fix_links.lua -s ${ __dirname } /../docs/${ file } -o ${ __dirname } /../docs_md/${ path . parse ( file ) . name } .md -t gfm` )
You can’t perform that action at this time.
0 commit comments