stefanholek / zondocs_theme

New sphinx theme for ZEIT ONLINE docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New shiny Sphinx Theme for ZEIT ONLINE

Usage

Install the package

$ pip install zondocs_theme

Then set html_theme = 'zondocs_theme' in your Sphinx conf.py.

Features

  • Automatically uses the ZON logo.

  • Adds an "edit this page" link to the sidebar. To customize how this link is created, you can set the following:

    html_theme_options = {
        'editme_link': (
            'https://github.com/zeitonline/{project}/edit/master/{page}')
    }
    
    (This is the default value, it supports two variables, project is taken

    directly from conf.py, and page evaluates to path/to/current/page.suffix)

Release process

pipenv is needed to run the release process.

Update the version in pyproject.toml.

For a test release run

$ bin/release test

For a offical release run

$ bin/release prod

Tag project and update our Dockerfile.

About

New sphinx theme for ZEIT ONLINE docs

License:MIT License


Languages

Language:HTML 62.0%Language:CSS 32.5%Language:JavaScript 3.8%Language:Shell 1.3%Language:Python 0.3%