Skip to main content

A lightweight documentation builder.

Project description

## OMDOC

OMDOC is a lightweight documentation builder that utilises [jinja2][0] templates as placeholders for markdown and code.

Code samples are parsed with [pygments][1] and the content is parsed with markdown.

You're in total control of how it looks, feels and responds to different devices.

No magic, it's plain ol' html with a dash of jinja, markdown and pygments.

## Features

### code

Any blocks of code inside code tags are parsed; eg

```<code lang="bash">
pip install omdoc
</code>```


An attempt is made to match the lang attribute against [known pygments lexers][2]. If no match is found it defaults to python.

### Markdown

Any content inside of ...

```{% markdown %} stuff to mark down {% endmarkdown%} ```

... gets marked down.



## Installation

```pip install omdoc```

## Usage

1. Make folder for docs
2. Create layout.html inside of docs folder
2. Style as you see fit
3. Create pages that inherit layout.html in docs
5. cd 'docs'
6. run ``omdoc``

Your documentation will now be in <docs>/_build

## What about static media?

Proceed as you would building a a normal site. Folders inside of `docs/` get copied into the final build. Just make sure to use relative paths in your html & css.


## Status

Early alpha.

## Known caveats

### Nested Folders

Doesn't support nested folders for docs so `docs/about/this.html` doesn't work. This will get fixed later one

[0]: http://jinja.pocoo.org/docs/
[1]: http://pygments.org/
[2]: http://pygments.org/docs/lexers/

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

omdoc-0.1.3.alpha.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file omdoc-0.1.3.alpha.tar.gz.

File metadata

  • Download URL: omdoc-0.1.3.alpha.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for omdoc-0.1.3.alpha.tar.gz
Algorithm Hash digest
SHA256 ea7d06e76ba913855e810f16ab81c4373cc775f66af1d1e386ab94b1cad8a29d
MD5 37dccb73bc396563ca55ad46101a2d39
BLAKE2b-256 201ceb736bd207cead1b3352f9cfd4af0e156a71dff11d870aa77e1c5b1b0699

See more details on using hashes here.

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