Code Monkey home page Code Monkey logo

documentation's Introduction

Armbian Documentation

Create offline documentation

Overview

Documentation is written in markdown and stored in the docs/ subfolder. Images go in docs/images.

This repo is meant for storing and quick glances. Official output is https://docs.armbian.com.

Armbian Documentation is available in the following formats:

Armbian Documentation relies on a file naming convention:

Parent-Topic-Name_Child-Topic-Name.md

Parent-Topic-Name and Child-Topic-Name are separated by an underscore _. Hyphens - are automatically converted to spaces.

Please try to avoid creating new parent topics unless absolutely necessary.

Current Parent Topics:

  • User Guide
  • Hardware notes
  • Developer Guide
  • Contributor Process
  • Release management
  • Community

.gitignore

For easier testing and commits .gitignore is configured to ignore site/

mkdocs.yml should probably be added, but we can commit for now

Required packages

The documentation build process will require the following packages:

  • git
  • python-jinja2
  • mkdocs

Install these on the development host using:

sudo apt-get install -y -qq git python-jinja2 mkdocs

Tools

mkArmbianDocs.py

generates mkdocs.yml file based on contents of docs/

  • command-line options for input and output directories
  • requires the python-jinja2 module which may not be installed by default
  • not needed unless making changes to the structure of the documentation
  • see mkArmbianDocs.py -h for help

Missing tools

The following capabilities are not yet available:

  • html2doc output to PDF user manual

Generating

From the parent folder of the repo, run:

tools/mkArmbianDocs.py && mkdocs build

This will generate the mkdocs.yml configuration file and then generate the mkdocs site to the site/ folder.

Testing

To preview locally, execute the preview server: mkdocs serve. You will be able to make edits to existing files and observe the results in real time.

After changing text in an existing file, use this command to rebuild and view the documentation:

mkdocs build --clean && mkdocs serve

After adding a new file, either hand-edit mkdocs.yml, or rerun tools/mkArmbianDocs.py.

Quick Start

pip install mkdocs
git clone https://github.com/armbian/documentation
#vim docs/[Parent Topic Example]-child-topic-example.md
#generate config, build, launch local preview server
tools/mkArmbianDocs.py && mkdocs build --clean && mkdocs serve
git add docs/*.md
git commit -m "added new howto on exampling"
git push

documentation's People

Contributors

andreicherniaev avatar aprayoga avatar armbianworker avatar belfastraven avatar chwe17 avatar clach04 avatar evilolaf avatar forestjohnson avatar frauhottelmann avatar g-provost avatar golfromeo-fr avatar gounthar avatar hartraft avatar heisath avatar iav avatar igorpecovnik avatar jcstaudt avatar johanvdw avatar lanefu avatar md2000 avatar mzhboy avatar psztoch avatar radxayuntian avatar rmcaninch avatar schwar3kat avatar teacupx avatar tonymac32 avatar trsx80 avatar wmacris avatar zador-blood-stained avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.