Skip to content

Commit

Permalink
refs #6709. Outstanding problems.
Browse files Browse the repository at this point in the history
.Firstly if there is no custom usage, the auto generated usage never gets added. Secondly, if there is a deprecated section, then the screenshot gets overwritten.
  • Loading branch information
OwenArnold committed Mar 20, 2013
1 parent 1d6bbf6 commit 1252c89
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Code/Mantid/Build/wiki_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,15 @@ def get_wiki_description(algo, version):
#======================================================================
def get_wiki_usage(algo, version):
wiki_usage = get_custom_wiki_section(algo, version, "*WIKI_USAGE*")
wiki_no_sig_usage = get_custom_wiki_section(algo, version, "*WIKI_USAGE_NO_SIGNATURE*")

if wiki_usage:
return (True, wiki_usage)
else:
wiki_no_sig_usage = get_custom_wiki_section(algo, version, "*WIKI_USAGE_NO_SIGNATURE*")
elif wiki_no_sig_usage:
return (False, wiki_no_sig_usage)
else:
return (True, "")


#======================================================================
def get_custom_wiki_section(algo, version, tag, tryUseDescriptionFromBinaries=False):
Expand Down Expand Up @@ -543,7 +547,7 @@ def do_make_wiki(algo_name, version, latest_version):
deprec_check = DeprecatedAlgorithmChecker(algo_name,version)
deprec = deprec_check.isDeprecated()
if len(deprec) != 0:
out = "== Deprecated ==\n\n"
out += "== Deprecated ==\n\n"
deprecstr = deprec
deprecstr = deprecstr.replace(". Use ", ". Use [[")
deprecstr = deprecstr.replace(" instead.", "]] instead.")
Expand Down

0 comments on commit 1252c89

Please sign in to comment.