summaryrefslogtreecommitdiffstats
path: root/doc-snapshot/config/README
blob: ebf47ca8f16f9642b3987fcdd1f026ca5eea6157 (plain)
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
Qt 5 Online Templates
=====================

The doctools/doc-snapshot/config directory contains the style and templates to
build the documentation as seen on doc-snapshot.qt-project.org. There are
templates for each of the qt5.git branches: dev, stable, and release.
Additionally, the templates dictate that QDoc output the HTML files into
one directory.

These templates are valid from Qt 5.2 and onwards.

To use:
======
1. Copy the contents of doctools/doc-snapshot/config to qtbase/doc/global.
   Note that the subdirectories structure is necessary.

2. Replace the qtbase/doc/global/config.qdocconf with either:

   a) config-dev.qdocconf - dev branch configuration
   b) config-stable.qdocconf - stable branch configuration
   c) config-release.qdocconf - release branch configuration
   d) config-53.qdocconf - 5.3 branch configuration

3. Replace qt-module-defaults.qdocconf with qt-module-defaults-snapshot.qdocconf

4. Run the regular "make docs" or "make install_docs" command.
   Note that the output is in the "html" directory, by default.

Practically, this is the sequence of commands (for stable branch):

    $ cd $QTSRC/qtbase/doc/global
    $ cp -r $BUILD/doctools/doc-snapshot/config/* .
    $ cp qt-module-defaults-snapshot.qdocconf qt-module-defaults.qdocconf
    $ cp config-stable.qdocconf config.qdocconf