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 20, 2024
1 parent 95f856c commit 32800db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 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
4 changes: 2 additions & 2 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 Down

0 comments on commit 32800db

Please sign in to comment.