Skip to content

Commit 823ec7c

Browse files
committed
docs: put sa wiki footer inside comments partial
not the best
1 parent 32bca55 commit 823ec7c

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

docs/SA-Wiki/_Footer.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

mkdocs.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,14 @@ plugins:
4646
- search
4747
- glightbox
4848
- meta
49+
# - macros
50+
# - include-markdown
4951

5052
markdown_extensions:
53+
- md_in_html
5154
- admonition
5255
- pymdownx.details
53-
- pymdownx.superfences:
54-
custom_fences:
55-
- name: mermaid
56-
class: mermaid
57-
format: !!python/name:pymdownx.superfences.fence_code_format
5856
- attr_list
59-
- md_in_html
6057
- pymdownx.superfences
6158
- pymdownx.emoji:
6259
emoji_index: !!python/name:material.extensions.emoji.twemoji
@@ -80,10 +77,15 @@ markdown_extensions:
8077
- pymdownx.tilde
8178
- attr_list
8279
- pymdownx.blocks.caption
80+
- pymdownx.extra
8381
- def_list
8482
- pymdownx.tasklist:
8583
custom_checkbox: true
86-
84+
- pymdownx.superfences:
85+
custom_fences:
86+
- name: mermaid
87+
class: mermaid
88+
format: !!python/name:pymdownx.superfences.fence_code_format
8789
extra:
8890
social:
8991
# Took this from the goboscript mkdocs yml file

overrides/partials/comments.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<!-- Footer for scratchattach pages. Not ideal -->
2+
{% if page.file.src_uri.startswith('SA-Wiki') %}
3+
<div>
4+
<p>
5+
<a href="https://scratchattach.readthedocs.io/en/latest/">Extended documentation (WIP)</a>
6+
- <a href="https://github.com/TimMcCool/scratchattach/blob/main/CHANGELOG.md">Change log</a>
7+
- <a href="https://scratchattach.tim1de.net/">Website</a>
8+
</p>
9+
<p align="left">
10+
<img width="70" src="https://raw.githubusercontent.com/TimMcCool/scratchattach/refs/heads/main/logos/logo.svg">
11+
</p>
12+
</div>
13+
{% endif %}
14+
115
{% if page.meta.comments %}
216
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
317
<!-- Insert generated snippet here -->

0 commit comments

Comments
 (0)