Merge lp:~kalikiana/ubuntu-ui-toolkit/online into lp:ubuntu-ui-toolkit

Proposed by Cris Dywan
Status: Merged
Approved by: Cris Dywan
Approved revision: 517
Merged at revision: 516
Proposed branch: lp:~kalikiana/ubuntu-ui-toolkit/online
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 71 lines (+3/-36)
4 files modified
documentation/documentation.pri (+0/-5)
documentation/generate_html.sh (+0/-23)
documentation/ubuntu-ui-toolkit-online.qdocconf (+1/-7)
ubuntu-sdk.pro (+2/-1)
To merge this branch: bzr merge lp:~kalikiana/ubuntu-ui-toolkit/online
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
David Planella (community) Approve
Cris Dywan Approve
Review via email: mp+165838@code.launchpad.net

Commit message

Use offline documentation as a basis for online docs

Description of the change

Use offline documentation as a basis for online docs

To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

Thanks Christian. However, I'm a bit confused by this change. Two things:

- The request on bug 1183013 was to do exactly the opposite: use the online configuration to generate the docs, yet this MP does not change the current situation.
- Why include ubuntu-ui-toolkit-offline.qdocconf in the file if it can be called by itself? If the intention is to use the offline configuration, it might make more sense just to remove the online conf file.

review: Needs Fixing
Revision history for this message
Cris Dywan (kalikiana) wrote :

You seem to misread the diff: The offline config actually contains the proper header and footer, while the online config contains online font files and duplicates the stylesheets.

So I'm stopping needless duplication, and the only online piece here is the fonts.

review: Needs Resubmitting
Revision history for this message
Cris Dywan (kalikiana) :
review: Abstain
Revision history for this message
Cris Dywan (kalikiana) wrote :

Something is fishy, though. I'm not sure the tooling is matching my understanding of the config file.

review: Needs Fixing
Revision history for this message
Cris Dywan (kalikiana) wrote :

Correction: the config works, but 'make docs' is broken, so only now I see that it produces broken styling.

Revision history for this message
David Planella (dpm) wrote :

Ok, gotcha. The way the configuration works right now is the following:

online offline
  | |
  +---+----+
      |
    common

So both the online and offline config files include the common config, and you can switch between the two. The bug was not about changing the config files, but rather about the ubuntu-ui-toolkit-doc package to call the online conf during build instead of the offline one.

Although I agree it makes sense to improve the config if it can be in a better way.

After looking at it again, I understand that what the change is doing is the following:

offline
  |
  +-- online
        |
      common

If that works, then perfect :)

Revision history for this message
Cris Dywan (kalikiana) wrote :

The bug is "use online docs" which literally speaking is already true which leaves me to figure out what the real problem in the build system is.

I'm getting a more complete understanding what is wrong and will attempt to turn 3 bad ways to generate docs into 1 working way now.

517. By Cris Dywan

Remove target-less qdoc commands and separate html script

Revision history for this message
Cris Dywan (kalikiana) :
review: Approve
Revision history for this message
David Planella (dpm) wrote :

Looks good to me, generated docs too, although I got some warnings:

http://pastebin.ubuntu.com/5706410/

review: Approve
Revision history for this message
Cris Dywan (kalikiana) wrote :

As discussed on IRC the warnings are not new, only more visible.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'documentation/documentation.pri'
2--- documentation/documentation.pri 2013-05-05 18:10:47 +0000
3+++ documentation/documentation.pri 2013-05-27 10:31:29 +0000
4@@ -1,8 +1,3 @@
5-QDOC = /usr/lib/*/qt5/bin/qdoc
6-system($$QDOC $$PWD/ubuntu-ui-toolkit-online.qdocconf)
7-system($$QDOC $$PWD/ubuntu-ui-toolkit-qtcreator.qdocconf)
8-system(qhelpgenerator -o "$$PWD/html/ubuntuuserinterfacetoolkit.qch" "$$PWD/html/ubuntuuserinterfacetoolkit.qhp")
9-
10 install_docs.files = $$PWD/html
11 install_docs.path = /usr/share/ubuntu-ui-toolkit/doc
12
13
14=== removed file 'documentation/generate_html.sh'
15--- documentation/generate_html.sh 2013-04-09 16:16:35 +0000
16+++ documentation/generate_html.sh 1970-01-01 00:00:00 +0000
17@@ -1,23 +0,0 @@
18-#!/bin/sh
19-#
20-# Copyright 2012 Canonical Ltd.
21-#
22-# This program is free software; you can redistribute it and/or modify
23-# it under the terms of the GNU Lesser General Public License as published by
24-# the Free Software Foundation; version 3.
25-#
26-# This program is distributed in the hope that it will be useful,
27-# but WITHOUT ANY WARRANTY; without even the implied warranty of
28-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29-# GNU Lesser General Public License for more details.
30-#
31-# You should have received a copy of the GNU Lesser General Public License
32-# along with this program. If not, see <http://www.gnu.org/licenses/>.
33-#
34-
35-QDOCCONF_FILE=ubuntu-ui-toolkit-online.qdocconf
36-QDOC_BIN=/usr/lib/*/qt5/bin/qdoc
37-
38-sed "s|documentation/||" < $QDOCCONF_FILE > $QDOCCONF_FILE.tmp
39-$QDOC_BIN $QDOCCONF_FILE.tmp
40-rm $QDOCCONF_FILE.tmp
41
42=== modified file 'documentation/ubuntu-ui-toolkit-online.qdocconf'
43--- documentation/ubuntu-ui-toolkit-online.qdocconf 2013-04-09 16:16:35 +0000
44+++ documentation/ubuntu-ui-toolkit-online.qdocconf 2013-05-27 10:31:29 +0000
45@@ -1,13 +1,7 @@
46-include(ubuntu-ui-toolkit-common.qdocconf)
47+include(ubuntu-ui-toolkit-offline.qdocconf)
48 include(ubuntu-appdev-site-header.qdocconf)
49 include(ubuntu-appdev-site-footer.qdocconf)
50
51-HTML.stylesheets = \
52- documentation/css/reset.css \
53- documentation/css/qtquick.css \
54- documentation/css/base.css \
55- documentation/css/scratch.css
56-
57 HTML.headerstyles = \
58 "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://fonts.googleapis.com/css?family=Ubuntu:400,400italic\">\n" \
59 "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://fonts.googleapis.com/css?family=Ubuntu+Mono:400\">\n" \
60
61=== modified file 'ubuntu-sdk.pro'
62--- ubuntu-sdk.pro 2013-05-21 18:25:58 +0000
63+++ ubuntu-sdk.pro 2013-05-27 10:31:29 +0000
64@@ -19,6 +19,7 @@
65 DOC_PATH=${PWD}/documentation
66 docs.target = docs
67 docs.commands += qdoc $$DOC_PATH/ubuntu-ui-toolkit-qtcreator.qdocconf;
68-docs.commands += qhelpgenerator -o "$$DOC_PATH/html/ubuntuuserinterfacetoolkit.qch" "$$DOC_PATH/html/ubuntuuserinterfacetoolkit.qhp"
69+docs.commands += qhelpgenerator -o "$$DOC_PATH/html/ubuntuuserinterfacetoolkit.qch" "$$DOC_PATH/html/ubuntuuserinterfacetoolkit.qhp";
70+docs.commands += qdoc $$DOC_PATH/ubuntu-ui-toolkit-online.qdocconf;
71 QMAKE_EXTRA_TARGETS += docs
72

Subscribers

People subscribed via source and target branches

to status/vote changes: