Skip to content

Commit 1cd6350

Browse files
committed
Ajout de fonctionnalités
1 parent f46acec commit 1cd6350

4 files changed

Lines changed: 43 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: ci
22
on:
33
push:
44
branches:
@@ -10,19 +10,28 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v6
13+
with:
14+
fetch-depth: 0
15+
sparse-checkout: |
16+
docs
17+
includes
18+
- name: Install pngquant
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y pngquant
1322
- name: Configure Git Credentials
1423
run: |
1524
git config user.name github-actions[bot]
1625
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
1726
- uses: actions/setup-python@v6
1827
with:
1928
python-version: 3.x
20-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
29+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2130
- uses: actions/cache@v5
2231
with:
2332
key: mkdocs-material-${{ env.cache_id }}
24-
path: ~/.cache
33+
path: ~/.cache
2534
restore-keys: |
2635
mkdocs-material-
2736
- run: pip install -r requirements.txt
28-
- run: mkdocs gh-deploy --force
37+
- run: mkdocs gh-deploy --force

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.venv
2-
venv
2+
venv
3+
.cache

mkdocs.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
site_name: My MkDocs Material Documentation
22
site_url: https://sitename.example
3+
repo_url: https://github.com/SedNavOrg/SedNavOrg.github.io
4+
edit_uri: edit/main/docs/
35
theme:
46
name: material
7+
language: fr
58
logo: assets/logo.webp
69
favicon: assets/logo.png
7-
palette:
10+
palette:
11+
# Palette toggle for automatic mode
12+
- media: "(prefers-color-scheme)"
13+
toggle:
14+
icon: material/brightness-auto
15+
name: Switch to light mode
16+
817
# Dark Mode
9-
- scheme: slate
18+
- media: "(prefers-color-scheme: dark)"
19+
scheme: slate
1020
toggle:
1121
icon: material/brightness-4
1222
name: Switch to light mode
1323
primary: indigo
1424
accent: cyan
1525

1626
# Light Mode
17-
- scheme: default
27+
- media: "(prefers-color-scheme: light)"
28+
scheme: default
1829
toggle:
1930
icon: material/brightness-7
2031
name: Switch to dark mode
@@ -23,6 +34,10 @@ theme:
2334
features:
2435
- content.code.copy
2536
- content.code.annotate
37+
- content.action.edit
38+
- content.action.view
39+
- search.suggest
40+
- search.highlight
2641
markdown_extensions:
2742
- attr_list
2843
- pymdownx.emoji:
@@ -42,4 +57,11 @@ markdown_extensions:
4257
- pymdownx.tabbed:
4358
alternate_style: true
4459
- admonition
45-
- pymdownx.details
60+
- pymdownx.details
61+
plugins:
62+
- search
63+
- optimize
64+
- privacy
65+
- git-revision-date-localized:
66+
enable_creation_date: true
67+
type: timeago

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
mkdocs-material==9.7.1
1+
mkdocs-git-revision-date-localized-plugin==1.5.0
2+
mkdocs-material[imaging]==9.7.1

0 commit comments

Comments
 (0)