Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/fatalInheritance into lp:ubuntu-ui-toolkit/staging

Proposed by Christian Dywan
Status: Work in progress
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/fatalInheritance
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 18 lines (+9/-0)
1 file modified
documentation/docs.sh (+9/-0)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/fatalInheritance
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Needs Fixing
Ubuntu SDK team Pending
Review via email: mp+293756@code.launchpad.net

Commit message

Fail doc generation on missing \inherits tags

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

1967. By Christian Dywan

Fail doc generation on missing \inherits tags

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'documentation/docs.sh'
2--- documentation/docs.sh 2015-05-19 09:16:44 +0000
3+++ documentation/docs.sh 2016-05-04 11:46:02 +0000
4@@ -33,6 +33,15 @@
5 test ! -s $DOC_PATH/qdoc.err || exit 1
6 echo docs: Offline done.
7
8+# Verify inheritance
9+grep -m 1 import $DOC_PATH/offline/qml-ubuntu-*.html | grep -v 'Inherits:' | sed -r "s@([^:]+).+@\1@g" > $DOC_PATH/qdoc.err
10+if [ -s $DOC_PATH/qdoc.err ]; then
11+ echo 'Missing \inherits tag in the following components:'
12+ cat $DOC_PATH/qdoc.err
13+ exit 1
14+fi
15+echo docs: \inherits tags verified.
16+
17 eval "$QHELPGENERATOR -o '$DOC_PATH/ubuntuuserinterfacetoolkit.qch' '$DOC_PATH/offline/ubuntuuserinterfacetoolkit.qhp' | grep -v ' does not exist! Skipping it'"
18 echo docs: qch done: $DOC_PATH
19

Subscribers

People subscribed via source and target branches