To create a cross reference from one page of this document to another page, ensure that an explicit target is used so that the cross reference is pointing to a unique identifier, rather than a heading that could be repeated somewhere else in the document.
The syntax for explicit targets is as follows:
For the target:
.. _my-page:
My Page of Information
~~~~~~~~~~~~~~~~~~~~~~
For the cross reference:
To learn more about my information, see :ref:`My Page of Information <my-page>`
To learn more about explicit targets, see: https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html#explicit-targets
Our documentation is written in restructured text markup and built with Sphinx.
- Python 3.7.0 (may or may not work with older Python*, untested)
pip
package manager
To build oneDAL documentation locally:
-
Clone the repository:
git clone https://github.com/uxlfoundation/oneDAL.git
-
Go to
docs
folder:cd oneDAL/docs
-
Install requried Python packages using
pip
:pip install -r requirements.txt
-
Run in the command line:
make html
You can find documentation in
build/html
folder.Note: By default, the documentation is generated with the Intel-branded library name. To generate the output for GitHub pages, run the following instead:
make html-github