-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade documentation techstack (#6470)
* Move conf.in.py to conf.py. * Upgrade all docs dependencies and replace open3d_sphinx_theme with sphinx_rtd_theme * Lower docutils to version 0.17.0 and sort dependencies * Fix CI badges. * Move to furo and upgrade all dependencies. * Fix display of caption of toctree in furo theme. * Add css overrides and minor html changes to show documentation version selector. * todo_include_todos was given twice in conf.py, remove earlier entry. * Fix for references rendering. --------- Co-authored-by: Sameer Sheorey <sameer.sheorey@intel.com>
- Loading branch information
1 parent
392fcb9
commit 2a11e0e
Showing
12 changed files
with
101 additions
and
79 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
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,49 @@ | ||
/* In furo, toctree captions needs to be enlarged. */ | ||
.toctree-wrapper.compound .caption { | ||
font-size: 150%; | ||
font-weight: bold; | ||
} | ||
|
||
/* Apply custom CSS for displaying docs version - https://github.com/pradyunsg/furo/pull/500 */ | ||
#furo-versions { | ||
font-size: var(--sidebar-item-font-size); | ||
} | ||
|
||
#furo-versions .caption { | ||
display: inline-block; | ||
color: var(--color-sidebar-caption-text); | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
font-size: var(--sidebar-caption-font-size); | ||
padding-right: var(--sidebar-expander-width); | ||
margin-top: 0; | ||
} | ||
|
||
#furo-versions input[type=checkbox] { | ||
display: none; | ||
position: absolute; | ||
box-sizing: border-box; | ||
padding: 0; | ||
overflow: visible; | ||
} | ||
|
||
#furo-versions input[type=checkbox]:checked ~ .rst-other-versions { | ||
display: inline-block; | ||
line-height: var(--sidebar-item-line-height); | ||
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal); | ||
text-decoration: none; | ||
} | ||
|
||
#furo-versions .rst-other-versions { | ||
display: none; | ||
} | ||
|
||
#furo-versions .versions-label { | ||
position: relative; | ||
float: right; | ||
} | ||
|
||
/* Fix for references. See Open3D PR #6470 */ | ||
div.citation > span { | ||
padding-right: 2rem; | ||
} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{% if display_all_docs_versions %} | ||
{# Add rst-badge after rst-versions for small badge style. #} | ||
<div id="furo-versions" class="rst-versions sidebar-tree" role="note" aria-label="versions" tabindex="0"> | ||
<p class="caption">Docs Version</p> | ||
<input type="checkbox" id="checkbox_toggle" class="toctree-checkbox versions-checkbox" role="switch"> | ||
<label id="versions-label" class="versions-label" for="checkbox_toggle"> | ||
<div class="visually-hidden">Toggle child pages in navigation</div> | ||
<i class="icon"> | ||
<svg> | ||
<use href="#svg-arrow-right"></use> | ||
</svg> | ||
</i> | ||
</label> | ||
|
||
<!-- A hack to include an external page to get around CORS policy --> | ||
<!-- https://stackoverflow.com/a/15250208/1255535 --> | ||
<div class="rst-other-versions"> | ||
<script src="http://www.open3d.org/docs/versions.js"></script> | ||
</div> | ||
</div> | ||
{% endif %} |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
sphinx==3.3.1 | ||
sphinx-rtd-theme==0.5.2 | ||
nbsphinx==0.8.3 | ||
matplotlib==3.3.3 | ||
jinja2==3.0.3 | ||
m2r2==0.2.7 | ||
mistune==0.8.4 | ||
docutils==0.20.1 | ||
furo==2023.9.10 | ||
jinja2==3.1.2 | ||
m2r2==0.3.3.post2 | ||
matplotlib==3.7.3 | ||
nbsphinx==0.9.3 | ||
sphinx==7.1.2 |