• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision88e0fcfa9ae2cc15fd8c3db471bb7618b458ee1a (tree)
l'heure2024-04-29 18:54:59
AuteurAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Message de Log

RTD: TRY to use a modern plantUML ...(started)

Change Summary

Modification

diff -r ab3fcb325f7e -r 88e0fcfa9ae2 .readthedocs.yaml
--- a/.readthedocs.yaml Sun Apr 28 20:14:17 2024 +0200
+++ b/.readthedocs.yaml Mon Apr 29 11:54:59 2024 +0200
@@ -10,7 +10,13 @@
1010 tools:
1111 python: "3.11"
1212 apt_packages:
13- - python3-sphinxcontrib.plantuml
13+ # python3-sphinxcontrib.plantuml install an old one version.
14+ # Better to replace it by pip, so the requerments-file, which is already done
15+ # - python3-sphinxcontrib.plantuml
16+ jobs:
17+ post_install:
18+ - mkdir -p ${READTHEDOCS_VIRTUALENV_PATH}/libexec
19+ - curl -o ${READTHEDOCS_VIRTUALENV_PATH}/libexec/plantuml.jar -L https://github.com/plantuml/plantuml/releases/download/v1.2024.4/plantuml-1.2024.4.jar
1420
1521 # Build documentation in the docs/ directory with Sphinx
1622 sphinx:
diff -r ab3fcb325f7e -r 88e0fcfa9ae2 conf.py
--- a/conf.py Sun Apr 28 20:14:17 2024 +0200
+++ b/conf.py Mon Apr 29 11:54:59 2024 +0200
@@ -72,13 +72,22 @@
7272
7373 # plantUML
7474 #---------
75+
7576 extensions.append('sphinxcontrib.plantuml')
7677 if on_rtd:
77- plantuml = 'java -Djava.awt.headless=true -jar /usr/share/plantuml/plantuml.jar'
78+ if False: #old
79+ plantuml = 'java -Djava.awt.headless=true -jar /usr/share/plantuml/plantuml.jar'
80+ else:
81+ # in `.readthedocs.yaml`
82+ # post_install:
83+ # - curl -o ${READTHEDOCS_VIRTUALENV_PATH}/libexec/plantuml.jar -L https://github.com/plantuml/....
84+ import os
85+ _path=os.environ['READTHEDOCS_VIRTUALENV_PATH'] + '/libexec/'
86+ plantuml = f'java -Djava.awt.headless=true -jar {_path}plantuml.jar'
7887 else:
7988 # plantuml = 'java -Djava.awt.headless=true -jar /Users/albert/Apps/PlantUML/libexec/plantuml-RTfD.jar' #plantuml.1.2020.2.jar
80- plantuml = 'plantuml'
81-
89+# plantuml = 'plantuml'
90+ plantuml = 'java -Djava.awt.headless=true -jar /Users/albert/Apps/PlantUML/libexec/plantuml-1.2024.4.jar' # NEW
8291
8392 ##plantuml_output_format='svg_img'
8493 ## dito only can be png?