-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support building documentation in Python 3.12 (#1274)
* Update dependencies for building documentation Signed-off-by: Tim Moon <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Patch RTD theme 3.0.0 to include version selector in sidebar Signed-off-by: Tim Moon <[email protected]> * Debug printing version in sidebar Signed-off-by: Tim Moon <[email protected]> --------- Signed-off-by: Tim Moon <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kirthi Shankar Sivamani <[email protected]>
- Loading branch information
1 parent
7cef756
commit 8e4ee12
Showing
6 changed files
with
60 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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 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 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,3 @@ | ||
_build | ||
doxygen | ||
sphinx_rtd_theme |
This file contains 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 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 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 @@ | ||
diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html | ||
index e6a38b1..579eaec 100644 | ||
--- a/sphinx_rtd_theme/layout.html | ||
+++ b/sphinx_rtd_theme/layout.html | ||
@@ -124,6 +124,16 @@ | ||
{%- endif %} | ||
</a> | ||
|
||
+ {# Show TE version and version selector #} | ||
+ <div class="version"> | ||
+ {{ version }} | ||
+ <br> | ||
+ Version select: <select onChange="window.location.href = this.value" onFocus="this.selectedIndex = {0}"> | ||
+ <option value="https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html"{1}>Current release</option> | ||
+ <option value="https://docs.nvidia.com/deeplearning/transformer-engine/documentation-archive.html">Older releases</option> | ||
+ </select> | ||
+ </div> | ||
+ | ||
{%- if READTHEDOCS or DEBUG %} | ||
{%- if theme_version_selector or theme_language_selector %} | ||
<div class="switch-menus"> |