Skip to content

kaisenlinux/documentation-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

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

How to build html documentation

  • Open a terminal and enter : mix docs
  • then run :
firefox doc/documentation.html`

How to edit documentation

  • Edit a .mdfile in \md directory.
  • Save
  • type in the terminal at the root dir of this project: mix docs
  • html doc is generated in doc folder

How to add a new file to the documentation and generated html doc

  • 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 the extras 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

About

Development https://kaisenlinux.org/documentation/ repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •