Skip to content

Commit 89fd17d

Browse files
[chore] Fully Automate Doc Generation via GHA
1 parent 105bc8c commit 89fd17d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
2424
- name: Build Sphinx Documentation
2525
run: |
26+
make docs
2627
cd docs
2728
make html
2829
@@ -32,5 +33,3 @@ jobs:
3233
github_token: ${{ secrets.GITHUB_TOKEN }}
3334
publish_dir: ./docs/_build/html
3435
keep_files: false
35-
36-

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ install-deps:
2929
.PHONY: docs
3030
docs:
3131
sphinx-apidoc -f -o docs/ ./cdp/
32+
33+
.PHONY: local-docs
34+
local-docs: docs
35+
cd docs && make html && open ./_build/html/index.html

0 commit comments

Comments
 (0)