Skip to content

Commit 08d460a

Browse files
authored
Merge pull request #180 from scalableminds/draft-watermark
use sphinxmark to add draft watermark to all pages
2 parents e1c4787 + bd4efc3 commit 08d460a

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

docs/_static/css/custom.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.bd-main .bd-content .bd-article-container {
2+
flex-grow: 1;
3+
max-width: 100%;
4+
}
5+
6+
@media (min-width:960px) {
7+
.bd-page-width {
8+
max-width: 100rem;
9+
}
10+
}
11+
12+
footer {
13+
display: none;
14+
}
15+
16+
.sidebar-end-items {
17+
margin-top: 0% !important;
18+
}

docs/_static/draft-watermark.png

33 KB
Loading

docs/conf.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
3030
extensions = [
31-
'sphinxcontrib.mermaid'
31+
'sphinxcontrib.mermaid',
32+
'sphinxmark',
3233
]
3334

35+
sphinxmark_enable = True
36+
sphinxmark_div = 'bd-article-container'
37+
sphinxmark_image = 'draft-watermark.png'
38+
3439
# Add any paths that contain templates here, relative to this directory.
3540
templates_path = ['_templates']
3641

@@ -52,6 +57,8 @@
5257
"github_url": "https://github.com/zarr-developers/zarr-specs",
5358
"twitter_url": "https://twitter.com/zarr_dev/",
5459
"show_prev_next": False,
60+
"secondary_sidebar_items": ["page-toc"],
61+
"footer_items": [], # hidden in custom css
5562
}
5663

5764

@@ -60,6 +67,10 @@
6067
# so a file named "default.css" will overwrite the builtin "default.css".
6168
html_static_path = ['_static']
6269

70+
html_css_files = [
71+
'css/custom.css',
72+
]
73+
6374
suppress_warnings = [
6475
# suppress "duplicate citation" warnings
6576
'ref.citation',

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sphinx
2-
pydata-sphinx-theme
2+
pydata-sphinx-theme==0.12.0
33
sphinxcontrib-mermaid
4+
sphinxmark

0 commit comments

Comments
 (0)