Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ yardang preview
```

This renders the documentation into `docs/html/_previews/<theme>/` for each
bundled theme (`furo`, `sphinxawesome_theme`, `shibuya`, `fuma`). Themes whose
bundled theme (`furo`, `sphinxawesome_theme`, `shibuya`, `fuma`, `klink`). Themes whose
package is not installed are skipped. Restrict the set with `--themes`:

```bash
Expand All @@ -303,6 +303,7 @@ each theme is browsable live at a suburl of the published site:
- [`/_previews/sphinxawesome_theme/`](https://yardang.python-templates.dev/_previews/sphinxawesome_theme/)
- [`/_previews/shibuya/`](https://yardang.python-templates.dev/_previews/shibuya/)
- [`/_previews/fuma/`](https://yardang.python-templates.dev/_previews/fuma/)
- [`/_previews/klink/`](https://yardang.python-templates.dev/_previews/klink/)

## `source-dir`

Expand Down
9 changes: 9 additions & 0 deletions yardang/tests/test_themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ def test_other_themes_are_unchanged(self):
assert build_module.theme_module("furo") == "furo"


class TestDocumentedThemes:
"""The theme lists in the docs are maintained by hand, so they drift."""

@pytest.mark.parametrize("theme", BUNDLED_THEMES)
def test_theme_has_a_preview_link(self, theme):
docs = Path(__file__).parents[2] / "docs" / "src" / "configuration.md"
assert f"/_previews/{theme}/" in docs.read_text()


class TestSearchIntegration:
"""Search is theme-independent, so it is wired for every first-class theme."""

Expand Down