Skip to content

Commit 8b35cf4

Browse files
authored
Use mkdocs-material for Zarr-Python documentation (#3118)
* Use mkdocs-material for Zarr-Python documentation * Update towncrier instructions * Update readthedocs config * Remove conda section * Install hatch for rtd * Move build step * Start a shell with hatch * Use commands * Don't use hatch * Figure out redirects later * Format docstrings with ruff * git ignore docs output * Specify towncrier start * Add redirects * Don't use version extra * Convert changes to markdown * Use cards on homepage for now * Execute examples in quickstart * Execute examples in array user guide * Auto-doc for some modules * Cleanup quickstart * Filter warnings in quickstart * Add links to quickstart * Add index pages * Remove $ from console * Update code block formatting for arrays * Add cross-references to arrays * Executable blocks and cross-references in groups user guide * Fix links * Executable code blocks in attrs user-guide * Add external inventories * Add cross-references to storage * Executable storage guide * Executable config code blocks * Update V3 migration links * Executable code blocks in data types * Executable code blocks in performance * Use mkdocs build --strict rather than doctest * Executable code blocks in consolidated metadata * Better pprint * Add buffer protocol to API * Cross-references in extending * References in gpu guide * References in gpu guide * Fix indentation * Formatting * Add new release notes * Inherit docstrings * Add buffer API page * Fix some links * Update changelog check * Update dependency * Update cross-references * Add cross-reference * Convert references and admonitions * Improve numpy dtype cross-references * Show source * Update changelog entries to markdown * Strict RTD build * Fix numpydoc errors * Allow related section * Update numpydoc validation config * Fix docstring failures * Update config ref
1 parent ef136e9 commit 8b35cf4

Some content is hidden

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

105 files changed

+4317
-6231
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
TODO:
44
* [ ] Add unit tests and/or doctests in docstrings
55
* [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
6-
* [ ] New/modified features documented in `docs/user-guide/*.rst`
6+
* [ ] New/modified features documented in `docs/user-guide/*.md`
77
* [ ] Changes documented as a new file in `changes/`
88
* [ ] GitHub Actions have all passed
99
* [ ] Test coverage is 100% (Codecov passes)

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
needs release notes:
22
- all:
33
- changed-files:
4-
- all-globs-to-all-files: '!changes/*.rst'
4+
- all-globs-to-all-files: '!changes/*.md'

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ jobs:
129129
pip install hatch
130130
- name: Set Up Hatch Env
131131
run: |
132-
hatch env create doctest
133-
hatch env run -e doctest list-env
132+
hatch env create docs
133+
hatch env run -e docs list-env
134134
- name: Run Tests
135135
run: |
136-
hatch env run --env doctest run
136+
hatch env run --env docs check
137137
138138
test-complete:
139139
name: Test complete

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ coverage.xml
4949
# Django stuff:
5050
*.log
5151

52-
# Sphinx documentation
52+
# Documentation
53+
site/
5354
docs/_build/
54-
docs/api
5555
docs/data
5656
data
5757
data.zip

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ repos:
2020
rev: v6.0.0
2121
hooks:
2222
- id: check-yaml
23+
exclude: mkdocs.yml
2324
- id: trailing-whitespace
2425
- repo: https://github.com/pre-commit/mirrors-mypy
2526
rev: v1.17.1

.readthedocs.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ build:
1111
then
1212
towncrier build --version Unreleased --yes;
1313
fi
14-
15-
sphinx:
16-
configuration: docs/conf.py
17-
fail_on_warning: true
18-
19-
formats: all
14+
build:
15+
html:
16+
- mkdocs build --strict --site-dir $READTHEDOCS_OUTPUT/html
17+
mkdocs:
18+
configuration: mkdocs.yml
2019

2120
python:
2221
install:
2322
- method: pip
2423
path: .
2524
extra_requirements:
2625
- docs
26+
- remote

changes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Writing a changelog entry
22
-------------------------
33

4-
Please put a new file in this directory named `xxxx.<type>.rst`, where
4+
Please put a new file in this directory named `xxxx.<type>.md`, where
55

66
- `xxxx` is the pull request number associated with this entry
77
- `<type>` is one of:

ci/check_changelog_entries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def is_int(s: str) -> bool:
2525
print(f"Found {len(entries)} entries")
2626
print()
2727

28-
bad_suffix = [e for e in entries if e.suffix != ".rst"]
28+
bad_suffix = [e for e in entries if e.suffix != ".md"]
2929
bad_issue_no = [e for e in entries if not is_int(e.name.split(".")[0])]
3030
bad_type = [e for e in entries if e.name.split(".")[1] not in VALID_CHANGELOG_TYPES]
3131

3232
if len(bad_suffix) or len(bad_issue_no) or len(bad_type):
3333
if len(bad_suffix):
34-
print("Changelog entries without .rst suffix")
34+
print("Changelog entries without .md suffix")
3535
print("-------------------------------------")
3636
print("\n".join([p.name for p in bad_suffix]))
3737
print()

docs/Makefile

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

0 commit comments

Comments
 (0)