Browse Source
Add infrastructure for switching production documentation to use the cleaner read_the_docs theme as noted in issue #6774. This change won't affect the current "daily" or "release" builds but will change local builds that previously also used the RTD theme, but now have the version selection capability added. This PR also adds the Zephyr logo and favicon to the RTD-themed docs, and moves the top level images into an images/ folder. Note that issue #9128 requires workaround.rst to force a reference to files needed for the build but not directly referened in a .rst file. (When #9128 is fixed, we can remove this workaround.rst.) Once merged and tested, we'll tweak the conf.py to use the RTD theme for all doc builds (e.g, when DOC_TAG=daily or release) in a subsequent PR. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>pull/9200/head
8 changed files with 148 additions and 3 deletions
@ -0,0 +1,28 @@ |
|||||||
|
{# Add rst-badge after rst-versions for small badge style. #} |
||||||
|
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> |
||||||
|
<span class="rst-current-version" data-toggle="rst-current-version"> |
||||||
|
<span class="fa fa-book"> Zephyr Project</span> |
||||||
|
v: {{ current_version }} |
||||||
|
<span class="fa fa-caret-down"></span> |
||||||
|
</span> |
||||||
|
<div class="rst-other-versions"> |
||||||
|
<dl> |
||||||
|
<dt>{{ _('Versions') }}</dt> |
||||||
|
{% for slug, url in versions %} |
||||||
|
<dd><a href="{{ url }}">{{ slug }}</a></dd> |
||||||
|
{% endfor %} |
||||||
|
</dl> |
||||||
|
<dl> |
||||||
|
<dt>{{ _('On zephyrproject.org') }}</dt> |
||||||
|
<dd> |
||||||
|
<a href="https://www.zephyrproject.org/">Project Home</a> |
||||||
|
</dd> |
||||||
|
<dd> |
||||||
|
<a href="https://www.zephyrproject.org/developers/#downloads">Downloads</a> |
||||||
|
</dd> |
||||||
|
<dd> |
||||||
|
<a href="https://github.com/zephyrproject-rtos/zephyr/releases">Releases</a> |
||||||
|
</dd> |
||||||
|
</dl> |
||||||
|
</div> |
||||||
|
</div> |
Before Width: | Height: | Size: 321 KiB After Width: | Height: | Size: 321 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 534 B |
@ -0,0 +1,10 @@ |
|||||||
|
:orphan: |
||||||
|
|
||||||
|
.. Problem with the CMake build process for docs (issue #9128) not copying |
||||||
|
files that aren't referenced in a .rst file over to the out-of-tree |
||||||
|
build folder. This .rst file tricks the script to reference file |
||||||
|
that are mentioned in the conf.py file but not in any .rst file |
||||||
|
|
||||||
|
.. image:: images/zephyr_logo_line_small.png |
||||||
|
.. image:: images/zp_favicon.png |
||||||
|
.. include:: _templates/versions.html |
Loading…
Reference in new issue