Skip to content

Commit

Permalink
doc: mkdocs-jupyter in requirements for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Dec 9, 2024
1 parent 71a9f80 commit 4c0ae83
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ repo_url: https://github.com/det-lab/kaitai_struct_awkward_runtime
edit_uri: edit/main/docs/
theme:
name: material
custom_dir: overrides
features:
- content.action.edit
- content.action.edit
plugins:
- mkdocs-jupyter:
include_source: true
11 changes: 11 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "base.html" %}

{% block content %}
{% if page.nb_url %}
<a href="{{ page.nb_url }}" title="Download Notebook" class="md-content__button md-icon">
{% include ".icons/material/download.svg" %}
</a>
{% endif %}

{{ super() }}
{% endblock content %}
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ dev = [
"pytest-cov >=3",
]
docs = [
"mkdocs-material"
"mkdocs-material",
"mkdocs-jupyter"
]

[project.urls]
Expand Down

0 comments on commit 4c0ae83

Please sign in to comment.