Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
add alias information
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Oct 7, 2014
1 parent 6096a09 commit c5f9f3e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions manuals/scripts/generate-resoure-descriptions.py
Expand Up @@ -60,26 +60,28 @@ def getResourceDirectivesTable(self, resourcename):
data=self.schema.getResourceDirective(resourcename, directive)

m="{"
extra=""
extra=[]

if data.get( 'equals' ):
datatype="= \\dt{"+data['datatype']+"}"
else:
datatype="\{ \\dt{"+data['datatype']+"} \}"

deprecated=""
if data.get( 'alias' ):
extra.append("alias")
m="\\textit{"
if data.get( 'deprecated' ):
extra="deprecated"
extra.append("deprecated")
m="\\textit{"
required=""
if data.get( 'required' ):
extra="required"
extra.append("required")
m="\\textbf{"
default=""
if data.get( 'default_value' ):
default=data.get( 'default_value' )

result+=m+directive + "} & " + m + datatype + "} & " + m + default + "} & " + m + extra + "}\\\\ \n"
result+=m+directive + "} & " + m + datatype + "} & " + m + default + "} & " + m + " ".join(extra) + "}\\\\ \n"
result+="\\end{tabular}\n"
result+="\\end{center}\n"
result+="\n"
Expand Down

0 comments on commit c5f9f3e

Please sign in to comment.