Skip to content

Commit 21c6f0f

Browse files
Migrate docs to zensical (#789)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8389f83 commit 21c6f0f

138 files changed

Lines changed: 4343 additions & 4056 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ repos:
4848
hooks:
4949
- id: mdformat
5050
additional_dependencies: [
51-
mdformat-myst,
51+
mdformat-mkdocs,
5252
mdformat-ruff,
5353
mdformat-pyproject>=0.0.2,
5454
]
5555
files: (docs/.)
56+
exclude: (docs/source/reference_guides/hookspecs\.md|docs/source/api/.*\.md|docs/source/how_to_guides/capture_warnings\.md|docs/source/how_to_guides/hashing_inputs_of_tasks\.md|docs/source/how_to_guides/provisional_nodes_and_task_generators\.md|docs/source/how_to_guides/remote_files\.md|docs/source/how_to_guides/writing_custom_nodes\.md|docs/source/tutorials/defining_dependencies_products\.md|docs/source/tutorials/using_a_data_catalog\.md)
5657
- repo: https://github.com/kynan/nbstripout
5758
rev: 0.9.1
5859
hooks:

.readthedocs.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
version: 2
22

3-
sphinx:
4-
configuration: docs/source/conf.py
3+
mkdocs:
4+
configuration: mkdocs.yml
55
fail_on_warning: true
66

77
build:
88
os: ubuntu-24.04
99
tools:
1010
python: "3.13"
1111
jobs:
12-
pre_create_environment:
13-
- asdf plugin add uv
14-
- asdf install uv latest
15-
- asdf global uv latest
16-
create_environment:
17-
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
18-
install:
19-
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
12+
pre_create_environment:
13+
- asdf plugin add uv
14+
- asdf install uv latest
15+
- asdf global uv latest
16+
create_environment:
17+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
18+
install:
19+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
20+
build:
21+
html:
22+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv run --group docs zensical build
23+
post_build:
24+
- mkdir -p "${READTHEDOCS_OUTPUT}/html"
25+
- cp -a docs/build/. "${READTHEDOCS_OUTPUT}/html/"

AGENTS.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# AGENTS
2+
3+
Guidance for coding agents working in this repository.
4+
5+
## Tooling
6+
7+
- Use `uv` for Python environments, dependencies, and running commands.
8+
- Use `just` as the primary task runner.
9+
- Use `rg` for fast code search.
10+
- `ast-grep` and `fastmod` are available for structural refactors.
11+
- `pixi` is available when needed.
12+
13+
## Setup
14+
15+
- Install dependencies:
16+
- `just install`
17+
- or `uv sync --all-groups`
18+
19+
## Validation Commands
20+
21+
- Lint:
22+
- `just lint`
23+
- Type checking:
24+
- `just typing`
25+
- Tests:
26+
- `just test`
27+
- Full verification:
28+
- `just check`
29+
30+
For targeted tests, prefer:
31+
32+
- `uv run --group test pytest tests/path/to/test_file.py -k "pattern"`

CHANGELOG.md

Lines changed: 460 additions & 458 deletions
Large diffs are not rendered by default.

docs/AGENTS.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Documentation
2+
3+
- Link to existing docs/API refs instead of re-explaining concepts - reduces duplication
4+
and keeps info in sync - Prevents documentation drift and outdated explanations by
5+
maintaining a single source of truth for each concept
6+
- Link to canonical docs rather than duplicating content - prevents drift and
7+
maintenance burden - Consolidating documentation into existing files with
8+
cross-references keeps information consistent and reduces the effort needed to
9+
update multiple locations when changes occur.
10+
- Document only public APIs and user-facing behavior - exclude internals, framework
11+
abstractions, and implementation plumbing - Users need actionable documentation on
12+
what they can use, not confusing details about internal mechanics they can't control
13+
- Explain before showing - place explanatory text before code examples, not after -
14+
Users need context to understand code examples; "explain then show" improves
15+
comprehension and reduces confusion
16+
- Create dedicated pages for substantial features - ensures discoverability and
17+
comprehensive coverage vs. fragmented mentions - Prevents users from missing
18+
features when they approach from different contexts (CLI vs. API) and allows
19+
features to be documented holistically rather than buried in subsections.
20+
- Avoid `# ruff: noqa` or `# type: ignore` in doc examples - ensures examples stay
21+
correct and runnable - Skip directives hide bugs and type errors in documentation
22+
code that users will copy, leading to broken examples in the wild
23+
- Explicitly mark parameters/features as 'optional' in docs, even when types show it -
24+
reduces cognitive load for readers - Users shouldn't need to parse type signatures
25+
to understand optionality; explicit labels make documentation scannable and
26+
accessible to all skill levels
27+
- Remove documentation sections explaining standard behavior that "just works" - keeps
28+
docs focused on actionable, non-obvious information - Users don't need explanations
29+
of things that work automatically; documentation should focus on configuration
30+
requirements, edge cases, and non-obvious behaviors that affect usage decisions
31+
- Strip boilerplate from docs examples - show only the feature being demonstrated -
32+
Reduces cognitive load and helps readers focus on the specific API or pattern being
33+
taught without distraction from scaffolding code.

docs/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AGENTS.md

docs/Makefile

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/source/_static/css/custom.css

Lines changed: 113 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,129 @@
11
/* Classes for the index page. */
2-
.index-card-image {
3-
padding-top: 1rem;
4-
height: 68px;
2+
.home-tiles {
3+
display: grid;
4+
grid-template-columns: repeat(2, minmax(0, 1fr));
5+
gap: 1rem;
6+
margin: 1.25rem 0 1rem;
7+
}
8+
9+
.home-tile {
10+
display: flex;
11+
flex-direction: column;
12+
align-items: center;
13+
gap: 0.55rem;
14+
padding: 1rem 1.1rem;
15+
border: 1px solid rgba(15, 23, 42, 0.14);
16+
border-radius: 14px;
17+
background: #ffffff;
18+
color: inherit;
19+
text-decoration: none;
520
text-align: center;
21+
box-shadow: 0 3px 10px rgba(15, 23, 42, 0.11);
22+
transition:
23+
transform 120ms ease-in-out,
24+
box-shadow 120ms ease-in-out,
25+
border-color 120ms ease-in-out;
26+
}
27+
28+
.home-tile,
29+
.home-tile:hover,
30+
.home-tile:focus,
31+
.home-tile:focus-visible,
32+
.home-tile * {
33+
text-decoration: none;
34+
}
35+
36+
.home-tile:hover {
37+
transform: translateY(-2px);
38+
box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
39+
border-color: #91a9ca;
40+
}
41+
42+
.md-typeset a.home-tile,
43+
.md-typeset a.home-tile:hover,
44+
.md-typeset a.home-tile:focus,
45+
.md-typeset a.home-tile:focus-visible,
46+
.md-typeset a.home-tile:active,
47+
.md-typeset a.home-tile:visited {
48+
text-decoration: none !important;
49+
border-bottom: 0 !important;
50+
background-image: none !important;
51+
color: inherit !important;
52+
}
53+
54+
body[data-md-color-scheme="default"] .md-typeset a.home-tile,
55+
body[data-md-color-scheme="default"] .md-typeset a.home-tile:hover,
56+
body[data-md-color-scheme="default"] .md-typeset a.home-tile:focus,
57+
body[data-md-color-scheme="default"] .md-typeset a.home-tile:focus-visible,
58+
body[data-md-color-scheme="default"] .md-typeset a.home-tile:active,
59+
body[data-md-color-scheme="default"] .md-typeset a.home-tile:visited {
60+
background: #ffffff !important;
61+
background-color: #ffffff !important;
662
}
763

8-
.index-card-link {
9-
color: var(--sd-color-card-text);
10-
font-weight: bold;
64+
.md-typeset a.home-tile *,
65+
.md-typeset a.home-tile:hover *,
66+
.md-typeset a.home-tile:focus *,
67+
.md-typeset a.home-tile:focus-visible *,
68+
.md-typeset a.home-tile:active *,
69+
.md-typeset a.home-tile:visited * {
70+
text-decoration: none !important;
71+
border-bottom: 0 !important;
72+
background-image: none !important;
1173
}
1274

13-
pre {
14-
padding-left: 20px
75+
.home-tile h3 {
76+
margin: 0;
77+
font-size: 1.05rem;
1578
}
1679

80+
.home-tile p {
81+
margin: 0;
82+
color: inherit;
83+
line-height: 1.45;
84+
}
85+
86+
.home-tile img {
87+
width: 44px;
88+
height: 44px;
89+
object-fit: contain;
90+
}
91+
92+
@media (max-width: 760px) {
93+
.home-tiles {
94+
grid-template-columns: 1fr;
95+
}
96+
}
97+
98+
pre,
1799
li pre {
18-
padding-left: 20px
100+
padding-left: 0;
101+
}
102+
103+
body[data-md-color-scheme="slate"] .home-tile {
104+
border-color: rgba(203, 213, 225, 0.24);
105+
background: rgba(15, 23, 42, 0.38);
106+
box-shadow: 0 4px 12px rgba(2, 6, 23, 0.38);
19107
}
20108

21-
.highlight {
22-
background: #f5f5f5
109+
body[data-md-color-scheme="slate"] .home-tile:hover {
110+
border-color: rgba(147, 197, 253, 0.55);
111+
box-shadow: 0 12px 26px rgba(2, 6, 23, 0.46);
23112
}
24113

25-
.highlight button.copybtn{
26-
background-color: #f5f5f5;
114+
body[data-md-color-scheme="slate"] .home-tile p {
115+
color: inherit;
27116
}
28117

29-
.highlight button.copybtn:hover {
30-
background-color: #f5f5f5;
118+
@media (prefers-color-scheme: dark) {
119+
.home-tile {
120+
border-color: rgba(203, 213, 225, 0.24);
121+
background: rgba(15, 23, 42, 0.38);
122+
box-shadow: 0 4px 12px rgba(2, 6, 23, 0.38);
123+
}
124+
125+
.home-tile:hover {
126+
border-color: rgba(147, 197, 253, 0.55);
127+
box-shadow: 0 12px 26px rgba(2, 6, 23, 0.46);
128+
}
31129
}

docs/source/_static/images/book.svg

Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)