~developer-ubuntu-com-dev/developer-ubuntu-com/production

« back to all changes in this revision

Viewing changes to update_apidocs.sh

  • Committer: Michael Hall
  • Date: 2015-12-10 14:57:15 UTC
  • mfrom: (152.1.2 use-overlay-ppa)
  • Revision ID: mhall119@ubuntu.com-20151210145715-s3pvbd852pb28t5e
Use PPAs in addition to the archives for docs package downloads

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
mkdir -p /tmp/apidoc_sources/
4
4
 
5
 
# Archives to download packages from
6
 
export SERIES="vivid"
7
 
 
8
 
#### Apps/QML
9
 
## QtQML & QtQuick
10
 
./get_package.sh qtdeclarative5-doc-html
11
 
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04 -s "Language Types" -N QtQml -i /tmp/apidoc_sources/usr/share/qt5/doc/qtqml/qtqml.index
12
 
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04 -s "Graphical Interface" -n QtQuick -i /tmp/apidoc_sources/usr/share/qt5/doc/qtquick/qtquick.index
13
 
 
14
 
## QtMultimedia & QtAudioEngine
15
 
./get_package.sh qtmultimedia5-doc-html
16
 
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04 -s "Multimedia" -n QtMultimedia -i /tmp/apidoc_sources/usr/share/qt5/doc/qtmultimedia/qtmultimedia.index
17
 
 
18
 
## QtSensors
19
 
./get_package.sh qtsensors5-doc-html
20
 
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04 -s "Device and Sensors" -n QtSensors -i /tmp/apidoc_sources/usr/share/qt5/doc/qtsensors/qtsensors.index
21
 
 
22
 
## QtFeedback
23
 
./get_package.sh qtfeedback5-doc-html
24
 
python manage.py import_qdoc -t apps -l qml -r sdk-15.04 -s "Device and Sensors" -n QtFeedback -i /tmp/apidoc_sources/usr/share/qt5/doc/qtfeedback/qtfeedback.index
25
 
 
26
 
## QtLocation
27
 
./get_package.sh qtlocation5-doc-html
28
 
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtlocation/qtlocation.index
29
 
 
30
 
## QtOrganizer
31
 
./get_package.sh qtpim5-doc-html
32
 
python manage.py import_qdoc -t apps -l qml -r sdk-15.04 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtorganizer/qtorganizer.index
33
 
python manage.py import_qdoc -t apps -l qml -r sdk-15.04 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtcontacts/qtcontacts.index
34
 
 
35
 
## Ubuntu.Components
36
 
./get_package.sh ubuntu-ui-toolkit-doc
37
 
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04 -s "Graphical Interface" -n Ubuntu.Components -i /tmp/apidoc_sources/usr/share/ubuntu-ui-toolkit/doc/html/ubuntuuserinterfacetoolkit.index
38
 
 
39
 
## Ubuntu.OnlineAccounts
40
 
./get_package.sh accounts-qml-module-doc
41
 
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04 -s "Platform Services" -N Ubuntu.OnlineAccounts -i /tmp/apidoc_sources/usr/share/accounts-qml-module/doc/html/onlineaccounts-qml-api.index
42
 
 
43
 
## Ubuntu.Content
44
 
./get_package.sh libcontent-hub-doc
45
 
gunzip -f /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index.gz
46
 
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04 -s "Platform Services" -N Ubuntu.Content -i /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index
47
 
 
48
 
# U1db
49
 
./get_package.sh libu1db-qt5-doc
50
 
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04 -s "Platform Services" -N U1db -i /tmp/apidoc_sources/usr/share/u1db-qt/doc/html/u1db-qt.index
51
 
 
52
 
## Ubuntu.DownloadManager
53
 
./get_package.sh libubuntu-download-manager-client-doc
54
 
gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index.gz
55
 
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04 -s "Platform Services" -N Ubuntu.DownloadManager -i /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index
56
 
 
57
 
## Ubuntu.Web
58
 
./get_package.sh qtdeclarative5-ubuntu-web-plugin-doc
59
 
gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index.gz
60
 
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04 -s "Graphical Interface" -N Ubuntu.Web -i /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index
61
 
 
62
 
## Ubuntu.Connectivity
63
 
./get_package.sh connectivity-doc
64
 
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04 -s "Platform Services" -N Ubuntu.Connectivity -i /tmp/apidoc_sources/usr/share/doc/connectivity-api/qml/html/connectivity.index
65
 
 
66
 
#### Aps/HTML5
67
 
## UbuntuUI
68
 
./get_package.sh ubuntu-html5-ui-toolkit-doc
69
 
python manage.py import_yuidoc -i -t apps -l html5 -r sdk-15.04 -s "Graphical Interface" -d /tmp/apidoc_sources/usr/share/doc/ubuntu-html5-ui-toolkit-doc/data.json
70
 
 
71
 
## Cordova
72
 
#wget -P /tmp/apidoc_sources/ -nc https://swift.canonistack.canonical.com/v1/AUTH_28f73a401b8a4dfeab9f0f02f789d1ac/html5-api-docs/docs/cordova-docs.utopic.tar.gz
73
 
#tar -C /tmp/apidoc_sources/ -xzf /tmp/apidoc_sources/cordova-docs.utopic.tar.gz
74
 
#python manage.py import_cordova -t apps -l html5 -r sdk-15.04 -i /tmp/apidoc_sources/utopic/cordova-docs/public/en/4.0.0/index.json
75
 
 
76
 
## Platform Bindings
77
 
./get_package.sh unity-webapps-qml-doc
78
 
## OnlineAccounts3
79
 
python manage.py import_yuidoc -t apps -l html5 -r sdk-15.04 -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/online-accounts/data.json
80
 
## AlarmAPI
81
 
python manage.py import_yuidoc -t apps -l html5 -r sdk-15.04 -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/alarm-api/data.json
82
 
## ContentHub
83
 
python manage.py import_yuidoc -t apps -l html5 -r sdk-15.04 -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/content-hub/data.json
84
 
## RuntimeAPI
85
 
python manage.py import_yuidoc -t apps -l html5 -r sdk-15.04 -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/runtime-api/data.json
86
 
 
87
 
#### Autopilot/Python
88
 
## Autopilot
89
 
./get_package.sh python3-autopilot
90
 
find /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip
91
 
python manage.py import_sphinx -t autopilot -l python -r 1.5.0 -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/objects.inv
92
 
 
93
 
ARCH=i386 ./get_package.sh ubuntu-ui-toolkit-autopilot
94
 
find /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip
95
 
python manage.py import_sphinx -t autopilot -l python -r 1.5.0 -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/objects.inv
96
 
 
97
 
SERIES=wily ARCH=i386 ./get_package.sh python3-scope-harness
98
 
find /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/ -name "*.gz" -print0 |xargs -0 gunzip
99
 
python manage.py import_sphinx -t autopilot -l python -r 1.5.0 -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/objects.inv
100
 
 
101
 
#### Scopes/C++ 
102
 
## unity.scopes
103
 
./get_package.sh libunity-scopes-doc
104
 
python manage.py import_doxygen -t scopes -l cpp -r sdk-15.04 -s ./api_docs/importers/scope_sections.py -N unity.scopes -d /tmp/apidoc_sources/usr/share/doc/unity-scopes/
105
 
 
106
 
## Accounts
107
 
./get_package.sh libaccounts-qt-doc
108
 
python manage.py import_doxygen -t scopes -l cpp -r sdk-15.04 -s ./api_docs/importers/accounts_sections.py -n Accounts -d /tmp/apidoc_sources/usr/share/doc/libaccounts-qt/html/
109
 
 
110
 
## U1db
111
 
./get_package.sh libu1db-qt5-doc
112
 
python manage.py import_qdoc -Pp -N U1db -t scopes -l cpp -r sdk-15.04 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/u1db-qt/doc/html/u1db-qt.index
113
 
 
114
5
##### SDK 15.04.1
115
6
# Archives to download packages from
116
7
export SERIES="wily"
117
8
 
