Metadata-Version: 2.5
Name: lhzn-sphinx-theme
Version: 0.1.1
Summary: Long Horizon Observatory documentation theme for Sphinx, built on Furo.
Project-URL: Documentation, https://docs.lhzn.io/
Project-URL: Source, https://github.com/lhzn-io/lhzn-docs-themes
Author: Long Horizon Observatory
License: MIT License
        
        Copyright (c) 2026 Long Horizon Observatory
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: Framework :: Sphinx
Classifier: Framework :: Sphinx :: Theme
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: furo<2026.0,>=2024.8.6
Requires-Dist: sphinx>=7.0
Description-Content-Type: text/markdown

# lhzn-sphinx-theme

The documentation theme for Long Horizon Observatory projects: [Furo](https://github.com/pradyunsg/furo)
with the lab's colors, type, half-moon mark and a footer that links back to the project
documentation portal at [docs.lhzn.io](https://docs.lhzn.io/). Source:
[lhzn-io/lhzn-docs-themes](https://github.com/lhzn-io/lhzn-docs-themes), folder `sphinx/`.

## Use

Add it to `docs/requirements-docs.txt`:

```text
lhzn-sphinx-theme>=0.1,<0.2
```

and in `conf.py`:

```python
html_theme = "lhzn"
html_theme_options = {
    "source_repository": "https://github.com/lhzn-io/<project>",
    "source_branch": "main",
    "source_directory": "docs/source/",
}
```

Remove `sphinx_rtd_theme` from `extensions` and any `.wy-*` rules from the project's `custom.css`;
they target the Read the Docs theme. Every Furo option still works. This theme adds two:

| Option | Default | Purpose |
| :--- | :--- | :--- |
| `portal_url` | `https://docs.lhzn.io/` | Target of the organization label and the footer link; empty hides both. |
| `org_name` | `Long Horizon Observatory` | Text of the organization label and footer link. |

The favicon defaults to the half-moon mark when `html_favicon` is unset. A project logo set with
`html_logo`, or Furo's `light_logo` and `dark_logo`, replaces the mark in the sidebar.

## Modes

Day ("gilded china": eggshell, navy, cobalt) and Night ("chart room": #111111, white, maritime
yellow) follow the reader's system setting until they pick one with Furo's toggle. The values come
from the repository's shared `tokens/lhzn-tokens.css`, which the docs.lhzn.io portal also uses;
this package maps them onto Furo's variables in `theme/lhzn/static/lhzn.css`.

## Fonts

Josefin Sans (headings and labels) is bundled as Latin-subset variable WOFF2 files under the SIL
Open Font License 1.1 (license text in `tokens/fonts/`). Body text and code use the reader's system
sans-serif and monospace faces. Pages make no requests to third-party font or analytics services.

## Releases

Tagged `sphinx-v<version>` in the source repository.

## License

MIT for the theme code; the bundled fonts keep their own license.
