Merge lp:~mhall119/developer-ubuntu-com/apidoc-frameworks-creation into lp:developer-ubuntu-com

Proposed by Michael Hall
Status: Merged
Approved by: Daniel Holbach
Approved revision: 192
Merged at revision: 196
Proposed branch: lp:~mhall119/developer-ubuntu-com/apidoc-frameworks-creation
Merge into: lp:developer-ubuntu-com
Diff against target: 444 lines (+157/-57)
12 files modified
api_docs/admin.py (+1/-1)
api_docs/management/commands/import_cordova.py (+6/-1)
api_docs/management/commands/import_doxygen.py (+6/-1)
api_docs/management/commands/import_qdoc.py (+6/-1)
api_docs/management/commands/import_sphinx.py (+6/-1)
api_docs/management/commands/import_yuidoc.py (+6/-1)
api_docs/models.py (+46/-8)
api_docs/templates/api_docs/version.html (+8/-0)
api_docs/templates/api_docs/version_edit.html (+12/-15)
api_docs/urls.py (+1/-0)
api_docs/views.py (+32/-0)
update_apidocs.sh (+27/-28)
To merge this branch: bzr merge lp:~mhall119/developer-ubuntu-com/apidoc-frameworks-creation
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+287069@code.launchpad.net

Commit message

Updates to make it easier to manage new framework releases

Description of the change

Updates to make it easier to manage new framework releases
 * Change importers to allow targeting version aliases (development & current)
 * Add clone methods to API docs models
 * Add "New Release" link to development version page (only for admins)
 * Add page for defining the new development version name

To post a comment you must log in.
Revision history for this message
Michael Hall (mhall119) wrote :

To test, you will need existing API docs with a version marked as the "development" version for a language. Then log in using an account with admin access and navigate to that version's page, you should see a link in the upper-right marked "New Release". Clicking that will take you to a page where you can define the name of the new version, and submitting that will copy the contents from the previous "development" version into the new one, mark the old one as "current" and the new one as "development"

Revision history for this message
Daniel Holbach (dholbach) wrote :

Looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'api_docs/admin.py'
--- api_docs/admin.py 2015-02-05 14:24:04 +0000
+++ api_docs/admin.py 2016-02-24 17:45:37 +0000
@@ -7,7 +7,7 @@
7admin.site.register(Topic, TopicAdmin)7admin.site.register(Topic, TopicAdmin)
88
9class LanguageAdmin(admin.ModelAdmin):9class LanguageAdmin(admin.ModelAdmin):
10 list_display = ('name', 'slug', 'topic')10 list_display = ('name', 'slug', 'topic', 'current_version', 'development_version')
11 list_filter = ('topic',)11 list_filter = ('topic',)
12 search_fields = ('name', 'slug')12 search_fields = ('name', 'slug')
13admin.site.register(Language, LanguageAdmin)13admin.site.register(Language, LanguageAdmin)
1414
=== modified file 'api_docs/management/commands/import_cordova.py'
--- api_docs/management/commands/import_cordova.py 2015-02-17 20:14:09 +0000
+++ api_docs/management/commands/import_cordova.py 2016-02-24 17:45:37 +0000
@@ -51,7 +51,12 @@
51 verbosity = int(options.get('verbosity', 0))51 verbosity = int(options.get('verbosity', 0))
52 topic = Topic.objects.get(slug=options.get('topic'))52 topic = Topic.objects.get(slug=options.get('topic'))
53 language = Language.objects.get(slug=options.get('lang'), topic=topic)53 language = Language.objects.get(slug=options.get('lang'), topic=topic)
54 version = Version.objects.get(slug=options.get('version'), language=language)54 if options.get('version') == 'development':
55 version = language.development_version
56 elif options.get('version') == 'current':
57 version = language.current_version
58 else:
59 version = Version.objects.get(slug=options.get('version'), language=language)
55 section = None # Determined at runtime60 section = None # Determined at runtime
56 61
57 importer = CordovaImporter(topic, language, version, section, options)62 importer = CordovaImporter(topic, language, version, section, options)
5863
=== modified file 'api_docs/management/commands/import_doxygen.py'
--- api_docs/management/commands/import_doxygen.py 2015-02-17 20:14:09 +0000
+++ api_docs/management/commands/import_doxygen.py 2016-02-24 17:45:37 +0000
@@ -90,7 +90,12 @@
90 verbosity = int(options.get('verbosity', 0))90 verbosity = int(options.get('verbosity', 0))
91 topic = Topic.objects.get(slug=options.get('topic'))91 topic = Topic.objects.get(slug=options.get('topic'))
92 language = Language.objects.get(slug=options.get('lang'), topic=topic)92 language = Language.objects.get(slug=options.get('lang'), topic=topic)
93 version = Version.objects.get(slug=options.get('version'), language=language)93 if options.get('version') == 'development':
94 version = language.development_version
95 elif options.get('version') == 'current':
96 version = language.current_version
97 else:
98 version = Version.objects.get(slug=options.get('version'), language=language)
94 section = None # Will be determined during import99 section = None # Will be determined during import
95 100
96 importer = DoxygenImporter(topic, language, version, section, options)101 importer = DoxygenImporter(topic, language, version, section, options)
97102
=== modified file 'api_docs/management/commands/import_qdoc.py'
--- api_docs/management/commands/import_qdoc.py 2015-02-17 20:14:09 +0000
+++ api_docs/management/commands/import_qdoc.py 2016-02-24 17:45:37 +0000
@@ -83,7 +83,12 @@
83 verbosity = int(options.get('verbosity', 0))83 verbosity = int(options.get('verbosity', 0))
84 topic = Topic.objects.get(slug=options.get('topic'))84 topic = Topic.objects.get(slug=options.get('topic'))
85 language = Language.objects.get(slug=options.get('lang'), topic=topic)85 language = Language.objects.get(slug=options.get('lang'), topic=topic)
86 version = Version.objects.get(slug=options.get('version'), language=language)86 if options.get('version') == 'development':
87 version = language.development_version
88 elif options.get('version') == 'current':
89 version = language.current_version
90 else:
91 version = Version.objects.get(slug=options.get('version'), language=language)
87 section, created = Section.objects.get_or_create(name=options.get('section'), topic_version=version)92 section, created = Section.objects.get_or_create(name=options.get('section'), topic_version=version)
88 93
89 importer = QDocImporter(topic, language, version, section, options)94 importer = QDocImporter(topic, language, version, section, options)
9095
=== modified file 'api_docs/management/commands/import_sphinx.py'
--- api_docs/management/commands/import_sphinx.py 2015-02-05 14:24:04 +0000
+++ api_docs/management/commands/import_sphinx.py 2016-02-24 17:45:37 +0000
@@ -90,7 +90,12 @@
90 verbosity = int(options.get('verbosity', 0))90 verbosity = int(options.get('verbosity', 0))
91 topic = Topic.objects.get(slug=options.get('topic'))91 topic = Topic.objects.get(slug=options.get('topic'))
92 language = Language.objects.get(slug=options.get('lang'), topic=topic)92 language = Language.objects.get(slug=options.get('lang'), topic=topic)
93 version = Version.objects.get(slug=options.get('version'), language=language)93 if options.get('version') == 'development':
94 version = language.development_version
95 elif options.get('version') == 'current':
96 version = language.current_version
97 else:
98 version = Version.objects.get(slug=options.get('version'), language=language)
94 section = None # Will be determined during import99 section = None # Will be determined during import
95 100
96 importer = SphinxImporter(topic, language, version, section, options)101 importer = SphinxImporter(topic, language, version, section, options)
97102
=== modified file 'api_docs/management/commands/import_yuidoc.py'
--- api_docs/management/commands/import_yuidoc.py 2015-02-17 20:14:09 +0000
+++ api_docs/management/commands/import_yuidoc.py 2016-02-24 17:45:37 +0000
@@ -76,7 +76,12 @@
76 verbosity = int(options.get('verbosity', 0))76 verbosity = int(options.get('verbosity', 0))
77 topic = Topic.objects.get(slug=options.get('topic'))77 topic = Topic.objects.get(slug=options.get('topic'))
78 language = Language.objects.get(slug=options.get('lang'), topic=topic)78 language = Language.objects.get(slug=options.get('lang'), topic=topic)
79 version = Version.objects.get(slug=options.get('version'), language=language)79 if options.get('version') == 'development':
80 version = language.development_version
81 elif options.get('version') == 'current':
82 version = language.current_version
83 else:
84 version = Version.objects.get(slug=options.get('version'), language=language)
80 section, created = Section.objects.get_or_create(name=options.get('section'), topic_version=version)85 section, created = Section.objects.get_or_create(name=options.get('section'), topic_version=version)
81 86
82 importer = YUIDocImporter(topic, language, version, section, options)87 importer = YUIDocImporter(topic, language, version, section, options)
8388
=== modified file 'api_docs/models.py'
--- api_docs/models.py 2015-02-26 15:26:20 +0000
+++ api_docs/models.py 2016-02-24 17:45:37 +0000
@@ -28,6 +28,10 @@
28 name = models.CharField(max_length=64)28 name = models.CharField(max_length=64)
29 slug = models.CharField(max_length=64)29 slug = models.CharField(max_length=64)
3030
31 def import_from(self, target_version):
32 for section in target_version.section_set.all():
33 self.section_set.add(section.clone())
34
31 def __unicode__(self):35 def __unicode__(self):
32 return self.language.topic.name +' '+self.language.name +' '+self.name36 return self.language.topic.name +' '+self.language.name +' '+self.name
3337
@@ -41,6 +45,28 @@
41 def __unicode__(self):45 def __unicode__(self):
42 return self.topic_version.language.topic.name +' '+ self.topic_version.language.name +' '+self.topic_version.name+', '+self.name46 return self.topic_version.language.topic.name +' '+ self.topic_version.language.name +' '+self.topic_version.name+', '+self.name
4347
48 def clone(self):
49 new = Section(name=self.name, description=self.description, topic_version=self.topic_version)
50 new.save()
51 for namespace in self.namespace_set.all():
52 new.namespace_set.add(namespace.clone(new))
53
54 for element in self.element_set.all():
55 if not element.namespace:
56 element.section = new
57 element.id = None
58 element.save()
59 new.element_set.add(element)
60
61 for page in self.page_set.all():
62 if not page.namespace:
63 page.section = new
64 page.id = None
65 page.save()
66 new.page_set.add(page)
67
68 return new
69
44 @property70 @property
45 def topic(self):71 def topic(self):
46 return self.topic_version.topic72 return self.topic_version.topic
@@ -76,6 +102,26 @@
76 def __unicode__(self):102 def __unicode__(self):
77 return u'%s' % self.name103 return u'%s' % self.name
78 104
105 def clone(self, new_section):
106 new = Namespace(name=self.name, display_name=self.display_name, data=self.data, source_file=self.source_file, source_format=self.source_format, platform_section=new_section)
107 new.save()
108
109 for element in self.element_set.all():
110 element.section = new_section
111 element.namespace = new
112 element.id = None
113 element.save()
114 new.element_set.add(element)
115
116 for page in self.page_set.all():
117 page.section = new_section
118 page.namespace = new
119 page.id = None
120 page.save()
121 new.page_set.add(page)
122
123 return new
124
79 @property125 @property
80 def display(self):126 def display(self):
81 if self.display_name:127 if self.display_name:
@@ -137,11 +183,3 @@
137 def __unicode__(self):183 def __unicode__(self):
138 return u'%s' % self.fullname184 return u'%s' % self.fullname
139185
140#class DocSource(models.Model):
141 #'Source of API documentation'
142 #source_name = models.CharField(max_length=64, help_text='Unique name, processed in alphabetical order')
143 #source_url = models.UrlField(max_length=256, help_text='Publicly accessible download location')
144 #last_run = models.DateTime(auto_now=True)
145 #run_script = models.TextField(help_text='Script to run on package contents to import their docs')
146 #last_stdout = models.TextField(help_text='Output from the last run')
147 #last_stdeff = models.TextField(help_text='Errors from the last run')
148186
=== modified file 'api_docs/templates/api_docs/version.html'
--- api_docs/templates/api_docs/version.html 2015-02-05 14:24:04 +0000
+++ api_docs/templates/api_docs/version.html 2016-02-24 17:45:37 +0000
@@ -9,6 +9,14 @@
9<li class="">{{version.name}}</li>9<li class="">{{version.name}}</li>
10{% endblock %}10{% endblock %}
1111
12{% block nav_secondary %}
13 {% if perms.api_docs.add_version and version.language.development_version == version %}
14 <span style="float: right; vertical-align: middle;"><nav class="nav-secondary" style="border-bottom: 0px;"><ul><li><a href="{% url 'api_docs:release_version' language.topic.slug language.slug %}">New Release</a></li></ul></nav></span>
15 {% endif %}
16 {{block.super}}
17{% endblock nav_secondary%}
18
19
12{% block content %}20{% block content %}
13 <div class="row">21 <div class="row">
14 <h2>{{version.language.name}} {{version.language.topic.name}} for {{version.name}}</h2>22 <h2>{{version.language.name}} {{version.language.topic.name}} for {{version.name}}</h2>
1523
=== modified file 'api_docs/templates/api_docs/version_edit.html'
--- api_docs/templates/api_docs/version_edit.html 2015-02-05 14:24:04 +0000
+++ api_docs/templates/api_docs/version_edit.html 2016-02-24 17:45:37 +0000
@@ -1,23 +1,20 @@
1{% extends "api_docs/base.html" %}1{% extends "base.html" %}
22
3{% block editor_links %}3{% block title %}New Release - Ubuntu Developer{% endblock %}
4 <li><a href="{% url version_edit version.id %}?action=delete">Delete</a></li>
5{% endblock %}
64
7{% block breadcrumbs %}5{% block breadcrumbs %}
8{% endblock %}6{% endblock %}
97
10{% block content %}8{% block content %}
11{% if version.id %}9<div class="row">
12<h2>Edit {{version.name}}</h2>
13{% else %}
14<h2>New Version</h2>10<h2>New Version</h2>
15{% endif %}11<h3>(Previous version: {{ previous.slug }})</h3>
1612 <div class="six-col">
17<form action="" method="POST" id="element_form">13 <form action="" method="POST" id="element_form">
18{% csrf_token %}14 {% csrf_token %}
19{{ form.as_p }}15 {{ form.as_p }}
20<input type="submit" value="Save">16 <input type="submit" value="Save">
21</form>17 </form>
2218 </div>
19</div>
23{% endblock %}20{% endblock %}
2421
=== modified file 'api_docs/urls.py'
--- api_docs/urls.py 2015-02-26 15:53:30 +0000
+++ api_docs/urls.py 2016-02-24 17:45:37 +0000
@@ -16,6 +16,7 @@
16 url(r'^(?P<topic_name>[\w\.-]+)/$', 'api_docs.views.topic_view', name='topic'),16 url(r'^(?P<topic_name>[\w\.-]+)/$', 'api_docs.views.topic_view', name='topic'),
17 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/$', 'api_docs.views.language_view', name='language'),17 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/$', 'api_docs.views.language_view', name='language'),
18 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/(?P<release_version>[\w\.-]+)/$', 'api_docs.views.version_view', name='version'),18 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/(?P<release_version>[\w\.-]+)/$', 'api_docs.views.version_view', name='version'),
19 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/\+release/$', 'api_docs.views.release_version', name='release_version'),
19 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/(?P<release_version>[\w\.-]+)/(?P<element_fullname>[\w\.\-\:]+)/$', 'api_docs.views.element_view', name='element'),20 url(r'^(?P<topic_name>[\w\.-]+)/(?P<language_name>[\w\.-]+)/(?P<release_version>[\w\.-]+)/(?P<element_fullname>[\w\.\-\:]+)/$', 'api_docs.views.element_view', name='element'),
20 21
21)22)
2223
=== modified file 'api_docs/views.py'
--- api_docs/views.py 2015-03-27 21:00:43 +0000
+++ api_docs/views.py 2016-02-24 17:45:37 +0000
@@ -52,6 +52,38 @@
52 }52 }
53 return render_to_response('api_docs/language.html', context, RequestContext(request))53 return render_to_response('api_docs/language.html', context, RequestContext(request))
5454
55from django.forms import ModelForm
56class VersionForm(ModelForm):
57 class Meta:
58 model = Version
59 fields = ['name', 'slug']
60
61def release_version(request, topic_name, language_name):
62 language = get_object_or_404(Language, topic__slug=topic_name, slug=language_name)
63
64 version = Version(language=language)
65
66 if request.method == 'POST':
67 form = VersionForm(request.POST, instance=version)
68 if form.is_valid():
69 form.save()
70 language.current_version = language.development_version
71 language.development_version = version
72 language.save()
73 version.import_from(language.current_version)
74 version.save()
75 return HttpResponseRedirect(reverse('api_docs:version', args=[topic_name, language_name, version.slug]))
76 else:
77 form = VersionForm(instance=version)
78
79 context = {
80 'form': form,
81 'topic': language.topic,
82 'language': language,
83 'version': version,
84 'previous': language.development_version,
85 }
86 return render_to_response('api_docs/version_edit.html', context, RequestContext(request))
5587
56def version_view(request, topic_name, language_name, release_version):88def version_view(request, topic_name, language_name, release_version):
57 version = _get_release_version(topic_name, language_name, release_version)89 version = _get_release_version(topic_name, language_name, release_version)
5890
=== modified file 'update_apidocs.sh'
--- update_apidocs.sh 2016-01-11 15:33:54 +0000
+++ update_apidocs.sh 2016-02-24 17:45:37 +0000
@@ -2,113 +2,112 @@
22
3mkdir -p /tmp/apidoc_sources/3mkdir -p /tmp/apidoc_sources/
44
5##### SDK 15.04.1
6# Archives to download packages from5# Archives to download packages from
7export SERIES="vivid"6export SERIES="vivid"
87
9#### Apps/QML8#### Apps/QML
10## QtQML & QtQuick9## QtQML & QtQuick
11./get_package.py qtdeclarative5-doc-html10./get_package.py qtdeclarative5-doc-html
12python 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.index11python manage.py import_qdoc -p -t apps -l qml -r development -s "Language Types" -N QtQml -i /tmp/apidoc_sources/usr/share/qt5/doc/qtqml/qtqml.index
13python 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.index12python manage.py import_qdoc -p -t apps -l qml -r development -s "Graphical Interface" -n QtQuick -i /tmp/apidoc_sources/usr/share/qt5/doc/qtquick/qtquick.index
1413
15## QtMultimedia & QtAudioEngine14## QtMultimedia & QtAudioEngine
16./get_package.py qtmultimedia5-doc-html15./get_package.py qtmultimedia5-doc-html
17python 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.index16python manage.py import_qdoc -p -t apps -l qml -r development -s "Multimedia" -n QtMultimedia -i /tmp/apidoc_sources/usr/share/qt5/doc/qtmultimedia/qtmultimedia.index
1817
19## QtSensors18## QtSensors
20./get_package.py qtsensors5-doc-html19./get_package.py qtsensors5-doc-html
21python 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.index20python manage.py import_qdoc -p -t apps -l qml -r development -s "Device and Sensors" -n QtSensors -i /tmp/apidoc_sources/usr/share/qt5/doc/qtsensors/qtsensors.index
2221
23## QtFeedback22## QtFeedback
24./get_package.py qtfeedback5-doc-html23./get_package.py qtfeedback5-doc-html
25python 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.index24python manage.py import_qdoc -t apps -l qml -r development -s "Device and Sensors" -n QtFeedback -i /tmp/apidoc_sources/usr/share/qt5/doc/qtfeedback/qtfeedback.index
2625
27## QtLocation26## QtLocation
28./get_package.py qtlocation5-doc-html27./get_package.py qtlocation5-doc-html
29python 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.index28python manage.py import_qdoc -p -t apps -l qml -r development.1 -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtlocation/qtlocation.index
3029
31## QtOrganizer30## QtOrganizer
32./get_package.py qtpim5-doc-html31./get_package.py qtpim5-doc-html
33python 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.index32python manage.py import_qdoc -t apps -l qml -r development -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtorganizer/qtorganizer.index
34python 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.index33python manage.py import_qdoc -t apps -l qml -r development -s "Platform Services" -i /tmp/apidoc_sources/usr/share/qt5/doc/qtcontacts/qtcontacts.index
3534
36## Ubuntu.Components35## Ubuntu.Components
37./get_package.py ubuntu-ui-toolkit-doc36./get_package.py ubuntu-ui-toolkit-doc
38python 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.index37python manage.py import_qdoc -Pp -t apps -l qml -r development -s "Graphical Interface" -n Ubuntu.Components -i /tmp/apidoc_sources/usr/share/ubuntu-ui-toolkit/doc/html/ubuntuuserinterfacetoolkit.index
3938
40## Ubuntu.OnlineAccounts39## Ubuntu.OnlineAccounts
41./get_package.py accounts-qml-module-doc40./get_package.py accounts-qml-module-doc
42python 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.index41python manage.py import_qdoc -Pp -t apps -l qml -r development -s "Platform Services" -N Ubuntu.OnlineAccounts -i /tmp/apidoc_sources/usr/share/accounts-qml-module/doc/html/onlineaccounts-qml-api.index
4342
44## Ubuntu.Content43## Ubuntu.Content
45./get_package.py libcontent-hub-doc44./get_package.py libcontent-hub-doc
46gunzip -f /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index.gz45gunzip -f /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index.gz
47python 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.index46python manage.py import_qdoc -Pp -t apps -l qml -r development -s "Platform Services" -N Ubuntu.Content -i /tmp/apidoc_sources/usr/share/doc/content-hub/qml/html/ubuntu-content-qml-api.index
4847
49# U1db48# U1db
50./get_package.py libu1db-qt5-doc49./get_package.py libu1db-qt5-doc
51python 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.index50python manage.py import_qdoc -p -t apps -l qml -r development -s "Platform Services" -N U1db -i /tmp/apidoc_sources/usr/share/u1db-qt/doc/html/u1db-qt.index
5251
53## Ubuntu.DownloadManager52## Ubuntu.DownloadManager
54./get_package.py libubuntu-download-manager-client-doc53./get_package.py libubuntu-download-manager-client-doc
55gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index.gz54gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index.gz
56python 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.index55python manage.py import_qdoc -Pp -t apps -l qml -r development -s "Platform Services" -N Ubuntu.DownloadManager -i /tmp/apidoc_sources/usr/share/doc/ubuntu-download-manager/qml/html/ubuntu-download-manager-qml-api.index
5756
58## Ubuntu.Web57## Ubuntu.Web
59./get_package.py qtdeclarative5-ubuntu-web-plugin-doc58./get_package.py qtdeclarative5-ubuntu-web-plugin-doc
60gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index.gz59gunzip -f /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index.gz
61python 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.index60python manage.py import_qdoc -Pp -t apps -l qml -r development -s "Graphical Interface" -N Ubuntu.Web -i /tmp/apidoc_sources/usr/share/doc/ubuntu-web/html/ubuntuweb.index
6261
63## Ubuntu.Connectivity62## Ubuntu.Connectivity
64./get_package.py connectivity-doc63./get_package.py connectivity-doc
65python 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.index64python manage.py import_qdoc -Pp -t apps -l qml -r development -s "Platform Services" -N Ubuntu.Connectivity -i /tmp/apidoc_sources/usr/share/doc/connectivity-api/qml/html/connectivity.index
6665
67#### Aps/HTML566#### Aps/HTML5
68## UbuntuUI67## UbuntuUI
69./get_package.py ubuntu-html5-ui-toolkit-doc68./get_package.py ubuntu-html5-ui-toolkit-doc
70python 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.json69python manage.py import_yuidoc -i -t apps -l html5 -r development -s "Graphical Interface" -d /tmp/apidoc_sources/usr/share/doc/ubuntu-html5-ui-toolkit-doc/data.json
7170
72## Platform Bindings71## Platform Bindings
73./get_package.py unity-webapps-qml-doc72./get_package.py unity-webapps-qml-doc
74## OnlineAccounts373## OnlineAccounts3
75python 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.json74python manage.py import_yuidoc -t apps -l html5 -r development -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/online-accounts/data.json
76## AlarmAPI75## AlarmAPI
77python 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/alarm-api/data.json76python manage.py import_yuidoc -t apps -l html5 -r development -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/alarm-api/data.json
78## ContentHub77## ContentHub
79python 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/content-hub/data.json78python manage.py import_yuidoc -t apps -l html5 -r development -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/content-hub/data.json
80## RuntimeAPI79## RuntimeAPI
81python 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/runtime-api/data.json80python manage.py import_yuidoc -t apps -l html5 -r development -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-webapps-qml/doc/api/runtime-api/data.json
8281
83#### Autopilot/Python82#### Autopilot/Python
84## Autopilot83## Autopilot
85./get_package.py python3-autopilot84./get_package.py python3-autopilot
86find /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip85find /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip
87python 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.inv86python manage.py import_sphinx -t autopilot -l python -r development -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/python3-autopilot/json/objects.inv
8887
89./get_package.py ubuntu-ui-toolkit-autopilot88./get_package.py ubuntu-ui-toolkit-autopilot
90find /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip89find /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/ -name "*.gz" -print0 |xargs -0 gunzip
91python 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.inv90python manage.py import_sphinx -t autopilot -l python -r development -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/ubuntu-ui-toolkit-autopilot/json/objects.inv
9291
93./get_package.py python3-scope-harness92./get_package.py python3-scope-harness
94find /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/ -name "*.gz" -print0 |xargs -0 gunzip93find /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/ -name "*.gz" -print0 |xargs -0 gunzip
95python 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.inv94python manage.py import_sphinx -t autopilot -l python -r development -s ./api_docs/importers/autopilot_sections.py -i /tmp/apidoc_sources/usr/share/doc/python3-scope-harness/json/objects.inv
9695
97#### Scopes/C++ 96#### Scopes/C++
98## unity.scopes97## unity.scopes
99./get_package.py libunity-scopes-doc98./get_package.py libunity-scopes-doc
100python 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/99python manage.py import_doxygen -t scopes -l cpp -r development -s ./api_docs/importers/scope_sections.py -N unity.scopes -d /tmp/apidoc_sources/usr/share/doc/unity-scopes/
101100
102## Accounts101## Accounts
103./get_package.py libaccounts-qt-doc102./get_package.py libaccounts-qt-doc
104python 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/103python manage.py import_doxygen -t scopes -l cpp -r development -s ./api_docs/importers/accounts_sections.py -n Accounts -d /tmp/apidoc_sources/usr/share/doc/libaccounts-qt/html/
105104
106## U1db105## U1db
107./get_package.py libu1db-qt5-doc106./get_package.py libu1db-qt5-doc
108python 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.index107python manage.py import_qdoc -Pp -N U1db -t scopes -l cpp -r development -s "Platform Services" -i /tmp/apidoc_sources/usr/share/u1db-qt/doc/html/u1db-qt.index
109108
110#### Scopes/Javascript109#### Scopes/Javascript
111SOURCE=http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu ./get_package.py unity-js-scopes-doc110SOURCE=http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu ./get_package.py unity-js-scopes-doc
112python 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.json111python manage.py import_yuidoc -t scopes -l js -r development -s "Platform Services" -d /tmp/apidoc_sources/usr/share/unity-js-scopes/doc/docbuild/data.json
113112
114rm -r /tmp/apidoc_sources/113rm -r /tmp/apidoc_sources/

Subscribers

People subscribed via source and target branches