Skip to main content

The docbuilder for all 'official' clearskies plugins (as well as the main clearskies docs)

Project description

docs

The documentation builder for clearskies and related plugins

Overview

Each "official" clearskies module (including the core clearskies library itself) has the documentation primarily written in the codebase as docblocks. The documentation site is then built by extracting these docblocks and stitching them together. To be clear, this isn't about the low-level "API" documentation that describes every single class/method in the framework. Rather, this is about the primary documentation site itself (clearskies.info) which is focused on high-level use cases and examples of the primary configuration options. As a result, it's not a simple matter of just iterating over the classes/methods and building documentation. To build a coherent documentation site, each plugin has a configuration file that basically outlines the final "structure" or organization of the resulting documentation, as well as the name of a builder class that will combine that configuration information with the codebase itself to create the actual docs.

The docs themselves (in the source code) are all written with markdown. This documentation builder then takes that markdwon and adds the necessary headers/etc so to make them valid files for Jekyll, the builder for the current documentation site. The site itself is hosted in S3, so building an actual documentation site means:

  1. Properly documenting everything inside of the source code via markdown.
  2. Creating a config file (docs/python/config.json) to map source code docs to Jekyll files.
  3. Creating a skeleton of a Jekyll site in the doc/jekyll folder of the plugin.
  4. Installing this doc builder via poetry add clear-skies-doc-builder.
  5. Run the doc builder.
  6. Build with Jekyll.
  7. Push to the appropriate subfolder via S3.
  8. (Only once) Update the main clearskies doc site to know about the new subfolder for this plugin.

Of course, we want the Jekyll sites to be consistent with eachother in terms of style/look. In the long run we'll probably have this doc builder also bootstrap the Jekyll site, but for now you just have to manually setup the Jekyll build using the main clearskies repo as a template.

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

clear_skies_doc_builder-2.0.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clear_skies_doc_builder-2.0.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file clear_skies_doc_builder-2.0.0.tar.gz.

File metadata

  • Download URL: clear_skies_doc_builder-2.0.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-78-generic

File hashes

Hashes for clear_skies_doc_builder-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9c9790fb15b39816f1a40abc4a0b9726137994bc8baa57e06e436c68acce1f37
MD5 55b6496f6e57e73285720e8721f0b19a
BLAKE2b-256 55f4c93e0639113212059bafba72e8b59a24c1f4188bc73dfd0b29b937ba98e3

See more details on using hashes here.

File details

Details for the file clear_skies_doc_builder-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clear_skies_doc_builder-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab7c9fb7d3569f5cbd68076497876e8e2c216492e71d6590ba6d52cc62ad600
MD5 1e43b1c8e63728314ab82fd4b0ba2517
BLAKE2b-256 a4f0bc0bda72a901c6db9b35740f00b2eb5f42da36e6a7d6d8dcb9f134b71cb8

See more details on using hashes here.

Supported by

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