Skip to content

Commit

Permalink
Move to mermaid from plantUML.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkalmbach committed May 21, 2024
1 parent 95f856c commit 29f3e99
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
17 changes: 5 additions & 12 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
This configuration only affects single-package Sphinx documentation builds.
"""

import os

import lsst.ts.imsim # noqa
from documenteer.conf.pipelinespkg import * # noqa

Expand All @@ -15,13 +13,8 @@
doxylink = {}


# Support the sphinx extension of plantuml
extensions.append("sphinxcontrib.plantuml") # noqa

# Put the path to plantuml.jar
plantuml_path = (
os.path.expanduser("~/plantuml.jar")
if os.getenv("PATH_PLANTUML") is None
else os.getenv("PATH_PLANTUML")
)
plantuml = f"java -jar {plantuml_path}"
# Support the sphinx extension of mermaid
extensions = [
"sphinxcontrib.mermaid",
"sphinx_automodapi.automodapi",
]
2 changes: 1 addition & 1 deletion doc/developer-guide/developer-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ imsim

This module contains the closed loop methods.

.. uml:: ../uml/imsimClass.uml
.. mermaid:: ../uml/imsimClass.mmd
:caption: Class diagram of ts_imsim.

* **ClosedLoopTask**: Run the imSim based closed loop for AOS.
Expand Down
5 changes: 2 additions & 3 deletions doc/uml/imsimClass.uml → doc/uml/imsimClass.mmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@startuml
package "ts_ofc" #DDDDDD {
classDiagram
namespace ts_ofc {
class OFCCalculation
}

Expand All @@ -10,4 +10,3 @@ CloseLoopTask o-- OpdMetrology
CloseLoopTask *-- ObsMetadata
ImsimCmpt *-- ObsMetadata
ImsimCmpt o-- OpdMetrology
@enduml
6 changes: 6 additions & 0 deletions doc/versionHistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
##################
Version History
##################
-------------
1.5.5
-------------

* Move class diagrams to mermaid from plantUML.

-------------
1.5.4
-------------
Expand Down

0 comments on commit 29f3e99

Please sign in to comment.