This project is for :
Kaisen Linux | Documentation
This project generates static html files in doc
folder from markdown files in md
directory.
priv/assets/
directory contains css and kaisen-logo jpg.
## Requirements to build the documentation
- git
- erlang
- elixir
You can use the following script to install those tools via asdf
manager :
# you must have a sudo user
chmod +x install-requirements.sh && ./install-requirements.sh
# then restart your shell and enter the following command to install erlang and elixir via asdf
asdf plugin add erlang
asdf plugin add elixir
asdf install erlang 28.0.2
asdf install elixir 1.18.4-otp-28
- Open a terminal and enter :
mix docs
- then run :
firefox doc/documentation.html`
- Edit a
.md
file in\md
directory. - Save
- type in the terminal at the root dir of this project:
mix docs
html doc
is generated indoc
folder
- Create a markdown file in
md\[category]
folder. - There is 5
[category]
folders:- infos
- pros-and-tips
- start
- tools
- tutorials
- Edit your text with
markdown
syntax More info. - Save your .md file.
- Add an entry for your file in
mix.exs
in theextras
section at the end like:
"md/[category]/[name-of-your-file].md": [ title: "Title your want in the menu"]
-
save and run
mix docs
-
html files are generated/updated in
doc
folder. Copy the content of this folder to the website\documentation -
index is called documentation.md in md directory