File: README

package info (click to toggle)
ubuntu-packaging-guide 1.0.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,640 kB
  • sloc: python: 360; makefile: 270
file content (77 lines) | stat: -rw-r--r-- 2,919 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
The Ubuntu Packaging Guide
--------------------------

This guide is often one of the first things that a new Ubuntu contributor will
look at. Helping make it better can have a big impact.

It is split up into two sections:

- A list of articles based on tasks, things you want to get done.
- A set of knowledge-base articles that dig deeper into specific bits of our
  tools and workflows.

The actual articles can be found under the ``ubuntu-packaging-guide``
directory in rst files. The html template and css can be found under
``themes/ubuntu``. If adding a new article, make sure to add it to the
``ubuntu-packaging-guide/index.rst`` file so that it appears in the table of
contents.

Development is hosted on Launchpad:

:Bugs: https://bugs.launchpad.net/ubuntu-packaging-guide/
:Bzr Branch: lp:ubuntu-packaging-guide
:Translations: https://translations.launchpad.net/ubuntu-packaging-guide

This project is licensed under the CC-BY-SA-3.0, the full text of which can be
found in ``COPYING``. Further information can be found in ``debian/copyright``.


Sphinx & reStructuredText
-------------------------

The guide is built using `Sphinx <http://sphinx-doc.org/>`_. Articles should
be written in reStructuredText. The following links might be helpful:

* http://docutils.sourceforge.net/docs/user/rst/quickstart.html
* http://docutils.sourceforge.net/docs/user/rst/quickref.html


Building
--------

The power of Sphinx is that it can generate documentation in many formats.
Running ``make all`` will generate the guide in html, dirhtml, singlehtml,
pickle, json, htmlhelp, qthelp, devhelp, epub, latex, latexpdf, text, and
man formats. They will be written to the ``_build`` directory.

Not all of these formats are important to us. You can build an individual
format with, for example, ``make html``. Run ``make help`` for a list of all
targets.

Please at least test your fixes by building the html version.

Translating
-----------

We use Sphinx l10n module and Gettext for translating Ubuntu Packaging Guide.
Translating takes place on
`Launchpad <http://translations.launchpad.net/ubuntu-packaging-guide>`_, and
translated ``.po`` files are automatically imported to the bzr branch.

Some notes about translating the guide:

- Some formatting is part of reStructuredText and should not be changed,
  including emphasis (which uses asterisks or underscores), paragraph ending
  before a code block (``::``) and double backtick quotes (``````).

- This guide uses email-style reStructuredText links. If you see a link in
  the text like::

    `Translatable link text <LinkReference_>`_

  Then replace the link text with your translations, but keep the
  LinkReference unchanged (even if it is in English). The same applies
  if URL is used instead of LinkReference.

To test your translation, use ``make BUILDER-LANGUAGE`` command (for example,
``make html-it`` will build HTML docs in Italian language).