Skip to main content

Archived

This project is legacy and should not be used for new documentation. Existing documentation projects using it should be migrated to the Discourse model, or use another solution. If you manage such a project, please reach out to us to facilitate the upgrade.


Ubuntu documentation builder

Maintenance mode

documentation-builder is now considered a legacy product, as all user maintained documentation sets should now be moving to the discourse-docs model.

Important fixes will still be performed, but we will not be adding new features.


build status code coverage

A tool for building a set of documentation files in HTML format, from a remote git repository containing markdown files.

Installation

The best way to install documentation-builder is with snap:

sudo snap install documentation-builder

If you don’t have snap on your system, you can also install it with pip3:

pip3 install ubuntudesign.documentation-builder

For more information see the documentation.

Development

documentation-builder is a Python module. The main application code lives in ubuntudesign/documentation_builder. Updates to the markup or styling should be made in the default template.

Checking changes

To check your changes to documentation-builder, it’s probably easiest to install the module locally, in editable mode, within an encapsulated environment:

python3 -m venv env3 && source env3/bin/activate  # Create encapsulated environment
pip install -e .  # Install the module in editable mode

documentation-builder --source-folder docs  # build the documentation-builder's own documentation
xdg-open build/en/index.html  # Open up the documentation page

Watching for changes

On Ubuntu et al. you can use inotifywait to watch for changes to the source files, and rebuild when something changes as follows:

sudo apt install inotify-tools  # Ensure inotifywait is installed

# Force rebuild docs when anything changes in the source folder
while inotifywait -r -e close_write "./ubuntudesign"; do bin/documentation-builder --force --source-folder docs; done

Tests

To run tests:

./setup.py test
Debugging

To run a specific test:

./setup.py test --addopts tests/test_operations.py::test_find_files

You can debug tests by adding a debugger to the code and running the test again.

Metadata

Release files for ubuntudesign.documentation-builder 1.7.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 ubuntudesign.documentation-builder 1.7.0
File Size Uploaded
ubuntudesign.documentation-builder-1.7.0.tar.gz 50.8 kB Details

Release files / ubuntudesign.documentation-builder-1.7.0.tar.gz

Download URL ubuntudesign.documentation-builder-1.7.0.tar.gz
Size 50.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d517ecf531cf91ac8e0a39f20ccc07747e18136914c5f0df3465ad1f3a386300
BLAKE2b-256 checksum
How to use checksums
7d3a72ebe6876f0e556eba5de8696d651d6828062f6e565954018af751fdfcd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release history Release notifications | RSS feed

This release

1.7.0 This release

1 release file

1.6.5

1 release file

1.6.4

1 release file

1.6.2

1 release file

1.6.1

1 release file

1.6.0

3 release files

1.5.3

2 release files

1.5.1

1 release file

1.5.0

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.1

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.0

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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