Coder Social home page Coder Social logo

cozy-docs-v3's Introduction

Cozy Documentation

Learn how to use Cozy, host your own server and develop applications.

Hack this documentation

This documentation is built with MkDocs.

To hack the documentation, just edit the files inside src.

If you want to see your updates, install mkdocs and the i18n extension of markdown:

Warning: while mkdocs supports Python 2 and 3, the current version of markdown-i18n only support Python 2

pip install --user mkdocs markdown-i18n

Run MkDocs:

mkdocs serve

And point your favorite browser to http://127.0.0.1:8000/

i18n

To add a new language, copy mkdocs.yml to mkdocs_lang.yml, translate the pages title and update site_dir and markdown_extensions.markdown_i18n.i18n_lang.

You’ll require some Gettext utilities. On Debian GNU/Linux, install the gettext package.

Every time you run a build, MkDocs will update the i18n/messages.pot file.

When adding a new language, you first need to initialize the .po file. For example, for french translation:

msginit --input=./i18n/messages.pot --output=./i18n/fr_FR/LC_MESSAGES/messages.po

To build the French version of the website:

mkdocs build -f mkdocs_fr.yml --clean

To test the whole site:

rm -rf docs/*
cp index.html docs/
mkdocs build -f mkdocs.yml
mkdocs build -f mkdocs_fr.yml
cd site/
python -m SimpleHTTPServer

To update the translation file, use msgmerge:

msgmerge --update i18n/fr_FR/LC_MESSAGES/messages.po i18n/messages.pot

cozy-docs-v3's People

Contributors

clochix avatar nono avatar etnbrd avatar david-guillot avatar raf64flo avatar

Watchers

James Cloos avatar Gwenaël  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.