Documentation for SeaWolf IX
Documentation is generated using mkdocs using the mkdocs-material theme.
- Install Python3 (executable may just be named
python
on windows) - Run the following command
python3 -m pip install -U -r requirements.txt
- In this folder run the following command
mkdocs serve
WARNING: Running this command will make the documentation public without prompts!
mkdocs gh-deploy
- Each subteam gets a folder in docs. Each will contain an img subfolder for images
- Each subteam's folder can have subfolders if desired, or just a collection of pages
- Site organization is defined by nav tree in
mkdocs.yml
. Edit this tree to control page order and titles. - Do not use H1 headers (
# Text
). The page's title is determined by themkdocs.yml
nav tree. - Top level img folder is for site images, not images used in docs
- Each subteam should have an
img
anddiagram
folder for images and diagrams (drawio / diagrams.net). - Using
jpg
/jpeg
images is HIGHLY recommended overpng
images. If usingpng
images, consider usingpngquant
to compress them first. - Diagrams should be generated using drawio / diagrams.net (use desktop app), or using the D2 language. Store the source files in
diagram
folders (in each subteam's folder). When exporting a jpg / png, place it in theimg
folder. Use the same name as the diagram source. For larger diagrams, it is probably best to render at 200% zoom. When D2 is used, the source.d2
file should be included in thediagram
folder. Additionally, the ELK engine is preferred for renderingjpg
/png
files from D2. - Images in markdown (these are custom features not standard markdown)
- To choose image size, use attribute list
![](path/to/image){: style="width:80%;height:50%"}
. Either width, height, or both can be used. - To center an image, add the
center
class to the attribute list{: .center}
- To prevent zoom on click add the
img-nozoom
attribute{: img-nozoom }
- To choose image size, use attribute list
- Videos
- NEVER add videos to the git repo
- Upload the video to the club google drive and share it publicly and add the html google drive generates to embed it (three dots menu, open in new windows, three dots menu again, embed item).
- You could also upload it to the club's youtube (probably unlisted) and embed it using youtube generated html