Giter Site home page Giter Site logo

opendatamanual's Introduction

Open Data Manual

Introduction

Welcome to the source text of the Open Data Manual. The manual is a project of the Open Knowledge Foundation. If you are reading this it is likely you are looking to contribute in some way, whether that's translation, feedback, editing or adding more content. If you just want to read the manual, then please head over to the http://opendatamanual.org/.

Contributing

We have several ways you can help. The project is split into a few roles. Our authors write content, editors merge those submissions into the manual, designers help beautify it and translators bring the manual to all countries of the world.

Our wiki is a great place to get started. It contains a large number of tasks for people with half an hour as well as larger tasks.

Resources

Home Page:http://wiki.okfn.org/Open_Data_Manual
Mailing List:http://lists.okfn.org/mailman/listinfo/open-data-manual
Source:https://github.org/okfn/opendatamanual
Translations:https://www.transifex.net/projects/p/opendatamanual/

About our tools

The manual is written the ReStructured Text format. ReStructured Text allows us to write files in plain text files, which can be nicely rendered as a website or a PDF using Sphinx.

Project Layout

Outline:

opendatamanual/
  source/
  build/
  translation/

Details:

opendatamanual is the base directory.

source is where we keep the plain text source files.

build is where rendered, or "built", HTML files live.

translation is where our i18n files are kept

Rendering the manual

  1. Move into the base directory of the project:
cd opendatamanual
  1. Get the themes:
git submodule init
git submodule update
  1. Install Sphinx, with a minimum version of 0.6. Instructions for Debian and Ubuntu:
apt-get install python-sphinx
  1. Render the HTML, using make:
make html

Building for Translation (i18n)

Important. You will need to install Sphinx HEAD for i18n work.

You can get the code from the official source repo.

Generating pot files

  1. Extract translateable sentences/paragraphs:

    make gettext
    
  2. Add or update the translated/all.pot file as a resource on https://www.transifex.net/projects/p/opendatamanual/.

Adding a new language

We use transifex for this.

  1. Go to https://www.transifex.net/projects/p/opendatamanual/
  2. Add translation for specified language (and a team)

Building a translation of the manual

  1. Download the translated all.pot file and copy it to (where lang is a 2-digit ISO code):

    translation/{lang}/LC_MESSAGES/all.po
    
  2. Build the mo file. In the directory of the all.po file do:

    msgfmt all.po -o all.mo
    
  3. Symlink from all.mo (sphinx expects us to have kept with original file names generated by gettext rather than concatenating):

    make linkpot lang={lang}
    
  4. Build the translation:

    make html lang={lang}
    

opendatamanual's People

Contributors

deeplook avatar mitsuhiko avatar pablomendes avatar pudo avatar rufuspollock avatar timclicks 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.