Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/pydoc in book #99

Merged
merged 5 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/deploy-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@ jobs:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
- name: Build python docs

- name: Install dependencies for python docs
run:
sudo apt update
sudo apt install pipx
pipx ensurepath
pipx install pydoc-markdown
pydoc-markdown -I python/ -p fastsim --render-toc > docs/src/python_docs.md

- name: Generate python docs
working-directory: ${{runner.workspace}}/fastsim/
run:
pydoc-markdown -I python/ --render-toc > docs/src/python-doc.md

- name: Setup Pages
id: pages
Expand Down
2 changes: 1 addition & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
book/
src/python_docs.md
src/python-doc.md
2 changes: 1 addition & 1 deletion docs/src/how-to-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Run the following in the repository root directory:
1. If any python files were modified,
1. Install [pipx](https://github.com/pypa/pipx#install-pipx)
1. Install [pydoc-markdown](https://niklasrosenstein.github.io/pydoc-markdown/#installation-)
1. run `pydoc-markdown -I python/ -p fastsim --render-toc > docs/src/python_docs.md`. Do not modify this file manually.
1. run `pydoc-markdown -I python/ --render-toc > docs/src/python-doc.md`. Do not modify this file manually.
1. Run `mdbook serve --open docs/`

## Publishing
Expand Down
Loading