Skip to main content

ADI's sphinx extensions and theme

Project description

Analog Devices Doctools

Analog Devices Inc. central repository to host tooling for automated documentation builds. It includes Sphinx extensions, themes, and tools for multiple repositories in the organization.

All tools, directives and roles are documented in this repository documentation.

Guarantee to work with Python newer than 3.8 and distros released on or after 20H1 (e.g. Ubuntu 20.04 LTS).

Release install

Ensure pip is newer than 23.0 [1]:

pip install pip --upgrade

Install the documentation tools, which will fetch this repository release:

(cd docs ; pip install -r requirements.txt)

Build the documentation with Sphinx:

(cd docs ; make html)

The generated documentation will be available at docs/_build/html and it provides information about the adoc command line tool and general documentation guidelines.

In summary, the serve allows to live reload the documentation when editing the docs, and aggregate to generate an aggregated documentation of the multiple repositories.

[1] There is a known bug with pip shipped with Ubuntu 22.04

Using a Python virtual environment

Installing packages at user level through pip is not always recommended, instead, consider using a Python virtual environment (python3-venv on ubuntu 22.04). To create and activate the environment, do before the previous instructions:

python3 -m venv ./venv
source ./venv/bin/activate

Use deactivate to exit the virtual environment.

For next builds, just activate the virtual environment:

source ./venv/bin/activate

Development install

Development mode allows to edit the source code and apply the changes without reinstalling. Also extends Author Mode to watch changes on the webpage source code (use --dev/-r option to enable this).

Install the web compiler

If you care about the web scripts (js modules) and style sheets (sass), install npm first, if not, just skip this section.

NOTE: If the npm provided by your package manager is too old and updating with npm install npm -g fails, consider installing with NodeSource.

At the repository root, install the npm dependencies locally:

npm install rollup \
    @rollup/plugin-terser \
    sass \
    --save-dev

Fetch third-party resources

Fetch third-party fonts:

./ci/fetch-fonts.sh

Install the repository

Finally, do a symbolic install of this repo:

pip install -e . --upgrade

Removing

To remove, either release or development, do:

pip uninstall adi-doctools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adi_doctools-0.4.39.tar.gz (664.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adi_doctools-0.4.39-py3-none-any.whl (705.1 kB view details)

Uploaded Python 3

File details

Details for the file adi_doctools-0.4.39.tar.gz.

File metadata

  • Download URL: adi_doctools-0.4.39.tar.gz
  • Upload date:
  • Size: 664.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for adi_doctools-0.4.39.tar.gz
Algorithm Hash digest
SHA256 c13585b4c7c6eb860f0b1be9bada2fa6e1fd9e27848b5b08e0bd5b1f5d9780d1
MD5 fc3aab0df91f5e1866efeac5511fd993
BLAKE2b-256 f37a82c3cd635bf3f94426b492617a04b33a6f84557be423e72fcd985ded86a0

See more details on using hashes here.

File details

Details for the file adi_doctools-0.4.39-py3-none-any.whl.

File metadata

  • Download URL: adi_doctools-0.4.39-py3-none-any.whl
  • Upload date:
  • Size: 705.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for adi_doctools-0.4.39-py3-none-any.whl
Algorithm Hash digest
SHA256 40b476d140cf10d90a21b1224087091a62c03dfa92bc8d94e2f93a1e128d413f
MD5 a2190f272ba3a366ec1f8e11f7151273
BLAKE2b-256 bad0f9f26d145b4c9971ef91c165db1f2040a23e22959b0a14b543f50cc6be79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page