diff --git a/docs/examples/check/index.md b/docs/examples/check/index.md index d2f411a..d32e2ba 100644 --- a/docs/examples/check/index.md +++ b/docs/examples/check/index.md @@ -1,10 +1,10 @@ +--- +asciinema: true +--- + # Check -
- - +
```make title="check.mk" --8<-- "docs/examples/check/check.mk" diff --git a/docs/examples/embedded/index.md b/docs/examples/embedded/index.md index 8a4e133..08a15c8 100644 --- a/docs/examples/embedded/index.md +++ b/docs/examples/embedded/index.md @@ -1,10 +1,10 @@ +--- +asciinema: true +--- + # Embedded -
- - +
```make title="embedded.mk" --8<-- "docs/examples/embedded/embedded.mk" diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 0000000..527f891 --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block scripts %} + + {{ super() }} + + {% if page.meta %} + {% if page.meta.asciinema %} + + {% endif %} + {% endif %} + + +{% endblock %} diff --git a/mkdocs.yml b/mkdocs.yml index 46c3a55..4870cb3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,9 +1,11 @@ site_name: task.mk site_url: https://gh.dayl.in/task.mk repo_url: https://github.com/daylinmorgan/task.mk +edit_uri: edit/main/docs/ repo_name: daylinmorgan/task.mk theme: name: material + custom_dir: docs/overrides features: - navigation.indexes palette: @@ -11,8 +13,8 @@ theme: extra_css: - stylesheets/extra.css - stylesheets/asciinema-player.css -# extra_javascript: - # - javascripts/asciinema-player.min.js +extra_javascript: + - javascripts/asciinema-player.min.js plugins: - search - git-revision-date-localized: