diff options
author | Topi Reinio <topi.reinio@digia.com> | 2015-02-06 09:11:37 +0100 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@digia.com> | 2015-02-06 10:47:50 +0000 |
commit | aec6c77bb8ce33b6535106c78eeb9cd755398953 (patch) | |
tree | e2471104da9d73d6e7555ea315b7b6293c3f25e0 /doc | |
parent | 8c74d8c210e64bfe5ce6afe9374fb634d6d86d7a (diff) |
Doc: Add a configuration for online documentation builds
When the build_online_docs qmake config variable is set, select
the correct version of the Qt documentation template and set
the copyright notice.
Change-Id: I4dc590ebfd2f09b49ff808efe1ac26d3ee228887
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/doc.pri | 6 | ||||
-rw-r--r-- | doc/qbs-online.qdocconf | 16 |
2 files changed, 21 insertions, 1 deletions
diff --git a/doc/doc.pri b/doc/doc.pri index f1ea69935..7ba0df63b 100644 --- a/doc/doc.pri +++ b/doc/doc.pri @@ -4,7 +4,11 @@ defineReplace(targetPath) { qt:greaterThan(QT_MAJOR_VERSION, 4) { QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc) - QDOC_MAINFILE = $$PWD/qbs.qdocconf + build_online_docs { + QDOC_MAINFILE = $$PWD/qbs-online.qdocconf + } else { + QDOC_MAINFILE = $$PWD/qbs.qdocconf + } } else { QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc3) QDOC_MAINFILE = $$PWD/qbs-qt4.qdocconf diff --git a/doc/qbs-online.qdocconf b/doc/qbs-online.qdocconf new file mode 100644 index 000000000..4c21d1e8e --- /dev/null +++ b/doc/qbs-online.qdocconf @@ -0,0 +1,16 @@ +include(config/qbs-project.qdocconf) + +HTML.footer = \ + " </div>\n" \ + " <p class=\"copy-notice\">\n" \ + " <acronym title=\"Copyright\">©</acronym> 2015 The Qt Company Ltd.\n" \ + " Documentation contributions included herein are the copyrights of\n" \ + " their respective owners. " \ + " The documentation provided herein is licensed under the terms of the" \ + " <a href=\"http://www.gnu.org/licenses/fdl.html\">GNU Free Documentation" \ + " License version 1.3</a> as published by the Free Software Foundation. " \ + " Qt and respective logos are trademarks of The Qt Company Ltd " \ + " in Finland and/or other countries worldwide. All other trademarks are property\n" \ + " of their respective owners. </p>\n" + +include($QT_INSTALL_DOCS/global/qt-html-templates-online.qdocconf) |