2023-09-06 18:38:30 +00:00
|
|
|
.. _docs_guidelines:
|
|
|
|
|
|
|
|
Documentation guidelines
|
2023-08-16 12:57:14 +00:00
|
|
|
================================================================================
|
|
|
|
|
2024-02-22 14:32:04 +00:00
|
|
|
This documentation is built with `Sphinx <https://www.sphinx-doc.org>`_ and
|
|
|
|
all source code is available at the path :git-hdl:`docs`.
|
2023-08-16 12:57:14 +00:00
|
|
|
|
2024-02-22 14:32:04 +00:00
|
|
|
To contribute to it, open a pull request with the changes to
|
|
|
|
:git-hdl:`this repository </>`, just make sure to read the general
|
|
|
|
:ref:`doctools:docs_guidelines` first **and** the additional guidelines
|
|
|
|
below specific to the HDL repository.
|
2023-08-16 12:57:14 +00:00
|
|
|
|
|
|
|
Templates
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Templates are available:
|
|
|
|
|
|
|
|
* :git-hdl:`docs/library/template_ip` (:ref:`rendered <template_ip>`).
|
|
|
|
* :git-hdl:`docs/library/template_framework` (:ref:`rendered <template_framework>`).
|
docs: links, drop part, fixups, codeowners
Drop part role, use generic adi instead for root adi domain links.
For future reference, the snipped used was:
find ./docs/projects -type f -exec sed -i 's/:part:/:adi:/g' {} \;
Drop Containerfile.
Add option to validate links status (e.g. 200, 404), intended mostly for CI
use to check if a page has disappeared from the internet.
Validate links uses coroutines to launch multiple tasks concurrently,
but do it in bundles to avoid being rate limited.
Fixup regmap styling.
Add imoldovan, jmarques, spop, lbarbosa as docs codeowners.
Remove branch field for links to the hdl repo.
Change git role to display full path.
Fixup ZedBoard link label, remove IP List, add SYSID_ROM dokuwiki link
in ad716_sdz project.
Signed-off-by: Jorge Marques <jorge.marques@analog.com>
2023-11-13 15:42:46 +00:00
|
|
|
* :git-hdl:`docs/projects/template` (:ref:`rendered <template_project>`).
|
2023-08-16 12:57:14 +00:00
|
|
|
|
|
|
|
Remove the ``:orphan:`` in the first line, it is to hide the templates from the
|
2024-02-22 14:32:04 +00:00
|
|
|
`TOC tree <https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree>`_,
|
|
|
|
and make sure to remove any placeholder text and instructive comment.
|
2023-08-16 12:57:14 +00:00
|
|
|
|
2023-08-01 20:39:09 +00:00
|
|
|
.. note::
|
2023-08-16 12:57:14 +00:00
|
|
|
|
2024-02-22 14:32:04 +00:00
|
|
|
The old wiki uses `dokuwiki <https://www.dokuwiki.org/dokuwiki>`_. When
|
|
|
|
importing text from there, consider ``pandoc`` and the tips accross the
|
|
|
|
:ref:`doctools:docs_guidelines` to convert it to reST.
|
2023-07-20 13:04:46 +00:00
|
|
|
|
|
|
|
Common sections
|
2024-02-22 14:32:04 +00:00
|
|
|
--------------------------------------------------------------------------------
|
2023-07-20 13:04:46 +00:00
|
|
|
|
|
|
|
The **More information** and **Support** sections that are present in
|
|
|
|
the HDL project documentation, are actually separate pages inserted as links.
|
|
|
|
They're located at hdl/projects/common/more_information.rst and /support.rst,
|
|
|
|
and cannot be referenced here because they don't have an ID at the beginning
|
|
|
|
of the page, so not to have warnings when the documentation is rendered that
|
|
|
|
they're not included in any toctree.
|
|
|
|
|
|
|
|
They are inserted like this:
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
.. include:: ../common/more_information.rst
|
|
|
|
|
|
|
|
.. include:: ../common/support.rst
|
|
|
|
|
2024-02-22 14:32:04 +00:00
|
|
|
And they will be rendered as sections of the page.
|