Skip to content

Commit 2a38351

Browse files
author
St0n14
committed
add deployment for dev and master
change structure of documentation in order to follow diataxis change mail contact
1 parent 6c0ff92 commit 2a38351

File tree

9 files changed

+35
-18
lines changed

9 files changed

+35
-18
lines changed

.github/workflows/mkdocs.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- main
66
- dev
7+
78
jobs:
89
deploy:
910
runs-on: ubuntu-latest
@@ -12,5 +13,17 @@ jobs:
1213
- uses: actions/setup-python@v5
1314
with:
1415
python-version: 3.11
15-
- run: pip install mkdocs mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2
16-
- run: mkdocs gh-deploy --force --clean --verbose
16+
17+
# Install required dependencies
18+
- run: pip install mkdocs mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 mike
19+
20+
# Deploy the documentation
21+
- name: Deploy documentation
22+
run: |
23+
BRANCH=$(echo "${GITHUB_REF#refs/heads/}")
24+
if [ "$BRANCH" = "main" ]; then
25+
mike deploy --update-aliases latest
26+
elif [ "$BRANCH" = "dev" ]; then
27+
mike deploy dev
28+
fi
29+
mike deploy --push --clean
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ project documentation as described by Daniele Procida
88
in the [Diátaxis documentation framework](https://diataxis.fr/)
99
and consists of four separate parts:
1010

11-
1. [Tutorials](./Usage/installation.md)
11+
1. [Tutorials](./Tutorials/installation.md)
1212
2. [How-To Guides](./Usage/usage.md)
13-
3. [Reference](reference/reference.md)
14-
4. [Explanation](explanation.md)
13+
3. [Reference](./reference/reference.md)
14+
4. [Explanation](./explanation.md)
1515

1616
Quickly find what you're looking for depending on
1717
your use case by looking at the different pages.

mkdocs.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,23 @@ markdown_extensions:
5454

5555
nav:
5656
- index.md
57-
- explanation.md
58-
- Usage:
59-
- Installation : Usage/installation.md
60-
- Windows : Usage/windows.md
61-
- Linux/Mac : Usage/linux.md
57+
- Tutorials:
58+
- Installation : Tutorials/installation.md
59+
- Windows : Tutorials/windows.md
60+
- Linux/Mac : Tutorials/linux.md
6261
- Reference:
63-
- Index: reference/reference.md
64-
- Base: reference/base.md
65-
- Handler: reference/handler.md
66-
- Renderer: reference/renderer.md
67-
- Utils: reference/utils.md
68-
- Windows : reference/windows.md
69-
- Testing : reference/test.md
62+
- Index: reference/reference.md
63+
- Base: reference/base.md
64+
- Handler: reference/handler.md
65+
- Renderer: reference/renderer.md
66+
- Utils: reference/utils.md
67+
- Windows : reference/windows.md
68+
- Testing : reference/test.md
69+
- Explanation:
70+
- Explanation : explanation/explanation.md
71+
- Guide:
72+
- Testing : Guide/test.md
73+
7074

7175
extra:
7276
version:
@@ -76,4 +80,4 @@ extra:
7680
link: https://github.com/PyDFIR/pyDFIRRam
7781
name: Github
7882
- icon: material/email
79-
link: "mailto:alexis.debrito@ecole2600.com"
83+
link: "mailto:alexis.debrito@pm.me"

0 commit comments

Comments
 (0)