Skip to content
Snippets Groups Projects
README.md 2.26 KiB
Newer Older
  • Learn to ignore specific revisions
  • # User documentation
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    
    Lubomir Prda's avatar
    Lubomir Prda committed
    This is project contain IT4Innovations user documentation source.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    ## Environments
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    
    * [https://docs.it4i.cz - master branch](https://docs.it4i.cz - master branch)
    * [https://docs.it4i.cz/devel/$BRANCH_NAME](https://docs.it4i.cz/devel/$BRANCH_NAME) - maps the branches, available only with VPN access
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    ## URLs
    
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    * [http://facelessuser.github.io/pymdown-extensions/](http://facelessuser.github.io/pymdown-extensions/)
    * [http://squidfunk.github.io/mkdocs-material/](http://squidfunk.github.io/mkdocs-material/)
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    ## Rules
    
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    * [spellcheck https://github.com/lukeapage/node-markdown-spellcheck](spellcheck https://github.com/lukeapage/node-markdown-spellcheck)
    * [SI units http://physics.nist.gov/cuu/Units/checklist.html](SI units http://physics.nist.gov/cuu/Units/checklist.html)
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    ```
    fair-share
    InfiniBand
    RedHat
    CentOS
    Mellanox
    ```
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    ## Mathematical Formulae
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    ### Formulas are made with:
    
    Pavel Gajdušek's avatar
    Pavel Gajdušek committed
    * [https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/](https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/)
    * [https://www.mathjax.org/](https://www.mathjax.org/)
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    You can add formula to page like this:
    
    ```
    $$
    MAX\_FAIRSHARE * ( 1 - \frac{usage_{Project}}{usage_{Total}} )
    $$
    ```
    
    To enable the MathJX on page you need to enable it by adding line ```---8<--- "mathjax.md"``` at the end of file.
    
    
    Lubomir Prda's avatar
    Lubomir Prda committed
    ## Development Environment
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    ### MkDocs
    
    
    Lubomir Prda's avatar
    Lubomir Prda committed
    Documentation pages are build with [MkDocs](http://www.mkdocs.org/), [MkDocs at GitHub](https://github.com/mkdocs/mkdocs/). You need to install MkDocs locally so that you can build the pages and run development web server.
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    ```bash
    pip install mkdocs pygments pymdown-extensions
    ```
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    You can build the pages with `mkdocs build`.
    
    ```bash
    ‹hrb33-toshiba› 11:47 $ mkdocs build
    INFO    -  Cleaning site directory
    INFO    -  Building documentation to directory: /home/hrb33/Dokumenty/dev/it4i/docs.it4i.git/site
    ```
    
    David Hrbáč's avatar
    David Hrbáč committed
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    You can start local server with `mkdocs serve`.
    
    ```bash
    ✔ ~/Dokumenty/dev/it4i/docs.it4i.git [readme L|✚ 1…6⚑ 1]
    ‹hrb33-toshiba› 11:47 $ mkdocs serve
    INFO    -  Building documentation...
    INFO    -  Cleaning site directory
    [I 170124 11:47:27 server:283] Serving on http://127.0.0.1:8000
    [I 170124 11:47:27 handlers:60] Start watching changes
    [I 170124 11:47:27 handlers:62] Start detecting changes
    ```