Skip to main content

Ulwazi theme for Sphinx documentation projects

Reason this release was yanked:

0.1 release was a test. The code is the same as 0.2

Project description

Ulwazi Sphinx theme

Ulwazi, Xhosa for information, is a work-in-progress Sphinx theme based on Vanilla design.

Demo website

Layout and functionality is derived from sphinx-basic-ng, developed by praduimsg and Alabaster.

The theme will default to a generic Vanilla Framework style but will have options for the specific Canonical theming to support the org's documentation needs.

Installing Node Modules

Make sure you have npm and Yarn installed:

sudo apt install npm
sudo npm install -g corepack

If you do not have the node_modules directory (for example, after cloning the repository for the first time), install the JavaScript dependencies:

yarn install

Testing

A Makefile includes some basic functionality to build the theme and then build and run the test content with the theme.

To build the sample documentation using the theme, run:

make run

This command set ups a virtual environment, installs dependencies, builds theme, then documentation in this repo, and serves the result via local web server.

The resulted environment tracks changes in sample content and rebuilds the local website automatically. However, changes to the theme might require a full rebuild of the theme package:

make rebuild

This command runs make clean to delete files built earlier, and then make run again.

If you change dependencies (for example, add a new Sphinx extension to the docs/requirements.txt file), you will need to re-build the virtual environment entirely. That can be done by manually deleting the .venv folder or with the make fclean command.

Contributing

The theme files are located in the ulwazi folder:

  • __init__.py -- initialization script for the theme.
  • navigation.py -- modifies the global TOC navigation tree
  • theme/ulwazi/ -- contains the theme files
    • theme.toml -- theme configuration file
    • static -- static content to be used by the theme without processing
    • other files -- HTML templates for Sphinx using Jinja templating engine

If you want to modify HTML code of a page generated by Sphinx before the theme gets applied, see the _html_page_context function definition in the initialization script.

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

ulwazi-0.1.tar.gz (161.3 kB view details)

Uploaded Source

Built Distribution

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

ulwazi-0.1-py3-none-any.whl (174.2 kB view details)

Uploaded Python 3

File details

Details for the file ulwazi-0.1.tar.gz.

File metadata

  • Download URL: ulwazi-0.1.tar.gz
  • Upload date:
  • Size: 161.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ulwazi-0.1.tar.gz
Algorithm Hash digest
SHA256 1d8015099dc24132bf611f60d0480bc205cbce92dd3271af0f53e7993a9b2674
MD5 ae241263870cf496fbde24dbb68094fb
BLAKE2b-256 095cc78ce046434702611f016624cafcbe6508b13003849939e075289ea59036

See more details on using hashes here.

File details

Details for the file ulwazi-0.1-py3-none-any.whl.

File metadata

  • Download URL: ulwazi-0.1-py3-none-any.whl
  • Upload date:
  • Size: 174.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ulwazi-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c07a02c70041bf97eee8a45c41c68d85a88c19617de3158bb0c2feea1747fcef
MD5 c93ba21b74aa22bb61d2422ec57c5c99
BLAKE2b-256 3d27e7943e0aebfaa536cc8c4aed46c52dfa8a4dc91fdf139d69bf2440379b5f

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