Skip to content

Commit

Permalink
Deployed 5e76a13 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 6, 2024
0 parents commit 812f6ed
Show file tree
Hide file tree
Showing 83 changed files with 14,551 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
551 changes: 551 additions & 0 deletions 404.html

Large diffs are not rendered by default.

602 changes: 602 additions & 0 deletions appendixes/appendix-links/index.html

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions appendixes/gen-appendix-links.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
from markdown_it.tree import SyntaxTreeNode
from markdown_it import MarkdownIt

import os
import fnmatch
import click

@click.command()
@click.argument('dir', required=True)
def parse_markdown_files(dir):
all_href = get_all_hrefs(dir)
with open(f"{dir}/appendixes/appendix-links.md", "w") as appendix:
appendix.write("""<!-- this file is generated by toolings -->
# Appendix "All links"
This is a collection of all the links from this website:
"""
)
for e in all_href:
appendix.write(f"- {e}\n")
appendix.write("\n")

def get_all_hrefs(dir):
md = MarkdownIt("commonmark")
all_href = []
for root, _, files in os.walk(dir):
for filename in fnmatch.filter(files, '*.md'):
if filename == "appendix-links.md":
continue # skip appendix-links file itself
with open(f"{root}/{filename}", "r") as f:
tokens = md.parse(f.read())
node = SyntaxTreeNode(tokens)
for n in node.walk():
if n.type == "link":
all_href.append(n.attrs["href"])
all_href.sort()
print(all_href)
return all_href

if __name__ == '__main__':
parse_markdown_files()
Binary file added assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions assets/javascripts/bundle.fe8b6f2b.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/javascripts/bundle.fe8b6f2b.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/javascripts/lunr/min/lunr.ar.min.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.da.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.de.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.du.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 812f6ed

Please sign in to comment.