descriptionnone
homepage URLhttp://www.gnome.org
repository URLgit://git.gnome.org/gtk-doc
ownerdmitrij.ledkov@ubuntu.com
last changeSun, 12 Aug 2018 11:39:14 +0000 (12 11:39 +0000)
last refreshWed, 22 Aug 2018 18:47:11 +0000 (22 20:47 +0200)
content tags
add:
README
GTK+ DocBook Documentation Generator
====================================

GTK-Doc is used to document C code. It is typically used to document the public
API of libraries, such as the GTK+ and GNOME libraries, but it can also be
used to document application code.

Note that GTK-Doc wasn't originally intended to be a general-purpose
documentation tool, so it can be a bit awkward to setup and use.
For a more polished general-purpose documentation tool you may want to look
at Doxygen (http://www.doxygen.org/). However GTK-Doc has some special code
to document the signals and properties of GTK+ widgets and GObject classes
which other tools may not have.

From your source code comments GTK-Doc generates a Docbook XML document, which
is then transformed into HTML and/or PDF.
The generated HTML documentation can be browsed in an ordinary web browser or
by using the special Devhelp API browser
(see http://developer.imendio.com/wiki/Devhelp).

Please use DoxBook XML instead of DocBook SGML - support for the later will be
dropped.

Requirements
============

Python 2.7, 3.x - the secondary scripts are written in Python
    http:///www.python.org

Python-six - for python 2,3 compatibility

For XML output (recommended):

The DocBook XML DTD.
    http://www.oasis-open.org/docbook/

The DocBook XSL Stylesheets.
    http://docbook.sourceforge.net/projects/xsl/

libxslt & libxml2 >= 2.3.6.
    http://xmlsoft.org/

Most distributions now have packages for all of these, so I would strongly
advise that you grab those.

See the documentation in the help/manual directory for more information. You can
read it e.g. with yelp file://$PWD/help/manual/C/gtk-doc-manual.xml


Building
========

We are supporting two build systems to build gtk-doc for some transitions time.


Build using auto*
-----------------

In order to build with a the classic auto* system use these commands:

Build from git:
./autogen.sh; make

Build from dist tarball:
./configure; make

There are a few parameters one can pass to ./configure, run ./configure --help
to see them. Also ./autogen.sh can take those settings (and will hand them
through to ./configure).

To run the tests:
make check

To install:
make install

To make a release:
make distcheck
or
make dist


Build using meson
-----------------

Support for meson is new and still experiemntal.

Build it from git:
meson build .
ninja -C build

There are some options one can specify too:
meson build . --prefix=
meson build . -Dautotools_support=false
meson build . -Dcmake_support=false
meson build . -Dyelp_manual=false

To run tests:
ninja -C build test

To install:
ninja -C build install

To make a release:
ninja -C build dist
shortlog
2018-08-12 David DUpdate French translationmaster
2018-08-09 Tim SabschUpdate German translation
2018-07-31 Daniel MustielesUpdated Spanish translation
2018-07-08 Stefan SauerRevert "help/manual: install gtk-doc html version of...
2018-07-08 Stefan SauerRevert "style.css: highlight application elements"
2018-07-08 Stefan SauerRevert "style.css: add bottom spacing for seglistitem"
2018-07-08 Stefan SauerMerge branch 'wip/documentation' into 'master'8b8335c32183fbc112428078c84a8d357796fa90
2018-07-06 Sebastian Geigermeson: add support for version.entwip/documentation5999ccfa2b63e527588f7645b9db2afa276a7ca33/head
2018-07-06 Sebastian Geigerhelp/manual: install gtk-doc html version of manualffd5f97ed73a670f1b7687d9a39e80f5f7941332
2018-07-06 Sebastian Geigerstyle.css: highlight application elements167053f14f98de9c311520565428dc1509d31101
2018-07-06 Sebastian Geigerhelp/manual: fix formatting of program listing
2018-07-06 Sebastian Geigerhelp/manual: consistent use of function element
2018-07-06 Sebastian Geigerstyle.css: add bottom spacing for seglistitem665e3027a18eebe3cdfa51a9847f45c65e339f08
2018-07-04 Sebastian Geigerhelp/manual: small doc cleanups9008886bbd7d8f804d9fd2680fc602774502b457
2018-07-04 Sebastian Geigerhelp/manual: add paragraph about history
2018-07-04 Sebastian Geigerhelp/manual: add support for dynamic document versiona3e37a3e0bfb7f860edc8c29ed1c0b2a4ee378cc
...
tags
6 years ago GTK_DOC_1_28 release: 1.28
6 years ago GTK_DOC_1_27 release: 1.27
6 years ago GTK_DOC_1_26 release: 1.26
8 years ago GTK_DOC_1_25 release: 1.25
8 years ago GTK_DOC_1_24 release: 1.24
8 years ago GTK_DOC_1_23 release: 1.23
8 years ago GTK_DOC_1_22 release: 1.22
9 years ago GTK_DOC_1_21 release: 1.21
10 years ago GTK_DOC_1_20 release: 1.20
10 years ago GTK_DOC_1_19 release: 1.19
12 years ago GTK_DOC_1_18 release: 1.18
13 years ago GTK_DOC_1_17 release: 1.17
13 years ago GTK_DOC_1_16 release: 1.16
13 years ago GTK_DOC_1_15 release: 1.15
14 years ago GTK_DOC_1_14 release: tag 1.14
14 years ago GTK_DOC_1_13 release: 1.13
...
heads
5 years ago master
5 years ago wip/documentation
9 years ago wip/desrt/fixes-for-glib
14 years ago resolution-independence