Skip to content

Commit a31eccc

Browse files
Alena Prokharchykchaturvedia
authored andcommitted
Fixed API doc that got broken by adding new commands for stratosphere ssp plugin
(cherry picked from commit 54f2234) Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
1 parent 55ec8f3 commit a31eccc

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',
@@ -159,7 +159,8 @@
159159
'UCS' : 'UCS',
160160
'Ucs' : 'UCS',
161161
'CacheStores' : 'Cache Stores',
162-
'CacheStore' : 'Cache Store'
162+
'CacheStore' : 'Cache Store',
163+
'StratosphereSsp' : ' Stratosphere SSP'
163164
}
164165

165166

@@ -204,7 +205,7 @@ def choose_category(fn):
204205
pass
205206
except IndexError, e:
206207
print fn
207-
208+
208209

209210
def xml_for(command):
210211
name = command['name']
@@ -219,7 +220,7 @@ def xml_for(command):
219220
def write_xml(out, user):
220221
with file(out, 'w') as f:
221222
cat_strings = []
222-
223+
223224
for category in categories.keys():
224225
strings = []
225226
for command in categories[category]:
@@ -241,7 +242,7 @@ def write_xml(out, user):
241242
<xsl:for-each select="commands/command">
242243
%(all_strings)s
243244
</xsl:for-each>
244-
</ul>
245+
</ul>
245246
</div>
246247
247248
''' % locals()
@@ -267,7 +268,7 @@ def java_for_user(user):
267268
for command in categories[category]:
268269
if command['user'] == user:
269270
strings.append(java_for(command, user))
270-
func = user_to_func[user]
271+
func = user_to_func[user]
271272
all_strings = ''.join(strings)
272273
return '''
273274
public void %(func)s() {

0 commit comments

Comments
 (0)