Skip to main content

Create Sphinx RST documents programmatically with Python

Project description

Create RST documents programmatically with Python

Introduction

Goethe gives you the opportunity to create your individual RST project in Python

  1. programmatically - write your project as Python script in OOP style, place variables where ever you want

  2. dynamically - render the project to dict, json or actual files and even PDF

Setup

Via Pip:

pip install goethe

Via Github (latest):

pip install git+https://github.com/earthobservations/goethe

Structure

Goethe uses 3 main levels of abstraction:

  • Goethe - initialize an RST project with a Goethe

  • FlatChapter - add a chapter based on one file at the same level as the Goethe

  • DeepChapter - add a chapter based on a folder with its own index

A simple project could look like e.g.

Goethe("myproj")
FlatChapter("overview")
DeepChapter("depper_level)
    FlatChapter("overview")
    DeepChapter("second_chapter")

with following file structure:

./
index.rst
overview.rst

./deeper_level
index.rst
overview.rst

./deeper_level/second_chapter
index.rst

Features

  • setup a RST project

  • export to dict, files or html

  • flat and deep chapters to build unlimited depth of documentation

  • modules of RST:
    • toctree

    • paragraph

Backlog

Examples

Visualized examples can be found in the examples folder.

License

Distributed under the MIT License. See LICENSE for more info.

Backlog

Changelog

Development

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

goethe-0.1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

goethe-0.1.0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

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