-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Adds versioning to the docs #1247
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
Merged
Merged
Changes from 83 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
d52d738
Add docs versioning
sheikh-nv 7db6374
Add newline
sheikh-nv d12ad61
Formatting
sheikh-nv b10b404
Merge pull request #1 from sheikh-nv/docs_versioning
sheikh-nv ed9e9f1
Update docs.yaml
sheikh-nv 416caec
Update docs.yaml
sheikh-nv 016b52f
remove tag whitelist
sheikh-nv 339dfe5
Split branch and tags
sheikh-nv 335d11f
Revert changes
sheikh-nv 11e3ca8
do doc build
sheikh-nv 52f42d6
remove smv_tag_whitelist
sheikh-nv 2af4852
test sphinx metadata
sheikh-nv 211734f
get references
sheikh-nv 150d9b4
fetch tags
sheikh-nv ba68411
do docs build
sheikh-nv 86ec3fe
add redirect from root
sheikh-nv fdc4014
ignore tags with v0
sheikh-nv 54154da
Reduce versions header size
sheikh-nv 5992eff
Merge branch 'isaac-sim:main' into main
sheikh-nv d63198b
Merge branch 'main' of https://github.com/sheikh-nv/IsaacLab
sheikh-nv ddbc8c7
move versions to top of side bar
sheikh-nv 252b5a1
clean up for pull request
sheikh-nv cb97f18
Merge branch 'main' into main
dee0c11
Update docs.yaml
07dbf27
Update .github/workflows/docs.yaml
7ce3d1d
Update conf.py
2ac32c0
Update requirements.txt
c0cac72
Update .github/workflows/docs.yaml
2353242
Update make.bat
cafbd51
Update .github/workflows/docs.yaml
d823822
Update .github/workflows/docs.yaml
385d632
Update .github/workflows/docs.yaml
874ad84
Update docs/conf.py
391cbcb
Update .github/workflows/docs.yaml
26e8cb5
Update docs/conf.py
28136ba
Update docs/conf.py
211b326
Update docs/conf.py
142c955
Update docs/conf.py
26c6eb0
Update .github/workflows/docs.yaml
e82369b
Update .github/workflows/docs.yaml
7e26bda
Update .github/workflows/docs.yaml
f83fd5a
Update docs/conf.py
a72d1be
Update docs/conf.py
bcb7899
Update docs/conf.py
538b43c
Update .github/workflows/docs.yaml
e1c2d72
Update .github/workflows/docs.yaml
43d6c31
Update docs/conf.py
3df8d88
Update .github/workflows/docs.yaml
ee894ff
Update .github/workflows/docs.yaml
9e38c80
Update .github/workflows/docs.yaml
e80cfc3
Update docs/conf.py
2900814
Update docs/conf.py
1e88ca6
Update .github/workflows/docs.yaml
f6c5ef7
Update .github/workflows/docs.yaml
868df37
Update docs/conf.py
3ea4273
Update .github/workflows/docs.yaml
4f7f8ad
Update docs/conf.py
4a9ac41
Update docs/conf.py
4fdc8df
Update .github/workflows/docs.yaml
feac7f1
Update docs.yaml
e084ded
Update docs.yaml
1294b4a
Update docs.yaml
aa11f9b
Update docs.yaml
10b2095
Update docs/conf.py
ca541e1
Update docs.yaml
f21cbe0
Update .github/workflows/docs.yaml
c5306aa
Update docs.yaml
0a454d0
Update docs/_redirect/index.html
fa9efdf
Update docs/_redirect/index.html
7dabe8c
Update docs.yaml
4435121
Update Makefile
fa2951e
Update .github/workflows/docs.yaml
6a52b87
Update .github/workflows/docs.yaml
ba3ca0c
Update docs.yaml
86489cf
Update Makefile
36f6b7b
Update versioning.html
a34beda
Update make.bat
e0af2b6
Update docs.yaml
2ba6b72
Update README.md
b43760d
Update docs.yaml
5c2fa91
Update versioning.html
c2aa1d7
Update isaaclab.bat
f865fe5
Update isaaclab.sh
dc809b5
Update .github/workflows/docs.yaml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,75 @@ | ||
| # Building Documentation | ||
|
|
||
| We use [Sphinx](https://www.sphinx-doc.org/en/master/) with the [Book Theme](https://sphinx-book-theme.readthedocs.io/en/stable/) for maintaining the documentation. | ||
| We use [Sphinx](https://www.sphinx-doc.org/en/master/) with the [Book Theme](https://sphinx-book-theme.readthedocs.io/en/stable/) for maintaining and generating our documentation. | ||
|
|
||
| > **Note:** To build the documentation, we recommend creating a virtual environment to avoid any conflicts with system installed dependencies. | ||
| > **Note:** To avoid dependency conflicts, we strongly recommend using a Python virtual environment to isolate the required dependencies from your system's global Python environment. | ||
|
|
||
| Execute the following instructions to build the documentation (assumed from the top of the repository): | ||
| ## Current-Version Documentation | ||
|
|
||
| 1. Install the dependencies for [Sphinx](https://www.sphinx-doc.org/en/master/): | ||
| This section describes how to build the documentation for the current version of the project. | ||
|
|
||
| ```bash | ||
| # enter the location where this readme exists | ||
| cd docs | ||
| # install dependencies | ||
| pip install -r requirements.txt | ||
| ``` | ||
| <details open> | ||
| <summary><strong>Linux</strong></summary> | ||
|
|
||
| 2. Generate the documentation file via: | ||
| ```bash | ||
| # 1. Navigate to the docs directory and install dependencies | ||
| cd docs | ||
| pip install -r requirements.txt | ||
|
|
||
| ```bash | ||
| # make the html version | ||
| make html | ||
| ``` | ||
| # 2. Build the current documentation | ||
| make current-docs | ||
|
|
||
| 3. The documentation is now available at `docs/_build/html/index.html`: | ||
| # 3. Open the current docs | ||
| xdg-open _build/current/index.html | ||
| ``` | ||
| </details> | ||
|
|
||
| ```bash | ||
| # open on default browser | ||
| xdg-open _build/html/index.html | ||
| ``` | ||
| <details> <summary><strong>Windows</strong></summary> | ||
|
|
||
| ```batch | ||
| :: 1. Navigate to the docs directory and install dependencies | ||
| cd docs | ||
| pip install -r requirements.txt | ||
|
|
||
| :: 2. Build the current documentation | ||
| make current-docs | ||
|
|
||
| :: 3. Open the current docs | ||
| start _build\current\index.html | ||
| ``` | ||
| </details> | ||
|
|
||
|
|
||
| ## Multi-Version Documentation | ||
|
|
||
| This section describes how to build the multi-version documentation, which includes previous tags and the main branch. | ||
|
|
||
| <details open> <summary><strong>Linux</strong></summary> | ||
|
|
||
| ```bash | ||
| # 1. Navigate to the docs directory and install dependencies | ||
| cd docs | ||
| pip install -r requirements.txt | ||
|
|
||
| # 2. Build the multi-version documentation | ||
| make multi-docs | ||
|
|
||
| # 3. Open the multi-version docs | ||
| xdg-open _build/index.html | ||
| ``` | ||
| </details> | ||
|
|
||
| <details> <summary><strong>Windows</strong></summary> | ||
|
|
||
| ```batch | ||
| :: 1. Navigate to the docs directory and install dependencies | ||
| cd docs | ||
| pip install -r requirements.txt | ||
|
|
||
| :: 2. Build the multi-version documentation | ||
| make multi-docs | ||
|
|
||
| :: 3. Open the multi-version docs | ||
| start _build\index.html | ||
| ``` | ||
| </details> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>Redirecting to the latest Isaac Lab documentation</title> | ||
| <meta charset="utf-8"> | ||
| <meta http-equiv="refresh" content="0; url=./main/index.html"> | ||
| </head> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| {% if versions %} | ||
| <nav class="bd-links bd-docs-nav"> | ||
| <div class="bd-toc-item navbar-nav"> | ||
| <ul class="nav bd-sidenav"> | ||
| <li class="toctree-l1 has-children" style="display: flex; justify-content: center; align-items: center; flex-direction: column;"> | ||
| <div style ="text-align:center;"> | ||
| <label for="version-select" style="font-weight: bold; display: block;">Version</label> | ||
| </div> | ||
| <select id="version-select" class="version-dropdown" style="margin: 0 auto; display: block;" onchange="location = this.value;"> | ||
| {%- for item in versions.branches %} | ||
| <option value="{{ item.url }}" {% if item == current_version %}selected{% endif %}>{{ item.name }}</option> | ||
| {%- endfor %} | ||
| {%- for item in versions.tags|reverse %} | ||
| <option value="{{ item.url }}" {% if item == current_version %}selected{% endif %}>{{ item.name }}</option> | ||
| {%- endfor %} | ||
| </select> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| </nav> | ||
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
docs/licenses/dependencies/sphinx-multiversion-license.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| BSD 2-Clause License | ||
|
|
||
| Copyright (c) 2020, Jan Holthuis <[email protected]> | ||
| All rights reserved. | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions are met: | ||
|
|
||
| 1. Redistributions of source code must retain the above copyright notice, this | ||
| list of conditions and the following disclaimer. | ||
|
|
||
| 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| this list of conditions and the following disclaimer in the documentation | ||
| and/or other materials provided with the distribution. | ||
|
|
||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
| FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.