diff --git a/.gitea/workflows/build-site.yml b/.gitea/workflows/build-site.yml new file mode 100644 index 0000000..0de1135 --- /dev/null +++ b/.gitea/workflows/build-site.yml @@ -0,0 +1,25 @@ +name: Build MkDocs + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: self-hosted + steps: + - name: Clone repository + run: | + git clone --depth 1 --branch master https://git.mcarov.pro/ilyamak04/wiki.git + + - name: Build site + run: | + mkdocs build + + - name: Deploy site + run: | + cd knowledge-base + rm -rf /var/www/wiki/* + cp -r site/ /var/www/wiki/site/ + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45ddf0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +site/ diff --git a/mkdocs.yml b/mkdocs.yml index c97182f..6e74b99 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1 +1,70 @@ -site_name: My Docs +site_name: Ilya Makarov knowledge base +site_url: https://wiki.mcarov.pro +copyright: Copyright © 2025 +repo_url: https://github.com/Arity-T/knowledge-base +repo_name: ilyamak04/wiki +edit_uri: edit/main/docs/ +theme: + name: material + language: ru + favicon: assets/favicon.ico + + icon: + repo: fontawesome/brands/github + + features: + - navigation.instant + - navigation.tabs + - content.code.copy + - content.action.edit + - content.action.view + + palette: + # Palette toggle for light mode + - media: "(prefers-color-scheme: light)" + scheme: default + primary: black + toggle: + icon: material/brightness-7 + name: Switch to dark mode + # Palette toggle for dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: black + toggle: + icon: material/brightness-4 + name: Switch to light mode +extra: + generator: false + social: + - icon: fontawesome/brands/github + link: https://github.com/ilyamak04 + +markdown_extensions: + - attr_list + - admonition + - pymdownx.tabbed: + alternate_style: true + slugify: !!python/object/apply:pymdownx.slugs.slugify + kwds: + case: lower + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences + - pymdownx.details + - pymdownx.blocks.caption + - toc: + permalink: "#" + slugify: !!python/object/apply:pymdownx.slugs.slugify + kwds: + case: lower + +extra_css: + - stylesheets/extra.css + +plugins: + - glightbox