Merge branch 'main' into reveal_dist

This commit is contained in:
Lars Weiler
2025-12-25 13:42:28 +01:00
committed by GitHub
7 changed files with 15771 additions and 5 deletions
+4
View File
@@ -170,6 +170,10 @@ td {
text-align: justify; text-align: justify;
} }
ul {
list-style-type: square;
}
ul li::marker { ul li::marker {
color: #2aa6da; color: #2aa6da;
} }
+11 -1
View File
@@ -11,9 +11,14 @@ bd = build.Build(conf)
# Download the text files: # Download the text files:
dl.download_edition("N") dl.download_edition("N")
dl.download_edition("E")
dl.download_edition("A")
dl.download_edition("NE")
dl.download_edition("EA")
dl.download_edition("NEA")
# Download additional files: # Download additional files:
dl.download_question_metadata() # dl.download_question_metadata() # (now constant file metadata3b.json)
dl.download_photos() dl.download_photos()
dl.download_pictures() dl.download_pictures()
dl.download_includes() dl.download_includes()
@@ -23,4 +28,9 @@ dl.download_content()
# Build Everything: # Build Everything:
bd.build_website() bd.build_website()
bd.build_edition("N") bd.build_edition("N")
bd.build_edition("E")
bd.build_edition("A")
bd.build_edition("NE")
bd.build_edition("EA")
bd.build_edition("NEA")
bd.build_assets() bd.build_assets()
+15752
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -53,7 +53,7 @@ class Build:
question_template = self.env.get_template(template_file) question_template = self.env.get_template(template_file)
with (self.config.p_data / "metadata.json").open() as file: with (self.config.p_data / "metadata3b.json").open() as file:
metadata = json.load(file) metadata = json.load(file)
question = None question = None
+1 -1
View File
@@ -33,7 +33,7 @@ questions = parse_katalog()
def question_stub(input): def question_stub(input):
"""Combines the original question dataset from BNetzA with our internal metadata""" """Combines the original question dataset from BNetzA with our internal metadata"""
with open("data/metadata.json") as metadata_file: with open("data/metadata3b.json") as metadata_file:
metadata = json.load(metadata_file) metadata = json.load(metadata_file)
number = metadata[f"{input}"]["number"] # Fragennummer z.B. AB123 number = metadata[f"{input}"]["number"] # Fragennummer z.B. AB123
+1 -1
View File
@@ -45,7 +45,7 @@ def filter_shuffle_answers(seq):
def question_stub(input): def question_stub(input):
"""Combines the original question dataset from BNetzA with our internal metadata""" """Combines the original question dataset from BNetzA with our internal metadata"""
with open("data/metadata.json") as metadata_file: with open("data/metadata3b.json") as metadata_file:
metadata = json.load(metadata_file) metadata = json.load(metadata_file)
number = metadata[f"{input}"]["number"] # Fragennummer z.B. AB123 number = metadata[f"{input}"]["number"] # Fragennummer z.B. AB123
+1 -1
View File
@@ -36,7 +36,7 @@ def test_question_translation_html():
} }
def test_function(input): def test_function(input):
with open("data/metadata.json") as file: with open("data/metadata3b.json") as file:
metadata = json.load(file) metadata = json.load(file)
return metadata[f"{input}"].get("number") return metadata[f"{input}"].get("number")