Giter Site home page Giter Site logo

docs's Introduction

See this documentation at:

dojot documentation

This repository contains the high-level documentation for dojot iot platform. For specific information regarding each of the sub-components that comprise the solution, please check the component's own documentation page.

Build

The readable version of this documentation can be generated by means of sphinx. In order to do so, please follow the steps below. Those are actually based off Read The Docs own documentation.

Configuring Pipenv

In order to isolate the environment, it is better to use Python's virtual environments. Even better than using virtualenv by itself, we can use pipenv.

Make sure you have Python 3 and its correspondent version of pip installed. Then, install pipenv:

pip3 install pipenv

Install the environment:

pipenv --python 3.8

Install the dependencies via pipenv:

pipenv install

Enter in the virtual environment:

pipenv shell

Check the pipenv repository for more commands and details.

Generating the documentation

Now you can simply run:

make html

To build the documentation in Brazilian Portuguese language, run the following extra commands:

sphinx-intl -c source/conf.py build -d source/locale
make html BUILDDIR=build/html-pt_BR O='-d build/doctrees/ -D language=pt_BR'

Update workflow

To update the documentation, follow the steps below:

  1. Update the source files for the english version.
  2. Extract translatable messages from the english version:
make gettext
  1. Update the message catalog (PO Files) for pt_BR language:
sphinx-intl -c source/conf.py update -p build/gettext -l pt_BR
  1. Translate the messages in the pt_BR .po files. You don't need to deal with these files directly in your text editor, check the next section for more details.

This workflow is based on the internationalization feature of Sphinx.

Useful tools

.po files are kinda annoying to handle. Luckily, there are tools that can understand this format and provide us a better interface to deal with them. Supposing you are using Ubuntu, you can install poedit:

apt-get install poedit

After running it, you can add the catalog to see all your files in its interface in the Catalog Manager under the File menu.

docs's People

Contributors

giovannicuriel avatar jonaphael avatar mprevide avatar wellitonsouza avatar eduardogmisiuk avatar thiagodpf avatar matheuscampanhaf avatar mmagr avatar marianoleonardo avatar rascaraficci avatar bizetti avatar marciofunes avatar andersonluisribeiro avatar henriquecd 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.