From 55f4dcc4603be52651daed8b0314b6dca6ccd368 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Sat, 1 Jun 2024 22:19:33 +0200 Subject: [PATCH] docs: Add meta tags for link preview and fix js loading issue. --- docs/main.py | 29 ++++++++++++++++++++--------- docs/mkdocs.yml | 7 +++---- docs/overrides/main.html | 12 ++++++++++++ 3 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 docs/overrides/main.html diff --git a/docs/main.py b/docs/main.py index e8e05282..a54bbf37 100644 --- a/docs/main.py +++ b/docs/main.py @@ -16,15 +16,26 @@ def define_env(env: Any) -> None: @env.macro def asciinema(name: str) -> str: return f"""
- + +
""" diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index f34d4bf4..12b92a49 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Clan Docs +site_name: Clan Documentation site_url: https://docs.clan.lol repo_url: https://git.clan.lol/clan/clan-core/ repo_name: clan-core @@ -105,7 +105,8 @@ theme: - content.code.copy - content.tabs.link icon: - repo: fontawesome/brands/git + repo: fontawesome/brands/git-alt + custom_dir: overrides palette: # Palette toggle for light mode @@ -128,8 +129,6 @@ theme: extra_css: - static/extra.css - - static/asciinema-player/custom-theme.css - - static/asciinema-player/asciinema-player.css extra: social: diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 00000000..184e7115 --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block extrahead %} + + + + + + + + +{% endblock %} \ No newline at end of file