mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-11-12 12:13:15 -06:00
docs: make asciinema template based
This commit is contained in:
parent
13c157ef8a
commit
8f875a13d1
4 changed files with 30 additions and 12 deletions
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
asciinema: true
|
||||
---
|
||||
|
||||
# Check
|
||||
|
||||
<div id="demo"></div>
|
||||
<script src="/javascripts/asciinema-player.min.js"></script>
|
||||
<script async>
|
||||
AsciinemaPlayer.create('./demo.cast', document.getElementById('demo'),{loop:true});
|
||||
</script>
|
||||
<div id="demo-cast"></div>
|
||||
|
||||
```make title="check.mk"
|
||||
--8<-- "docs/examples/check/check.mk"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
asciinema: true
|
||||
---
|
||||
|
||||
# Embedded
|
||||
|
||||
<div id="demo"></div>
|
||||
<script src="/javascripts/asciinema-player.min.js"></script>
|
||||
<script async>
|
||||
AsciinemaPlayer.create('./demo.cast', document.getElementById('demo'),{loop: true});
|
||||
</script>
|
||||
<div id="demo-cast"></div>
|
||||
|
||||
```make title="embedded.mk"
|
||||
--8<-- "docs/examples/embedded/embedded.mk"
|
||||
|
|
16
docs/overrides/main.html
Normal file
16
docs/overrides/main.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{% if page.meta %}
|
||||
{% if page.meta.asciinema %}
|
||||
<script async>
|
||||
AsciinemaPlayer.create('./demo.cast', document.getElementById('demo-cast'),{loop: true});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue