doc: add a download page for epub and pdf

These files are placed in the _static directory during publish. Note
that Sphinx does not complain if files do not exist during compilation
(since they are copied at the end). This is why this was used instead of
the ":download:" role.

(From yocto-docs rev: 3f6848dd88cd4266e721cc7bbb2460b1e9d24f2b)

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 38aa55418426227203fe3a106fa1e85494a57c12)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Antonin Godard 2024-11-06 08:48:26 +01:00 committed by Steve Sakoman
parent c3cbcecb74
commit 4a66fa862b
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
=======================
Documentation Downloads
=======================
The documentation can be downloaded in file formats to be read offline or on
another device. The currently supported formats are linked below:
- `EPub <_static/TheYoctoProject.epub>`_
- `PDF <_static/theyoctoproject.pdf>`_

View File

@ -51,3 +51,10 @@ Welcome to the Yocto Project Documentation
:hidden:
genindex
.. toctree::
:maxdepth: 1
:caption: Documentation Downloads
:hidden:
downloads