Skip to content

Commit

Permalink
updates to mkdocs config
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed Dec 1, 2024
1 parent 3daad87 commit 11a9588
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

name: publish

on:
Expand All @@ -9,9 +11,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
7 changes: 5 additions & 2 deletions docs/assets/javascripts/unhide_div.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
function unhide_div(target, file) {
var x = document.getElementById(target);
if (x.style.display === "none") {
x.style.display = "block";
AsciinemaPlayer.create(file, document.getElementById(target));
x.style.display = "inline";
AsciinemaPlayer.create(file, document.getElementById(target),
{fit: "none"}
);
} else {
x.style.display = "none";
document.getElementById(target).getElementsByClassName('ap-wrapper')[0].remove()
}
}
2 changes: 1 addition & 1 deletion docs/assets/stylesheets/asciinema-3-8-1-player.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ div.ap-wrapper {
outline: none;
height: 100%;
display: flex;
justify-content: center;
justify-content: left; /* Customised */
}
div.ap-wrapper .title-bar {
display: none;
Expand Down
8 changes: 4 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ theme:

extra_css:
- assets/stylesheets/extra.css
- assets/stylesheets/asciinema-3-0-0-player.css
- assets/stylesheets/asciinema-3-8-1-player.css

extra_javascript:
- assets/javascripts/asciinema-3-0-0-player.min.js
- assets/javascripts/asciinema-3-8-1-player.min.js
- assets/javascripts/unhide_div.js

plugins:
Expand All @@ -54,8 +54,8 @@ markdown_extensions:
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg

extra:
social: true # Repurpose for cookies setting in footer (GDPR requirement), set this to true to trigger standard theme logic
Expand Down

0 comments on commit 11a9588

Please sign in to comment.