Skip to content

Commit 089fb57

Browse files
committed
Setup initial mkdocs
1 parent 3193857 commit 089fb57

File tree

4 files changed

+41
-9
lines changed

4 files changed

+41
-9
lines changed

.github/workflows/publish_mkdocs.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish mkdocs to gh-pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Configure Git Credentials
16+
run: |
17+
git config user.name github-actions[bot]
18+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
- run: sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev pngquant
23+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
24+
- uses: actions/cache@v4
25+
with:
26+
key: mkdocs-material-${{ env.cache_id }}
27+
path: .cache
28+
restore-keys: |
29+
mkdocs-material-
30+
- run: pip install mkdocs-material
31+
- run: pip3 install mkdocs-git-revision-date-localized-plugin mkdocs-git-authors-plugin "mkdocs-material[imaging]"
32+
- run: mkdocs gh-deploy --force

.gitignore

Whitespace-only changes.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# learn_more
1+
# learn-more
22
Learn more section of website

mkdocs.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
2-
site_name: Voi Swarm
3-
site_description: Create and run a Voi Network Participation Node
4-
site_url: https://voinetwork.github.io/voi-swarm/
5-
repo_url: https://github.com/VoiNetwork/voi-swarm
2+
site_name: Learn More
3+
site_description: Learn More about Voi
4+
site_url: https://voinetwork.github.io/learn-more/
5+
repo_url: https://github.com/VoiNetwork/learn-more
66
edit_uri: edit/main/docs/
77

88
theme:
@@ -81,10 +81,10 @@ markdown_extensions:
8181

8282
plugins:
8383
- search
84-
- social:
85-
cards_layout: default/variant
86-
cards_layout_options:
87-
background_color: "#702AE2"
84+
# - social:
85+
# cards_layout: default/variant
86+
# cards_layout_options:
87+
# background_color: "#702AE2"
8888
- git-revision-date-localized:
8989
enabled: true
9090
enable_creation_date: true

0 commit comments

Comments
 (0)