A command-line tool for building documentation from repositories into HTML files. Initially based on https://github.com/juju/docs/blob/master/tools/mdbuild.py.
Project description
A tool for building a set of documentation files in HTML format, from a remote git repository containing markdown files.
Installation
snap install 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
bin/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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ubuntudesign.documentation-builder-1.4.1.tar.gz
.
File metadata
- Download URL: ubuntudesign.documentation-builder-1.4.1.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57b01e2b2bc826454590eb57e0edae4a7d26a46d44253d525c7029959215d608 |
|
MD5 | c0348f648a126502c279a0f39dd629a4 |
|
BLAKE2b-256 | e7841c9e41ec23f79b75c75b3b86f31c14a2a747cc21da048275f0d217e2f442 |