Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
dd4e4b1
docs: migrate to zensical, slim down catalog pages, add compare page
tlambert03 Oct 17, 2026
8c58015
docs: colormap swatches in compare legend, tidy source dropdown
tlambert03 Oct 17, 2026
37371f3
docs: use zensical's default search separator
tlambert03 Oct 17, 2026
4c395b1
docs: trim search index, hide modules summary on API page
tlambert03 Oct 17, 2026
41405b6
docs: circular sine ramp (cyclic) and peaks (diverging) test images
tlambert03 Oct 17, 2026
1cdc948
docs: square test image beside colorbars, hover tips, dark theme by d…
tlambert03 Oct 17, 2026
759a14b
docs, tests: use pydantic v2 forms
tlambert03 Oct 17, 2026
2f82517
ci: build docs as a check only, stop deploying to gh-pages
tlambert03 Oct 18, 2026
04757c0
Merge branch 'main' into docs/zensical
tlambert03 Oct 18, 2026
3e5e6ae
css
tlambert03 Oct 18, 2026
53635f7
Merge branch 'docs/zensical' of https://github.com/tlambert03/cmap in…
tlambert03 Oct 18, 2026
20a75f5
docs: use zensical's dark background so code blocks stand out
tlambert03 Oct 18, 2026
5b963bf
docs: don't stretch colormap labels on hover
tlambert03 Oct 18, 2026
a9aba66
docs: drop css overrides that are no-ops under zensical
tlambert03 Oct 18, 2026
63483f6
docs: don't list parameters in the API page's table of contents
tlambert03 Oct 18, 2026
1963022
docs: address review findings
tlambert03 Oct 18, 2026
9ac9def
specific
tlambert03 Oct 18, 2026
cc773c4
drop separate license annotation for the favicon
tlambert03 Oct 18, 2026
3bf369a
docs: label CVD buttons with the missing cone type (L/M/S)
tlambert03 Oct 18, 2026
e9f48e7
docs: put colormap names on a dark pill so they're legible on any col…
tlambert03 Oct 18, 2026
ef82332
docs: lighter colormap name pills
tlambert03 Oct 18, 2026
ad97826
docs: smaller name pills so more of each colorbar shows
tlambert03 Oct 18, 2026
162d01d
docs: compare chart dash patterns and distinct-color mode, nicer tool…
tlambert03 Oct 18, 2026
2de921a
docs: clean chart tooltip swatches and labels
tlambert03 Oct 19, 2026
d27d3ea
docs: don't pin pill tooltips open after a click
tlambert03 Oct 19, 2026
7f34874
docs: update Kovesi links (moved to Codeberg); link the sine ramp paper
tlambert03 Oct 19, 2026
81e52a2
docs: discrete colormaps get per-color lightness and no sine ramp; fi…
tlambert03 Oct 19, 2026
c7dbb9e
fix: report() derivatives no longer start with a padded zero
tlambert03 Oct 19, 2026
077cf12
docs: a page per collection, and catalog filters kept in the URL
tlambert03 Oct 19, 2026
e9910ae
Merge remote-tracking branch 'upstream/main' into docs/zensical
tlambert03 Oct 19, 2026
8cd30c0
chore: bump typos hook to v1.51.1
tlambert03 Oct 19, 2026
700e3af
docs: center the square test image on discrete pages
tlambert03 Oct 19, 2026
e0a1d18
docs: show your own image (or a sample) through each colormap on the …
tlambert03 Oct 19, 2026
6946527
docs: plotly and More... tabs on colormap pages; fix the napari example
tlambert03 Oct 19, 2026
3f186bf
docs: enhance accessibility and error handling in documentation; upda…
tlambert03 Oct 19, 2026
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
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
name: docs

# The docs are hosted on Read the Docs (see .readthedocs.yaml).
# This only checks that they build.

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
python-version: 3.12
- run: uv run --group docs mkdocs gh-deploy --strict --force
- run: uv run --group docs python docs/_gen_catalog.py
- run: uv run --group docs zensical build --strict
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ENV/
# Rope project settings
.ropeproject

# mkdocs documentation
# docs build output
/site

# mypy
Expand All @@ -108,7 +108,10 @@ ENV/

cmap/_version.py
src/cmap/_version.py
docs/assets/_data/

.ruff_cache/
uv.lock

# generated docs (see docs/_gen_catalog.py)
docs/catalog/*/
.cache/
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ repos:
- id: pretty-format-json
args: [--autofix]

- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.51.1
hooks:
- id: typos
args: [--force-exclude] # omitting --write-changes

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.1
hooks:
Expand Down
12 changes: 8 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# and https://docs.readthedocs.com/platform/stable/intro/zensical.html

version: 2

Expand All @@ -10,7 +11,10 @@ build:
post_install:
- pip install uv
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --all-extras --group docs --link-mode=copy

mkdocs:
configuration: mkdocs.yml
fail_on_warning: true
build:
html:
- $READTHEDOCS_VIRTUALENV_PATH/bin/python docs/_gen_catalog.py
- $READTHEDOCS_VIRTUALENV_PATH/bin/zensical build --strict
post_build:
- mkdir -p $READTHEDOCS_OUTPUT/html/
- cp --recursive site/* $READTHEDOCS_OUTPUT/html/
Loading
Loading