An open API service indexing awesome lists of open source software.

https://github.com/reupen/takao

A dark theme for Sphinx
https://github.com/reupen/takao

python sphinx-theme

Last synced: 5 months ago
JSON representation

A dark theme for Sphinx

Awesome Lists containing this project

README

        

# Takao

Takao is a dark theme for the
[Sphinx documentation generator](https://www.sphinx-doc.org).

I created it mainly for my own projects. Feel free to try it and open an issue
if you have any problems.

## Demo

For a demo of the theme, see https://columns-ui-sdk.readthedocs.io.

## Licence

Takao uses the MIT licence.

Distributions of Takao include the [Inter font](https://github.com/rsms/inter),
which
[uses the SIL Open Font Licence](https://github.com/rsms/inter/blob/master/LICENSE.txt).

## Installation

1. Install the Python package:

```shell
pip install takao
```

2. Update `html_theme` in your Sphinx project configuration:

```python
html_theme = "takao"
```

3. Create a clean documentation build in your Sphinx project directory:

```shell
make clean
make html
```

## Development

Development of Takao requires Python 3.11, [Poetry](https://python-poetry.org)
and Node.js 18.

### Set up

1. Install Python dependencies:

```shell
poetry install
```

2. Install Node.js dependencies:

```shell
npm install
```

### Build a wheel

```shell
poetry run python scripts/build.py
```

### Build the docs

```shell
poetry run python scripts/build_docs.py
```

### Run visual regression tests

Requires [Podman](https://podman.io/getting-started/installation).

```shell
poetry run python scripts/run_e2e_tests.py
```

#### Update changed snapshots

```shell
poetry run python scripts/run_e2e_tests_update_snapshots.py
```