File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 1212 - name : Checkout code
1313 uses : actions/checkout@v4
1414
15+ - name : Disable Jekyll
16+ run : touch docs/.nojekyll
17+
1518 - name : Set up Python
1619 uses : actions/setup-python@v5
1720 with :
2023 - name : Install Python dependencies
2124 run : pip install -r requirements.txt
2225
23-
24- - name : Build Sphinx docs
25- run : |
26- sphinx-build -b html docs docs/_build/html
27-
2826 - name : Export OpenAPI schema
2927 env :
3028 SECRET_KEY : dummy
@@ -33,20 +31,15 @@ jobs:
3331 SQLITE_PATH : /tmp/pynewsdb.db
3432 SQLITE_URL : sqlite+aiosqlite:////tmp/pynewsdb.db
3533 PYTHONPATH : .
36- run : python scripts/export_openapi.py app.main:app openapi.json
37-
38- - name : Set up Node.js
39- uses : actions/setup-node@v4
40- with :
41- node-version : ' 20'
34+ run : python scripts/export_openapi.py app.main:app docs/openapi.json
4235
43- - name : Generate static docs (Redoc)
44- run : npx --yes redoc-cli bundle openapi.json -o docs/index. html
36+ - name : Build Sphinx docs (com Redoc embutido )
37+ run : sphinx-build -b html docs/ docs/_build/ html
4538
4639 - name : Upload built site to Pages
4740 uses : actions/upload-pages-artifact@v3
4841 with :
49- path : docs
42+ path : docs/_build/html
5043
5144 deploy :
5245 needs : build-docs
You can’t perform that action at this time.
0 commit comments