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

This commit is contained in:
Илья Макаров 2025-01-27 16:40:49 +03:00
commit a3bd569218
4 changed files with 104 additions and 0 deletions

View File

@ -0,0 +1,29 @@
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: |
cd wiki
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
mkdocs build
- name: Deploy site
run: |
cd wiki
rm -rf /var/www/wiki/*
cp -r site/ /var/www/wiki/site/

3
docs/index.md Normal file
View File

@ -0,0 +1,3 @@
# DevOps База знаний
## Здесь я буду хранить свои заметки и интрукции

68
mkdocs.yml Normal file
View File

@ -0,0 +1,68 @@
site_name: Ilya Makarov knowledge base
site_url: https://wiki.mcarov.pro
copyright: Copyright © 2025
theme:
name: material
language: ru
favicon: assets/favicon.ico
icon:
repo: fontawesome/brands/github
features:
- navigation.indexes
- 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://git.mcarov.pro/ilyamak04/wiki
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

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
mkdocs
mkdocs-glightbox
pymdown-extensions
mkdocs-material