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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file goethe-0.1.0.tar.gz.

File metadata

  • Download URL: goethe-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1022-azure

File hashes

Hashes for goethe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1623f4f87c279cbedcc525743eb0fee9b8bbedc80edcaf6cc4b66ea0286d0de
MD5 0cb6dd2b5e04517af51f5c8fa51ebd10
BLAKE2b-256 ec615dceabec54cce0af37e4120ae47e2533d6c9e6d3c77697234c97d7d7be05

See more details on using hashes here.

File details

Details for the file goethe-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: goethe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1022-azure

File hashes

Hashes for goethe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f9619b8d962d4bd9d4fe5d3e3188c6b7ac903ad1573bb8ec33a04ddb516fc85
MD5 3714011f510d7da082c9fda3988152d2
BLAKE2b-256 30f74650dfc46b00693f84efc1feb636074c92ef80154c50e68d731d3b984c83

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