File tree Expand file tree Collapse file tree 3 files changed +48
-11
lines changed
Expand file tree Collapse file tree 3 files changed +48
-11
lines changed Original file line number Diff line number Diff line change @@ -17,28 +17,18 @@ jobs:
1717 runs-on : ubuntu-latest
1818 timeout-minutes : 30
1919 steps :
20- # - name: Install git LFS (and tools needed by hooks)
21- # run: |
22- # apt-get update
23- # apt-get install -y --no-install-recommends git git-lfs clang-format ca-certificates make
24- # git --version
25- # git lfs version
26-
27- # Checkout Code
2820 - name : Checkout Code
2921 uses : actions/checkout@v4
3022 with :
3123 clean : true
3224 fetch-depth : 0
3325 fetch-tags : true
34- # Build docs
3526 - name : Build docs
3627 run : |
3728 cd docs
3829 pip3 install -r requirements.txt
3930 make SPHINXOPTS=-W multi-docs
4031 touch ./_build/.nojekyll
41- # Deploy to gh-pages
4232 - name : Deploy to gh-pages
4333 uses : peaceiris/actions-gh-pages@v3
4434 with :
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ jobs:
109109 # # --------------------------------------------------------
110110 build_docs :
111111 name : Build docs
112- # needs: [lint_precommit] # ADD BACK IN BEFORE MERGE
112+ needs : [lint_precommit]
113113 runs-on : ubuntu-latest
114114 steps :
115115 - name : Checkout Code
Original file line number Diff line number Diff line change 1+ # ` nvblox ` Dox - Developer Guide
2+
3+ To build the ` nvblox ` docs locally follow the following instructions.
4+
5+ Enter the ` nvblox ` docker.
6+
7+ ```
8+ ./docker/run_docker.sh
9+ ```
10+
11+ Deactivate the ` nvblox ` venv
12+
13+ ```
14+ deactivate
15+ ```
16+
17+ Install a ` git-lfs ` for downloading images used in the docs.
18+
19+ ```
20+ sudo apt-get update && sudo apt-get install git-lfs
21+ ```
22+
23+ Create a ` venv ` and install the dependencies
24+
25+ ```
26+ python3 -m venv venv_docs
27+ source venv_docs/bin/activate
28+ cd ./docs
29+ python3 -m pip install -r requirements.txt
30+ ```
31+
32+ To make the current version of docs
33+
34+ ```
35+ make html
36+ ```
37+
38+ To view the docs, navigate to ` nvblox/docs/_build/current/html/index.html ` , and double-click.
39+
40+ To make the multi version docs. Note that this will only build docs for the set branches, such
41+ as release, main etc. Only docs committed to these branches will be reflected.
42+
43+ ```
44+ make multi-docs
45+ ```
46+
47+ To view the multi version docs, navigate to ` nvblox/docs/_build/index.html ` , and double-click.
You can’t perform that action at this time.
0 commit comments