summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2012-11-12 14:27:03 +0100
committerJerome Pasion <jerome.pasion@digia.com>2012-11-13 14:13:58 +0100
commit1d0baa25dfc5bad537d29b88d39fd553925eec94 (patch)
tree8c92be658aada7c7c8bc1996d8bd6ae869a6b621 /README
parent42a23695c3ad6b2fd601703e1bf4def88c5fa4c3 (diff)
downloadqtdoc-1d0baa25dfc5bad537d29b88d39fd553925eec94.tar.gz
Doc: Updated README file with building instructions.
Change-Id: Id0359856e31602307db0cac789b4beee3bc2d081 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'README')
-rw-r--r--README79
1 files changed, 70 insertions, 9 deletions
diff --git a/README b/README
index fe1e73a5..999c49c7 100644
--- a/README
+++ b/README
@@ -1,14 +1,75 @@
To Generate Qt Documentation:
+qtdoc contains the main Qt Reference Documentation, which includes
+overviews, Qt topics, and examples not specific to any Qt module.The
+configuration files are located in qtdoc/doc/config and the articles in
+qtdoc/doc/src. Note that QDoc is located in qtbase.
+
+The instructions in this file assumes that the prerequisite binaries are
+compiled and in the $PATH variable.
+
Prerequisites:
- * qtbase exists and qmake built
- * qtbase's Makefile exists
- * other modules exists as needed
+ * qtbase exists
+ * "qmake" and "qdoc" compiled and installed
+ * other Qt repositories exist as needed
+
+The Qt Reference Documentation were written with links to the released modules
+for Qt 5. If the modules and repositories do not exist, then the resulting HTML
+files will contain broken links.
+
+There are two ways to build the documentation. One way is to compile the
+documentation using QDoc and the configuration file (qdocconf) file. The other
+way is to use qmake by running "make docs".
+
+Section 1 Building the qdocconf File
+
+ This method is useful for building separate projects without any
+ dependencies to other projects.
+
+ To build using the qdocconf file, run the "qdoc" binary and pass the
+ qdocconf file as a parameter. "qdoc" is found in qtbase repository. A
+ mandatory "outputdir" must be specified.
+
+ $> qdoc doc/config/qt-project.qdocconf -outputdir html
+
+ Note that QDoc will delete the contents of the "html" output directory.
+
+Section 2 Building using make
+
+ QMake uses the QT_INSTALL_DOCS variable to determine where the documentation
+ for Qt 5 are installed. This method is useful for linking to other Qt
+ modules.
+
+ To see where the documentation will be installed, run:
+ $> qmake -query
+
+ To generate the documentation, run:
+
+ $> cd qtdoc #or whichever repository's root
+ $> qmake
+ $> make docs
+
+ "make docs" also works in the main Qt 5 repository. Running the command
+ there will generate the documentation for Qt 5 and install them to the
+ path set to the QT_INSTALL_DOCS variable.
+
+Section 3 Packaging the Documentation
+
+ To package the documentation for Qt Assistant, the HTML files must be
+ compiled into a QCH file (.qch).
+
+ Required binaries:
+ * assistant - found in qttools
+ * qhelpgenerator - found in qttools
+
+ To compile thq qch file for each module, first enter the output directory
+ which contains the .qhp file and generate the QCH file.
+
+ $> cd qtbase/doc/qtdoc #the default path for QT_INSTALL_DOCS for qtdoc
+ $> qhelpgenerator qtdoc.qhp #creates the QCH file called qtdoc.qch
+ $> assistant -register qtdoc.qch #to automatically load the documentation
-Instructions:
- $> make online_docs
+Section 4 More Information
-Known Issues:
- * Building the documentation when Qt is built using the -prefix
- flag when running configure does not work. Shadow building does
- work.
+For more information about Qt 5's documentation, refer to the Qt Project wiki:
+http://qt-project.org/wiki/Qt5DocumentationProject