118
9
#### Apps/QML
119
10
## QtQML & QtQuick
120
 
./get_package.sh qtdeclarative5-doc-html
 
11
./get_package.py qtdeclarative5-doc-html
121
12
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04.1 -s "Language Types" -N QtQml -i /tmp/apidoc_sources/usr/share/qt5/doc/qtqml/qtqml.index
122
13
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04.1 -s "Graphical Interface" -n QtQuick -i /tmp/apidoc_sources/usr/share/qt5/doc/qtquick/qtquick.index
123
14
 
124
15
## QtMultimedia & QtAudioEngine
125
 
./get_package.sh qtmultimedia5-doc-html
 
16
./get_package.py qtmultimedia5-doc-html
126
17
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04.1 -s "Multimedia" -n QtMultimedia -i /tmp/apidoc_sources/usr/share/qt5/doc/qtmultimedia/qtmultimedia.index
127
18
 
128
19
## QtSensors
129
 
./get_package.sh qtsensors5-doc-html
 
20
./get_package.py qtsensors5-doc-html
130
21
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04.1 -s "Device and Sensors" -n QtSensors -i /tmp/apidoc_sources/usr/share/qt5/doc/qtsensors/qtsensors.index
131
22
 
132
23
## QtFeedback
133
 
./get_package.sh qtfeedback5-doc-html
 
24
./get_package.py qtfeedback5-doc-html
134
25
python manage.py import_qdoc -t apps -l qml -r sdk-15.04.1 -s "Device and Sensors" -n QtFeedback -i /tmp/apidoc_sources/usr/share/qt5/doc/qtfeedback/qtfeedback.index
135
26
 
136
27
## QtLocation
137
 
./get_package.sh qtlocation5-doc-html
 
28
./get_package.py qtlocation5-doc-html
138
29
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtlocation/qtlocation.index
139
30
 
140
31
## QtOrganizer
141
 
./get_package.sh qtpim5-doc-html
 
32
./get_package.py qtpim5-doc-html
142
33
python manage.py import_qdoc -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtorganizer/qtorganizer.index
143
34
python manage.py import_qdoc -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtcontacts/qtcontacts.index
144
35
 
145
36
## Ubuntu.Components
146
 
./get_package.sh ubuntu-ui-toolkit-doc
 
37
./get_package.py ubuntu-ui-toolkit-doc
147
38
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04.1 -s "Graphical Interface" -n Ubuntu.Components -i /tmp/apidoc_sources/usr/share/ubuntu-ui-toolkit/doc/html/ubuntuuserinterfacetoolkit.index
148
39
 
149
40
## Ubuntu.OnlineAccounts
150
 
./get_package.sh accounts-qml-module-doc
 
41
./get_package.py accounts-qml-module-doc
151
42
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -N Ubuntu.OnlineAccounts -i /tmp/apidoc_sources/usr/share/accounts-qml-module/doc/html/onlineaccounts-qml-api.index
152
43
 
153
44
## Ubuntu.Content
154
 
./get_package.sh libcontent-hub-doc
 
45
./get_package.py libcontent-hub-doc
155
46
gunzip -f /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index.gz
156
47
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -N Ubuntu.Content -i /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index
157
48
 
158
49
# U1db
159
 
./get_package.sh libu1db-qt5-doc
 
50
./get_package.py libu1db-qt5-doc
160
51
python manage.py import_qdoc -p -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -N U1db -i /tmp/apidoc_sources/usr/share/u1db-qt/doc/html/u1db-qt.index
161
52
 
162
53
## Ubuntu.DownloadManager
163
 
./get_package.sh libubuntu-download-manager-client-doc
 
54
./get_package.py libubuntu-download-manager-client-doc
164
55
gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index.gz
165
56
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -N Ubuntu.DownloadManager -i /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index
166
57
 
167
58
## Ubuntu.Web
168
 
./get_package.sh qtdeclarative5-ubuntu-web-plugin-doc
 
