Skip to content

Commit 13e6c2f

Browse files
author
Alena Prokharchyk
committed
Fixed API doc that got broken by adding new commands for stratosphere ssp plugin
Conflicts: tools/apidoc/gen_toc.py
1 parent 06f79a8 commit 13e6c2f

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎tools/apidoc/gen_toc.py‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
11+
#
1212
# Unless required by applicable law or agreed to in writing,
1313
# software distributed under the License is distributed on an
1414
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -126,7 +126,7 @@
126126
'Project': 'Project',
127127
'Lun': 'Storage',
128128
'Pool': 'Pool',
129-
'VPC': 'VPC',
129+
'VPC': 'VPC',
130130
'PrivateGateway': 'VPC',
131131
'Simulator': 'simulator',
132132
'StaticRoute': 'VPC',
@@ -160,7 +160,8 @@
160160
'Ucs' : 'UCS',
161161
'CacheStores' : 'Cache Stores',
162162
'CacheStore' : 'Cache Store',
163-
'OvsElement' : 'Ovs Element'
163+
'OvsElement' : 'Ovs Element',
164+
'StratosphereSsp' : ' Stratosphere SSP'
164165
}
165166

166167

@@ -205,7 +206,7 @@ def choose_category(fn):
205206
pass
206207
except IndexError, e:
207208
print fn
208-
209+
209210

210211
def xml_for(command):
211212
name = command['name']
@@ -220,7 +221,7 @@ def xml_for(command):
220221
def write_xml(out, user):
221222
with file(out, 'w') as f:
222223
cat_strings = []
223-
224+
224225
for category in categories.keys():
225226
strings = []
226227
for command in categories[category]:
@@ -242,7 +243,7 @@ def write_xml(out, user):
242243
<xsl:for-each select="commands/command">
243244
%(all_strings)s
244245
</xsl:for-each>
245-
</ul>
246+
</ul>
246247
</div>
247248
248249
''' % locals()
@@ -268,7 +269,7 @@ def java_for_user(user):
268269
for command in categories[category]:
269270
if command['user'] == user:
270271
strings.append(java_for(command, user))
271-
func = user_to_func[user]
272+
func = user_to_func[user]
272273
all_strings = ''.join(strings)
273274
return '''
274275
public void %(func)s() {

0 commit comments

Comments
 (0)