Skip to content

Commit

Permalink
add logo and copybutton
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Dec 1, 2024
1 parent 5e1ca66 commit 5048e8a
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/source/_static/zndraw-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/source/_static/zndraw-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

extensions = [
"nbsphinx",
"sphinx_copybutton",
]

templates_path = ["_templates"]
Expand All @@ -29,3 +30,25 @@

html_theme = "furo"
html_static_path = ["_static"]

html_theme_options: dict = {
"light_logo": "zndraw-light.svg",
"dark_logo": "zndraw-dark.svg",
"footer_icons": [
{
"name": "GitHub",
"url": "https://github.com/zincware/zndraw",
"html": "",
"class": "fa-brands fa-github fa-2x",
},
],
"source_repository": "https://github.com/zincware/zndraw",
"source_branch": "main",
"source_directory": "docs/source/",
"navigation_with_keys": True,
}

# font-awesome logos
html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css",
]
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ znh5md = {version = "^0.3"}
sphinx = "^8.1.3"
furo = "^2024.8.6"
nbsphinx = "^0.9.5"
sphinx-copybutton = "^0.5.2"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 5048e8a

Please sign in to comment.