Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
args: [--in-place, --config, ./pyproject.toml]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.11.1"
rev: "v2.16.0"
hooks:
- id: pyproject-fmt

Expand All @@ -39,14 +39,14 @@ repos:

# Notebook tools
- repo: https://github.com/kynan/nbstripout
rev: 0.9.0
rev: 186d22f
Comment thread
s-weigand marked this conversation as resolved.
hooks:
- id: nbstripout
args: [--drop-empty-cells]

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.14
rev: v0.15.1
hooks:
- id: ruff
name: "ruff sort imports notebooks"
Expand Down Expand Up @@ -88,7 +88,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.14
rev: v0.15.1
hooks:
- id: ruff
name: "ruff sort imports"
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/css/mermaid_dark.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Overwrite edge colors and arror marker color in dakr mode. in */
/* Overwrite edge colors and arrow marker color in dark mode. */
html[data-theme="dark"] pre.mermaid {
& .marker {
fill: #e3e3e3 !important;
Expand Down
14 changes: 14 additions & 0 deletions docs/_static/css/xarray_dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Overwrite xarray wrapper in dark mode. */
html[data-theme="dark"] div.cell_output div.output.text_html {
background-color: var(--pst-color-on-background) !important;
color: var(--pst-color-text-base) !important;
}

/* Tables */
html[data-theme="dark"] div.cell_output table {
color: var(--pst-color-text-base) !important;
}

html[data-theme="dark"] div.cell_output tbody tr:nth-child(odd) {
background-color: var(--pst-color-on-background) !important;
}
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
'contributing': [],
'changelog': [],
'config/project/subproject/config_docs': [],
'notebooks/tips_and_tricks': [],
}

# Theme options are theme-specific and customize the look and feel of a
Expand All @@ -147,6 +148,7 @@
html_static_path = ["_static"]
html_css_files = [
'css/mermaid_dark.css',
'css/xarray_dark.css',
]

# -- Options for HTMLHelp output ---------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
installation
usage
config/project/subproject/config_docs
notebooks/tips_and_tricks
api_docs
contributing
changelog
Expand Down
Loading
Loading