Skip to content

Commit

Permalink
Installing Java on RTD job (#859)
Browse files Browse the repository at this point in the history
* Installing Java on RTD job
* Cleaning the code
* Updating poetry configs
  • Loading branch information
danwos authored Feb 8, 2023
1 parent 55daed1 commit 3dc732a
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 169 deletions.
9 changes: 8 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ python:

build:
os: ubuntu-22.04
apt_packages:
- default-jdk
- graphviz
tools:
python: "3.11"
python: "3.11"
jobs:
pre_create_environment:
- echo "DOT details"
- which dot
4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,9 @@
needs_id_required = False
# needs_css = "dark.css"

local_plantuml_path = os.path.join(os.path.dirname(__file__), "utils", "plantuml.jar")
local_plantuml_path = os.path.join(os.path.dirname(__file__), "utils", "plantuml-1.2022.14.jar")

if on_rtd:
# Deactivated using rtd plantuml version as it looks quite old.
# plantuml = 'java -Djava.awt.headless=true -jar /usr/share/plantuml/plantuml.jar'
plantuml = f"java -Djava.awt.headless=true -jar {local_plantuml_path}"
else:
plantuml = f"java -jar {local_plantuml_path}"
Expand Down
Binary file not shown.
Loading

0 comments on commit 3dc732a

Please sign in to comment.