Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .scripts/make_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def make_doc_item(lines: List[str], file: str,
elif k == 'issue':
item[k] = int(v)
elif k == 'tags':
item[k] = v.split(',')
tags = v.split(',')
item[k] = tags if tags != [''] else []
else:
print("%s: error: %s: unknown key `%s`" % (sys.argv[0], file, k))

Expand Down Expand Up @@ -265,10 +266,12 @@ def render_full_feature_page(item: dict, outdir: str):
file.write("<h1>%s</h1>\n\n" % (item["feature"]))
file.write("Tracking Issue: [#%i](%s)\n\n" %
(item["issue"], HL_ISSUES_URL % (item["issue"])))
linked_tags = map(
lambda t: "[%s](%s)" % (t, os.path.join("..", t + ".md")),
filter(lambda t: not t in ["strategy", "tactical"], item["tags"]))
file.write("Tags: " + ", ".join(linked_tags) + "\n\n")
if len(item["tags"]) > 0:
linked_tags = map(
lambda t: "[%s](%s)" % (t, os.path.join("..", t + ".md")),
filter(lambda t: not t in ["strategy", "tactical"],
item["tags"]))
file.write("Tags: " + ", ".join(linked_tags) + "\n\n")
file.write("\n".join([t["text"] for t in item["texts"]]))
file.write("\n\n")
file.write("## Source code references\n\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
VersionFormat="v%MAJOR.%MINOR.%PATCH"

RequiredNotFound="NOT LOADED - REQUIRED"
ExpectedNotFound="NOT LOADED - EXPECTED"
NotExpectedNotFound="Optional"

VersionMismatches="- Version Mismatches"
WarningsLabel="- Warnings"
Expand Down
16 changes: 16 additions & 0 deletions X2WOTCCommunityHighlander/Src/Core/Classes/CHCoreVersion.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// HL-Docs: ref:ComponentVersions
class CHCoreVersion extends Object;

var int MajorVersion;
var int MinorVersion;
var int PatchVersion;
var string Commit;

// AUTO-CODEGEN: Version-Info
defaultproperties
{
MajorVersion = 1;
MinorVersion = 20;
PatchVersion = 0;
Commit = "RC1";
}
Loading