Skip to content

Commit ebed400

Browse files
Fix mkdocs site_url and don't use directory urls (#651)
* Customize 404 and don't use directory urls * Change site_url * Dynamically set url * Fix syntax * Separate commands * Remove unnecessary override * Cross-platform sed command * Apply suggested improvement to config Co-authored-by: Chuck Daniels <[email protected]> --------- Co-authored-by: Chuck Daniels <[email protected]>
1 parent b5a66d7 commit ebed400

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ repos:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
1010
- id: check-yaml
11+
exclude: mkdocs.yml
1112

1213
- repo: https://github.com/astral-sh/ruff-pre-commit
1314
# Ruff version.

.readthedocs.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ build:
1212
- pixi install --environment docs
1313
- pixi run build-docs
1414
- pixi run readthedocs
15-
16-
# Build documentation in the doc/ directory with Sphinx
17-
sphinx:
18-
configuration: docs/conf.py
19-
fail_on_warning: true

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ repo_name: zarr-developers/VirtualiZarr
44
repo_url: https://github.com/zarr-developers/VirtualiZarr
55
site_description: Cloud-Optimize your Scientific Data as Virtual Zarr stores, using Xarray syntax.
66
site_author: VirtualiZarr developers
7-
site_url: https://virtualizarr.readthedocs.io/en/stable/index.html
7+
site_url: !ENV [READTHEDOCS_CANONICAL_URL, 'https://virtualizarr.readthedocs.io/en/latest/']
88
docs_dir: docs
9+
use_directory_urls: false
910

1011
extra:
1112
version:

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ docs = ["docs"]
201201
serve-docs = { cmd = "mkdocs serve" }
202202
build-docs = { cmd = "mkdocs build" }
203203
check-docs = { cmd = "mkdocs build --strict" }
204-
readthedocs = "rm -rf $READTHEDOCS_OUTPUT/html && cp -r site $READTHEDOCS_OUTPUT/html"
205-
204+
readthedocs = { cmd = "rm -rf $READTHEDOCS_OUTPUT/html && cp -r site $READTHEDOCS_OUTPUT/html" }
206205
# Define commands to run within the docs environment
207206
[tool.pixi.feature.minio.tasks]
208207
run-tests = { cmd = "pytest virtualizarr/tests/test_manifests/test_store.py virtualizarr/tests/test_parsers/test_hdf/test_hdf_manifest_store.py --run-minio-tests --run-network-tests --verbose" }

0 commit comments

Comments
 (0)