Documentation: Add documentation-contents.rst
Add a new .rst file referencing the documentation contents. This file is then included in each documentation page so that we can enhance the Documentation pages on the libcamera website using it. As we do not want the appearance of the libcamera in-tree Documentation to change just yet, disable the new class using the sphinx theme's CSS. To facilitate easier distinguishing between "normal" and documentation pages on the website we want to add a "documentation" class to the content of all such pages. Since this new file will be included on each documentation page it is convenient to add the new directive here - do so. As the website uses different CSS to libcamera, move the contents on docs.rst a little so that the directive at the end of the contents block applies correctly. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
ce690bd9d7
commit
182bdadd0f
19 changed files with 67 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _camera-sensor-model:
|
||||
|
||||
.. todo: Move to Doxygen-generated documentation
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _code-of-conduct:
|
||||
|
||||
Contributor Covenant Code of Conduct
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _coding-style-guidelines:
|
||||
|
||||
Coding Style Guidelines
|
||||
|
|
|
@ -61,7 +61,12 @@ language = 'en'
|
|||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path.
|
||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||
exclude_patterns = [
|
||||
'_build',
|
||||
'Thumbs.db',
|
||||
'.DS_Store',
|
||||
'documentation-contents.rst',
|
||||
]
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = None
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
.. contents::
|
||||
:local:
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
*************
|
||||
Documentation
|
||||
*************
|
||||
|
|
27
Documentation/documentation-contents.rst
Normal file
27
Documentation/documentation-contents.rst
Normal file
|
@ -0,0 +1,27 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. container:: documentation-nav
|
||||
|
||||
* :doc:`/api-html/index`
|
||||
* :doc:`/camera-sensor-model`
|
||||
* :doc:`/code-of-conduct`
|
||||
* :doc:`/coding-style`
|
||||
* :doc:`/environment_variables`
|
||||
* :doc:`/guides/application-developer`
|
||||
* :doc:`/guides/introduction`
|
||||
* :doc:`/guides/ipa`
|
||||
* :doc:`/guides/pipeline-handler`
|
||||
* :doc:`/guides/tracing`
|
||||
* :doc:`/lens_driver_requirements`
|
||||
* :doc:`/python-bindings`
|
||||
* :doc:`/sensor_driver_requirements`
|
||||
* :doc:`/software-isp-benchmarking`
|
||||
|
||||
..
|
||||
The following directive adds the "documentation" class to all of the pages
|
||||
generated by sphinx. This is not relevant in libcamera nor addressed in the
|
||||
theme's CSS, since all of the pages here are documentation. It **is** used
|
||||
to properly format the documentation pages on libcamera.org and so should not
|
||||
be removed.
|
||||
|
||||
.. rst-class:: documentation
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
Environment variables
|
||||
=====================
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. Getting started information is defined in the project README file.
|
||||
.. include:: ../README.rst
|
||||
:start-after: .. section-begin-getting-started
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: ../documentation-contents.rst
|
||||
|
||||
Using libcamera in a C++ application
|
||||
====================================
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: ../documentation-contents.rst
|
||||
|
||||
Developers guide to libcamera
|
||||
=============================
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: ../documentation-contents.rst
|
||||
|
||||
IPA Writer's Guide
|
||||
==================
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: ../documentation-contents.rst
|
||||
|
||||
Pipeline Handler Writers Guide
|
||||
==============================
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: ../documentation-contents.rst
|
||||
|
||||
Tracing Guide
|
||||
=============
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _lens-driver-requirements:
|
||||
|
||||
Lens Driver Requirements
|
||||
|
|
|
@ -129,6 +129,7 @@ if sphinx.found()
|
|||
'conf.py',
|
||||
'contributing.rst',
|
||||
'docs.rst',
|
||||
'documentation-contents.rst',
|
||||
'environment_variables.rst',
|
||||
'guides/application-developer.rst',
|
||||
'guides/introduction.rst',
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _python-bindings:
|
||||
|
||||
Python Bindings for libcamera
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _sensor-driver-requirements:
|
||||
|
||||
Sensor Driver Requirements
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
|
||||
.. include:: documentation-contents.rst
|
||||
|
||||
.. _software-isp-benchmarking:
|
||||
|
||||
Software ISP benchmarking
|
||||
|
|
|
@ -289,3 +289,7 @@ div#signature {
|
|||
padding: 0px;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.documentation-nav {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue