Skip to main content

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

Metadata

Release files for adi-doctools 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adi-doctools 0.5.0
File Size Uploaded
adi_doctools-0.5.0.tar.gz 910.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adi-doctools 0.5.0
File Interpreter ABI Platform
adi_doctools-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / adi_doctools-0.5.0.tar.gz

Download URL adi_doctools-0.5.0.tar.gz
Size 910.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d4c802e2f1a1303274e0993d8ff86d169e80ffb712f1d6241683265c3a5a9aca
BLAKE2b-256 checksum
How to use checksums
86601d8a87077b6dcf11b3df240d42dac325817878b08ff342a6079d8b69a5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / adi_doctools-0.5.0-py3-none-any.whl

Download URL adi_doctools-0.5.0-py3-none-any.whl
Size 952.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff4f4f30da024fecbe95f3f715a1ca85b640d51628de5e44038cd78f053c64ba
BLAKE2b-256 checksum
How to use checksums
3b932513013a19b9a67ff8c50716f6d1747627d2745394e93ad25c1c90fe0141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.5.0 This release

2 release files

0.4.46

2 release files

0.4.45

2 release files

0.4.43

2 release files

0.4.42

2 release files

0.4.41

2 release files

0.4.40

2 release files

0.4.39

2 release files

0.4.37

2 release files

0.4.36

2 release files

0.4.32

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page