Giter VIP home page Giter VIP logo

ns8-docs's Introduction

NS8 documentation

Sphinx documentation sources for NS8 documentation.

Under the root directory there are some special files:

  • conf.py: Sphinx configuration
  • Makefile: Sphinx build makefile
  • index.rst: document structure

All other .rst files are chapters of the manual. If you wish to add a new chapter, create a new file and add it to the index.rst file.

How to contribute

The easiest way to contribute is by forking and editing the repository directly on GitHub:

  • Create a GitHub account if you don't already have it
  • Go to https://github.com/NethServer/ns8-docs and fork the project
  • You can now edit any page using GitHub web interface and see a live preview of the output
  • When you're done, simply create a new pull request
  • A new automatic build is launched after the pull request is merged by a developer

While editing, please follow the guidelines below.

Editing guidelines

The document must start with a title such as

==============
Document title
==============

Make sure to add only one first-level title for each rst file.

Next headers levels are:

First level
===========

Second level
------------

Third level
^^^^^^^^^^^

Fourth level
~~~~~~~~~~~~

To create cross-references set a label before headers, with -section suffix:

.. _mytitle-section:

My title
--------

In other documents refer to "My title" with the :ref: command:

More information can be found at :ref:`mytitle-section`

Use the * character for unordered list

* First element
* Second element

Use a definition list when describing fields

My field
    This is my description

A field description can also contain a bullet list

My field
    This is my description

    * First element
    * Second element

Highlight important words

This is an *important* word.

Add notes with

.. note:: Highlight this text

Add warnings with

.. warning:: Warning text fragment

Other conventions:

  • use double backtick to quote labels and links from the web user interface
  • use guilabel markup for buttons

You can find more info about RST Inline Markup here: rst-cheatsheet

Use a spell checker program before submitting a pull request. For instance run

hunspell -d en_US <filename>

Build documentation

Whenever there are modifications, a build process will be launched from CI.

If you want to build the documentation locally on your machine, make sure to install the Sphinx package.

On Fedora 37 or later use:

sudo dnf install python3-sphinx python3-pip make

Then clone the repository, change into the cloned directory and install all required extra modules

git clone https://github.com/NethServer/ns8-docs.git
cd ns8-docs
pip install -r requirements.txt

Finally, build the doc:

make html

Localization workflow

The CI will update source translation files after every commit.

To generate po files locally for a new language:

make gettext
sphinx-intl update -p _build/gettext -l it

You can contribute to the translation by accessing [Weblate](https://hosted.weblate.org/projects/ns8/).

Documentation style guidelines

When editing documents, please keep in mind the following guidelines:

ns8-docs's People

Contributors

davideprincipi avatar gsanchietti avatar sempronto avatar nrauso avatar filippocarletti avatar lucagasparini avatar tonyco97 avatar stephdl avatar tbaile avatar stell0 avatar andrea-marchionni avatar weblate avatar elpidiobaldi avatar fabbri-marco avatar andre8244 avatar cotosso 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.