Skip to content

Commit fca4d7c

Browse files
authored
Merge pull request #204 from scalableminds/restructure-and-shord-ids
Restructure docs, clarify extension points and configs, use short ids
2 parents 20e43eb + 17b27f7 commit fca4d7c

File tree

27 files changed

+251
-410
lines changed

27 files changed

+251
-410
lines changed

docs/_static/css/custom.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ footer {
1515

1616
.sidebar-end-items {
1717
margin-top: 0% !important;
18-
}
18+
}
19+
20+
/* Remove ↗ for external links in top bar menu */
21+
.nav-link.nav-external:after {
22+
display: none;
23+
}

docs/conf.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
'sphinx.ext.todo',
3232
'sphinxcontrib.mermaid',
3333
'sphinxmark',
34+
'sphinx_reredirects',
3435
]
3536

3637
# Display todos by setting to True
@@ -60,12 +61,18 @@
6061
html_theme_options = {
6162
"github_url": "https://github.com/zarr-developers/zarr-specs",
6263
"twitter_url": "https://twitter.com/zarr_dev/",
64+
"icon_links": [
65+
{
66+
"name": "Gitter",
67+
"url": "https://gitter.im/zarr-developers/community",
68+
"icon": "fa-brands fa-gitter",
69+
},
70+
],
6371
"show_prev_next": False,
6472
"secondary_sidebar_items": ["page-toc"],
6573
"footer_items": [], # hidden in custom css
6674
}
6775

68-
6976
# Add any paths that contain custom static files (such as style sheets) here,
7077
# relative to this directory. They are copied after the builtin static files,
7178
# so a file named "default.css" will overwrite the builtin "default.css".
@@ -79,3 +86,7 @@
7986
# suppress "duplicate citation" warnings
8087
'ref.citation',
8188
]
89+
90+
redirects = {
91+
"index": "specs.html",
92+
}

docs/core.rst

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

docs/extensions.rst

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

docs/extensions/array-extensions.rst

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

docs/extensions/data-types/complex/v1.0.rst

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

docs/extensions/storage-transformers.rst

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

docs/index.rst

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
=====================
2-
Zarr specifications
3-
=====================
1+
=====
2+
Specs
3+
=====
44

55
A good starting point is the :ref:`zarr-core-specification-v3.0`.
66

77
.. toctree::
8-
:glob:
9-
:maxdepth: 3
10-
:titlesonly:
11-
:caption: Contents:
128

13-
core
14-
extensions
15-
codecs
16-
stores
9+
Home <https://zarr.dev>
10+
specs
11+
ZEPs <https://zarr.dev/zeps>
12+
Implementations <https://github.com/zarr-developers/zarr_implementations>
1713

1814

1915
Indices and tables

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
sphinx
1+
sphinx<6.0.0
22
pydata-sphinx-theme==0.12.0
33
sphinxcontrib-mermaid
44
sphinxmark
5+
sphinx-reredirects

docs/specs.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
==============
2+
Specifications
3+
==============
4+
5+
.. toctree::
6+
:maxdepth: 1
7+
:caption: v3
8+
9+
Core <v3/core/v3.0>
10+
v3/data-types
11+
v3/codecs
12+
v3/stores
13+
v3/array-storage-transformers
14+
15+
.. toctree::
16+
:maxdepth: 1
17+
:caption: v2
18+
19+
Zarr spec v2 <https://zarr.readthedocs.io/en/stable/spec/v2.html>
20+
21+
.. toctree::
22+
:maxdepth: 1
23+
:caption: v1
24+
25+
Zarr spec v1 <https://zarr.readthedocs.io/en/stable/spec/v1.html>

0 commit comments

Comments
 (0)