@@ -16,7 +16,7 @@ Contributions are very welcome. Here's how you can help:
1616- Correct spelling / grammar
1717- Fix links
1818
19- ### Workflow
19+ ## Workflow
2020
21211 . __ Fork__ this repo
22221 . Make changes
@@ -26,6 +26,7 @@ Contributions are very welcome. Here's how you can help:
2626### Step by step instructions
2727
2828** NOTE** : The following instructions are targeted towards Unix OS' - needed steps on windows may vary.
29+
2930** NOTE 2** : You need python3 and python3-venv installed. Please look at your OS' package manager to find the correct packages.
3031
31321 . At first: Fork the repository to your account!
4243git clone https://github.com/< username> /wiki.git
4344```
4445
45- 3 . Prepare your python virtual environment and dependencies
46+ 3 . Navigate into wiki repository folder
4647
4748``` sh
48- # Navigate to the cloned repo
4949cd wiki/
50-
51- # Create a python3 virtual environment in your cloned repository
52- python -m venv venv
53-
54- # Activate the virtual environment
55- source venv/bin/activate
5650```
5751
58- 4 . Install needed python dependencies using python package manager -> pip
52+ 4 . Choose one of the two deployment methods below.
5953
6054``` sh
6155pip install mkdocs mkdocs-material mkdocs-redirects
6256```
6357
64- 5 . At this point, load up the clone repository in a text editor that has live-markdown preview function.
58+ 5 . At this point, load up the cloned repository in a text editor that has live-markdown preview function.
6559 - For example: Visual Studio Code. Instructions: (https://code.visualstudio.com/Docs/languages/markdown )
6660
67- 6 . When you are done, use the following steps to build & preview the documentation / changes locally.
68-
69- Build the documentation
70- ``` sh
71- make build
72- ```
73-
74- Serve the documentation
75- ``` sh
76- make serve
77- ```
78-
79- 7 . Once you are happy and the added changes are looking proper, you are ready to submit your work.
61+ 6 . Once you are happy and the added changes are looking proper, you are ready to submit your work.
8062
8163Add modified files for commiting
8264``` sh
@@ -100,3 +82,44 @@ git push
10082```
10183
102848 . Send a Pull Request :)
85+
86+ ## Deployment / Usage of mkdocs
87+
88+ ### Native deployment
89+
90+ 1 . Create & activate python virtual-environment (might need dependency ` python3-venv ` , see: < https://docs.python.org/3/library/venv.html > )
91+
92+ ```
93+ python3 -m venv venv
94+ source venv/bin/activate
95+ ```
96+
97+ 2 . Install mkdocs and dependencies
98+
99+ ```
100+ pip install -r requirements.txt
101+ ```
102+
103+ 3 . Edit docs and verify with the following commands:
104+
105+ Serve the documentation (< http://127.0.0.1:8000 > )
106+ ```
107+ mkdocs serve --strict
108+ ```
109+
110+ Build the documentation
111+ ```
112+ mkdocs build --strict
113+ ```
114+
115+ ### Docker deployment
116+
117+ 1 . Execute docker container:
118+
119+ ```
120+ docker compose up
121+ ```
122+
123+ 2 . Navigate to < http://127.0.0.1:8000 >
124+ 3 . Make your changes and verify the formatting / linking still checks out.
125+
0 commit comments