59
./get_package.py qtdeclarative5-ubuntu-web-plugin-doc
169
60
gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index.gz
170
61
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04.1 -s "Graphical Interface" -N Ubuntu.Web -i /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index
171
62
 
172
63
## Ubuntu.Connectivity
173
 
./get_package.sh connectivity-doc
 
64
./get_package.py connectivity-doc
174
65
python manage.py import_qdoc -Pp -t apps -l qml -r sdk-15.04.1 -s "Platform Services" -N Ubuntu.Connectivity -i /tmp/apidoc_sources/usr/share/doc/connectivity-api/qml/html/connectivity.index
175
66
 
176
67
#### Aps/HTML5
177
68
## UbuntuUI
178
 
./get_package.sh ubuntu-html5-ui-toolkit-doc
 
69
./get_package.py ubuntu-html5-ui-toolkit-doc
179
70
python manage.py import_yuidoc -i -t apps -l html5 -r sdk-15.04.1 -s "Graphical Interface" -d /tmp/apidoc_sources/usr/share/doc/ubuntu-html5-ui-toolkit-doc/data.json
180
71
 
181
72
## Platform Bindings
182
 
./get_package.sh unity-webapps-qml-doc
 
73
./get_package.py unity-webapps-qml-doc
183
74
## OnlineAccounts3
184
75
python manage.py import_yuidoc -t apps -l html5 -r sdk-15.04.1 -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/online-accounts/data.json
185
76
## AlarmAPI
191
82
 
192
83
#### Autopilot/Python
193
84
## Autopilot
194
 
./get_package.sh python3-autopilot
 
85
./get_package.py python3-autopilot
195
86
find /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip
196
87
python manage.py import_sphinx -t autopilot -l python -r 1.5.0 -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/objects.inv
197
88
 
198
 
ARCH=i386 ./get_package.sh ubuntu-ui-toolkit-autopilot
 
89
./get_package.py ubuntu-ui-toolkit-autopilot
199
90
find /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip
200
91
python manage.py import_sphinx -t autopilot -l python -r 1.5.0 -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/objects.inv
201
92
 
202
 
ARCH=i386 ./get_package.sh python3-scope-harness
 
93
./get_package.py python3-scope-harness
203
94
find /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/ -name "*.gz" -print0 |xargs -0 gunzip
204
95
python manage.py import_sphinx -t autopilot -l python -r 1.5.0 -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/objects.inv
205
96
 
206
97
#### Scopes/C++ 
207
98
## unity.scopes
208
 
./get_package.sh libunity-scopes-doc
 
99
./get_package.py libunity-scopes-doc
209
100
python manage.py import_doxygen -t scopes -l cpp -r sdk-15.04.1 -s ./api_docs/importers/scope_sections.py -N unity.scopes -d /tmp/apidoc_sources/usr/share/doc/unity-scopes/
210
101
 
211
102
## Accounts
212
 
./get_package.sh libaccounts-qt-doc
 
103
./get_package.py libaccounts-qt-doc
213
104
python manage.py import_doxygen -t scopes -l cpp -r sdk-15.04.1 -s ./api_docs/importers/accounts_sections.py -n Accounts -d /tmp/apidoc_sources/usr/share/doc/libaccounts-qt/html/
214
105
 
215
106
## U1db
216
 
./get_package.sh libu1db-qt5-doc
 
107
./get_package.py libu1db-qt5-doc
217
108
python manage.py import_qdoc -Pp -N U1db -t scopes -l cpp -r sdk-15.04.1 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/u1db-qt/doc/html/u1db-qt.index
218
109
 
 
110
#### Scopes/Javascript
 
111
#SOURCE=http://ppa.launchpad.net/ubuntu-sdk-team/staging/ubuntu ./get_package.py unity-js-scopes-doc
 
112
#python manage.py import_yuidoc -t scopes -l js -r sdk-15.04.1 -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-js-scopes/doc/docbuild/data.json
 
113
 
219
114
rm -r /tmp/apidoc_sources/