Skip to main content

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

Ubuntu documentation builder
===

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

Installation
---

``` bash
pip3 install ubuntudesign.documentation-builder
```

Usage
---

The basic usage will build the markdown files from a remote repository in the standard format into the local directory:

``` bash
$ documentation-builder --source-repository git@github.com:juju/docs.git --media-destination media
```

There are many options for more advanced usage:

``` bash
$ documentation-builder \
--repository git@github.com:juju/docs.git `# Where to pull the markdown files from`
--branch new-version `# To pull from a different branch than the default`
--build-path build `# Where to place the built files`
--media-destination build/media `# Where to place the media files from the repository`
--template-path wrapper.tpl `# Path to an alternate wrapping template for the build HTML files`
--nav-path nav.html `# Path to an alternative navigation than the one provided in the repository`
--files-folder docs `# An alternative location inside the repository to look for markdown files (default: src)`
--media-folder media `# An alternative location inside the repository to look for media files (default: media)`
--relative-media-destination `# A URL base for linking to media inside the built HTML files (defaults to relative path to built media location - e.g.: ../media)`
--no-link-extensions `# Don't include '.html' extension in internal links`

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

Supported by

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