test 1
Some checks failed
Build MkDocs / build-and-deploy (push) Failing after 1s

This commit is contained in:
root 2025-01-22 21:53:18 +01:00
parent eba3a58fe9
commit f247d63434
3 changed files with 96 additions and 1 deletions

View File

@ -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/

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
site/

View File

@ -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