Skip to content

Commit 3a6cded

Browse files
committed
Fix links
1 parent 2fe5e5a commit 3a6cded

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
from bo4e_cli.diff.diff import diff_schemas
2727
from bo4e_cli.diff.matrix import create_compatibility_matrix, create_graph_from_changes, get_path_through_di_path_graph
2828
from bo4e_cli.edit.update_refs import update_references_all_schemas
29-
from bo4e_cli.io.changes import write_changes
30-
from bo4e_cli.io.console import CONSOLE
3129
from bo4e_cli.io.git import get_last_n_tags
3230
from bo4e_cli.io.github import download_schemas
3331
from bo4e_cli.io.matrix import write_compatibility_matrix_csv
@@ -340,7 +338,8 @@ def setup(app):
340338

341339
# Create UML diagrams in plantuml format. Compile these into svg files into the _static folder.
342340
# See docs/uml.py for more details.
343-
if release != "local":
341+
release_version = Version.from_str(release)
342+
if not release_version.is_dirty():
344343
uml.LINK_URI_BASE = f"https://bo4e.github.io/BO4E-python/{release}"
345344
_exec_plantuml = Path(__location__) / "plantuml.jar"
346345
_network, _namespaces_to_parse = uml.build_network(Path(module_dir), uml.PlantUMLNetwork)
@@ -356,7 +355,6 @@ def setup(app):
356355
compatibility_matrix_output_file = Path(__file__).parent / "_static/tables/compatibility_matrix.csv"
357356
gh_token = os.getenv("GITHUB_ACCESS_TOKEN") or os.getenv("GITHUB_TOKEN") or get_access_token_from_cli_if_installed()
358357

359-
release_version = Version.from_str(release)
360358
compiling_from_release_workflow = not release_version.is_dirty()
361359
last_versions = get_last_n_tags(
362360
n=0,

0 commit comments

Comments
 (0)