Skip to content

Commit

Permalink
docs: switch to local plantuml rendering (#3304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius authored Oct 19, 2023
1 parent d3aa69f commit 27acb1f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pull-request-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/setup-python@v4
with:
python-version: 3.9
Expand Down
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version: 2
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
apt_packages:
- "graphviz"
- "default-jdk"
sphinx:
configuration: docs/conf.py

Expand Down
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# ones.
extensions = [
"cheatsheet",
"plantweb.directive",
"sphinxcontrib.plantuml",
"sphinx_click",
"sphinx_copybutton",
"sphinx_rtd_theme",
Expand All @@ -51,7 +51,9 @@
"sphinx_design",
]

# Plantweb configuration
# Plantuml configuration
local_plantuml_path = os.path.join(os.path.dirname(__file__), "utils", "plantuml-asl-1.2023.11.jar")
plantuml = f"java -Djava.awt.headless=true -jar {local_plantuml_path}"
plantweb_defaults = {"format": "svg"}

# Add any paths that contain templates here, relative to this directory.
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/services/services-architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ System Context

Person(logged_in, "Logged-In user")
Person(cli, "Renku CLI", $sprite="bash")
System(renku, "", $link="../reference/services/services-architecture.html#container-diagram", $sprite="img:https://renku.readthedocs.io/en/add-architecture-diagram/_static/icons/renku_logo.png{scale=0.2}")
System(renku, "", $link="../reference/services/services-architecture.html#container-diagram", $sprite="img:https://renku.readthedocs.io/en/latest/_static/icons/renku_logo.png{scale=0.2}")
System(gitlab, "Gitlab", $sprite="gitlab")
System(keycloak, "Keycloak", $sprite="img:https://renku.readthedocs.io/en/add-architecture-diagram/_static/icons/keycloak_logofinal_1color.png{scale=0.2}")
System(keycloak, "Keycloak", $sprite="img:https://renku.readthedocs.io/en/latest/_static/icons/keycloak_logofinal_1color.png{scale=0.2}")
System(k8s, "Kubernetes", $sprite="kubernetes")
SystemDb(s3, "S3")
SystemDb(azure_blob, "Azure Blob")
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plantweb==1.2.1
sphinxcontrib-plantuml==0.26
sphinx>=4.1
sphinxcontrib-mermaid==0.9.2
sphinxcontrib-napoleon==0.7
Expand Down
Binary file added docs/utils/plantuml-asl-1.2023.11.jar
Binary file not shown.

0 comments on commit 27acb1f

Please sign in to comment.