Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: pages

on:
push:
branch: main
pull_request:
workflow_dispatch:

jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: |
cache/pip
key: cache-pip-${{ runner.os }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
cache-pip-${{ runner.os }}
- run: make build
env:
PIP_CACHE_DIR: cache/pip
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site
publish_branch: site
commit_message: |-
render: ${{ github.event.head_commit.message }}

Render static website for GitHub pages from
commit
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
*.bin
*.elf
*.o

site
pages/README.md
Makefile.venv
.venv
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.PHONY: serve build
serve build: | venv
$(VENV)/mkdocs $@

.INTERMEDIATE: pages/README.md
serve build: pages/README.md
pages/README.md: README.md
cp $< $@

include Makefile.venv
Makefile.venv:
curl \
-o Makefile.fetched \
-L "https://github.com/sio/Makefile.venv/raw/v2023.04.17/Makefile.venv"
echo "fb48375ed1fd19e41e0cdcf51a4a0c6d1010dfe03b672ffc4c26a91878544f82 *Makefile.fetched" \
| sha256sum --check - \
&& mv Makefile.fetched Makefile.venv
20 changes: 20 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
site_name: Осваиваем STM32 снизу
repo_name: vbezhenar/stm32-tutorial
repo_url: https://github.com/vbezhenar/stm32-tutorial

docs_dir: pages

nav:
- 1-explore/README.md
- 2-loop/README.md
- 3-blink/README.md
- 4-loopc/README.md
- 5-blinkc/README.md
- 6-blinkt/README.md

theme:
name: material
language: ru
palette:
primary: green
accent: green
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Direct dependencies
mkdocs==1.5.2
mkdocs-material==9.2.7
mkdocs-material-extensions==1.1.1

# Indirect dependencies
Babel==2.12.1
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.7
colorama==0.4.6
ghp-import==2.1.0
idna==3.4
importlib-metadata==6.7.0
Jinja2==3.1.2
Markdown==3.4.4
MarkupSafe==2.1.3
mergedeep==1.3.4
packaging==23.1
paginate==0.5.6
pathspec==0.11.2
platformdirs==3.10.0
Pygments==2.16.1
pymdown-extensions==10.2.1
python-dateutil==2.8.2
pytz==2023.3.post1
PyYAML==6.0.1
pyyaml_env_tag==0.1
regex==2022.10.31
requests==2.31.0
six==1.16.0
typing_extensions==4.7.1
urllib3==2.0.4
watchdog==3.0.0
zipp==3.15.0