GithubHelp home page GithubHelp logo

scatteredink / handbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from org-id/handbook

0.0 2.0 0.0 290 KB

Documentation for http://org-id.guide/, and instructions on how to add new organisation lists to it.

License: Other

Shell 100.00%

handbook's Introduction

Open Data Services Sphinx Base

The base Sphinx setup (recommonmark + internationalisation) for Open Data Services docs projects.

Building the documentation

Build the docs locally

Assuming a unix based system with Python 3 installed:

python3 -m venv .ve
source .ve/bin/activate
pip install -r requirements.txt
cd docs
make dirhtml

If you prefer, this can also be done using vagrant as follows (starting in this directory):

vagrant up
vagrant ssh
cd /vagrant
pip3 install -r requirments.txt
cd docs/
# (note that the following step fails (Make, error 127) with vagrant 2.0.x,
# so make sure you're up to date!)
make dirhtml
cd _build/dirhtml
python3 -m http.server

Then on your local machine, navigate to localhost:8000

Translations

Translations are generally done using this transifex project. Create one at https://www.transifex.com/OpenDataServices/add/ :

How to push new text up to Transifex:

First, do a local build, then:

cd docs
make gettext
sphinx-intl update-txconfig-resources --transifex-project-name <project-name>
tx push -s

When the translations are filled in transifex you need to run:

tx pull -a -f

These should then be commited and then pushed to GitHub (so that actual deployed translations are always version controlled).

Running the build in another language:

make -e SPHINXOPTS="-D language='<language code>'" html

If translations are added locally, these can also be pushed up to Transifex:

tx push -t --skip

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.