3636 'tandc' : 'Terms & Conditions' ,
3737 'arangodb' : 'ArangoDB' ,
3838 'cpusizes' : 'CPU Sizes' ,
39- 'nodesizes' : 'Node Sizes'
39+ 'nodesizes' : 'Node Sizes' ,
40+ 'scheduled-root-password-rotation' : 'Scheduled Root Password Rotation'
4041}
4142
4243
@@ -115,7 +116,12 @@ def create_filename(filename):
115116def rewrite_content (data , section , filename , weight ):
116117 title = ""
117118 content = ""
118- flags = {"inFrontMatter" : False , "endFrontMatter" : False , "inHeader" : False , "firstHeaderContent" : False }
119+ flags = {
120+ "inFrontMatter" : False ,
121+ "endFrontMatter" : False ,
122+ "inHeader" : False ,
123+ "firstHeaderContent" : False ,
124+ }
119125
120126 for i , line in enumerate (data ):
121127
@@ -128,24 +134,24 @@ def rewrite_content(data, section, filename, weight):
128134
129135 if flags ["inFrontMatter" ] and not flags ["endFrontMatter" ]:
130136 if line .startswith ("description: " ):
131- if filename .endswith ("/options.md" ):
132- content = content + "description: Command-line client tool for managing the Arango Managed Platform ( AMP) \n "
137+ # if filename.endswith("/options.md"):
138+ # content = content + "description: Command-line client tool for managing AMP\n"
133139 continue
134140
135141 if line .startswith ("layout: " ):
136142 continue
137143
138144 if line .startswith ("title: " ):
139145 if filename .endswith ("/options.md" ):
140- content = content + f"title: Arango Managed Platform (AMP) Shell oasisctl\n menuTitle: Options\n weight: { weight } \n "
146+ content = content + f"title: The ` oasisctl` command \n menuTitle: Options\n weight: { weight } \n "
141147 continue
142148
143149 menuTitle = ""
144150 title = line .rstrip ().replace ("title: " , "" )
145- for word in title .split (" " ):
151+ for word in title .split (" " )[ 1 :] :
146152 menuTitle = menuTitle + f" { TITLE_CASE .get (word .lower (), word )} "
147153
148- content = content + f"title:{ menuTitle } \n menuTitle:{ menuTitle . replace ( 'Oasisctl ' , '' ) } \n weight: { weight } \n "
154+ content = content + f"title:{ menuTitle } with `oasisctl` \n menuTitle:{ menuTitle } \n weight: { weight } \n "
149155 continue
150156
151157 if line .startswith ("###### Auto generated" ):
@@ -169,7 +175,8 @@ def rewrite_content(data, section, filename, weight):
169175 continue
170176
171177 if line .startswith ("## " ):
172- content = content + line
178+ # The command as a headline, e.g. ## oasisctl add group
179+ #content = content + line
173180 continue
174181
175182 if line == "---\n " :
0 commit comments