Skip to content

Commit 6dfae4c

Browse files
authored
Merge pull request #764 from robojumper/nativity_check
Add `Object:IsClassNative` to check whether a class is native
2 parents 36a5889 + c8b1fda commit 6dfae4c

14 files changed

Lines changed: 2551 additions & 185 deletions

File tree

.scripts/make_docs.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def make_doc_item(lines: List[str], file: str,
8585
elif k == 'issue':
8686
item[k] = int(v)
8787
elif k == 'tags':
88-
item[k] = v.split(',')
88+
tags = v.split(',')
89+
item[k] = tags if tags != [''] else []
8990
else:
9091
print("%s: error: %s: unknown key `%s`" % (sys.argv[0], file, k))
9192

@@ -265,10 +266,12 @@ def render_full_feature_page(item: dict, outdir: str):
265266
file.write("<h1>%s</h1>\n\n" % (item["feature"]))
266267
file.write("Tracking Issue: [#%i](%s)\n\n" %
267268
(item["issue"], HL_ISSUES_URL % (item["issue"])))
268-
linked_tags = map(
269-
lambda t: "[%s](%s)" % (t, os.path.join("..", t + ".md")),
270-
filter(lambda t: not t in ["strategy", "tactical"], item["tags"]))
271-
file.write("Tags: " + ", ".join(linked_tags) + "\n\n")
269+
if len(item["tags"]) > 0:
270+
linked_tags = map(
271+
lambda t: "[%s](%s)" % (t, os.path.join("..", t + ".md")),
272+
filter(lambda t: not t in ["strategy", "tactical"],
273+
item["tags"]))
274+
file.write("Tags: " + ", ".join(linked_tags) + "\n\n")
272275
file.write("\n".join([t["text"] for t in item["texts"]]))
273276
file.write("\n\n")
274277
file.write("## Source code references\n\n")

X2WOTCCommunityHighlander/Localization/X2WOTCCommunityHighlander.int

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
VersionFormat="v%MAJOR.%MINOR.%PATCH"
33

44
RequiredNotFound="NOT LOADED - REQUIRED"
5-
ExpectedNotFound="NOT LOADED - EXPECTED"
6-
NotExpectedNotFound="Optional"
75

86
VersionMismatches="- Version Mismatches"
97
WarningsLabel="- Warnings"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/// HL-Docs: ref:ComponentVersions
2+
class CHCoreVersion extends Object;
3+
4+
var int MajorVersion;
5+
var int MinorVersion;
6+
var int PatchVersion;
7+
var string Commit;
8+
9+
// AUTO-CODEGEN: Version-Info
10+
defaultproperties
11+
{
12+
MajorVersion = 1;
13+
MinorVersion = 20;
14+
PatchVersion = 0;
15+
Commit = "RC1";
16+
}

0 commit comments

Comments
 (0)