Skip to content

Commit

Permalink
docs: Disable transparent background
Browse files Browse the repository at this point in the history
This needs a dark/light mode switch first
  • Loading branch information
ewuerger committed Mar 19, 2024
1 parent 1ba655a commit f275c09
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/gen_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def generate_index_images() -> None:
for uuid in diagram_uuids.values():
diag: context.ContextDiagram = model.by_uuid(uuid).context_diagram
with mkdocs_gen_files.open(f"{str(dest / diag.name)}.svg", "w") as fd:
print(diag.render("svg", transparent_background=True), file=fd)
print(diag.render("svg", transparent_background=False), file=fd)


def generate_no_symbol_images() -> None:
Expand All @@ -53,7 +53,7 @@ def generate_no_symbol_images() -> None:
diag.invalidate_cache()
filepath = f"{str(dest / diag.name)} no_symbols.svg"
with mkdocs_gen_files.open(filepath, "w") as fd:
print(diag.render("svg", transparent_background=True), file=fd)
print(diag.render("svg", transparent_background=False), file=fd)


def generate_no_edgelabel_image(uuid: str) -> None:
Expand All @@ -63,7 +63,7 @@ def generate_no_edgelabel_image(uuid: str) -> None:
with mkdocs_gen_files.open(f"{filename}.svg", "w") as fd:
print(
cdiagram.render(
"svg", no_edgelabels=True, transparent_background=True
"svg", no_edgelabels=True, transparent_background=False
),
file=fd,
)
Expand All @@ -77,7 +77,7 @@ def generate_filter_image(
diag.filters = {filter_name}
filename = " ".join((str(dest / diag.name), suffix))
with mkdocs_gen_files.open(f"{filename}.svg", "w") as fd:
print(diag.render("svg", transparent_background=True), file=fd)
print(diag.render("svg", transparent_background=False), file=fd)


def generate_styling_image(
Expand All @@ -90,7 +90,7 @@ def generate_styling_image(
diag.render_styles = styles
filename = " ".join((str(dest / diag.name), suffix))
with mkdocs_gen_files.open(f"{filename}.svg", "w") as fd:
print(diag.render("svg", transparent_background=True), file=fd)
print(diag.render("svg", transparent_background=False), file=fd)


def generate_hierarchy_image() -> None:
Expand All @@ -99,7 +99,7 @@ def generate_hierarchy_image() -> None:
with mkdocs_gen_files.open(f"{str(dest / diag.name)}.svg", "w") as fd:
print(
diag.render(
"svg", include_inner_objects=True, transparent_background=True
"svg", include_inner_objects=True, transparent_background=False
),
file=fd,
)
Expand All @@ -120,7 +120,7 @@ def generate_class_tree_images() -> None:
direction="Right",
partitioning=False,
edgeLabelsSide="ALWAYS_DOWN",
transparent_background=True,
transparent_background=False,
),
file=fd,
)
Expand All @@ -137,7 +137,7 @@ def generate_realization_view_images() -> None:
depth=3,
search_direction="ALL",
show_owners=True,
transparent_background=True,
transparent_background=False,
),
file=fd,
)
Expand All @@ -148,7 +148,7 @@ def generate_data_flow_image() -> None:
data_flow_uuid
).data_flow_view
with mkdocs_gen_files.open(f"{str(dest / diag.name)}.svg", "w") as fd:
print(diag.render("svg", transparent_background=True), file=fd)
print(diag.render("svg", transparent_background=False), file=fd)


generate_index_images()
Expand Down

0 comments on commit f275c09

Please sign in to comment.