Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document plantuml usage #3885

Open
agjohnson opened this issue Mar 30, 2018 · 9 comments
Open

Document plantuml usage #3885

agjohnson opened this issue Mar 30, 2018 · 9 comments
Labels
Accepted Accepted issue on our roadmap Needed: documentation Documentation is required Sprintable Small enough to sprint on

Comments

@agjohnson
Copy link
Contributor

Document how to use sphinxcontrib-plantuml with RTD.

Because X11 isn't exposed through docker, java needs to be called in headless mode. Heck, we can likely set this in our conf.py template as well, so that users have the correct config.

To get it to work, you'll need:

plantuml = 'java -Djava.awt.headless=true -jar /usr/share/plantuml/plantuml.jar'

Also, you need to run the latest image.

@stale
Copy link

stale bot commented Jan 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Jan 10, 2019
@humitos humitos added Accepted Accepted issue on our roadmap and removed Needed: patch A pull request is required Status: stale Issue will be considered inactive soon labels Jan 10, 2019
@danwos
Copy link

danwos commented Nov 15, 2019

Thanks for providing the needed plantuml command 👍

The extension Sphinx-Needs is using plantuml for some stuff and I have just added an installation section how to use it for rtd:
https://sphinxcontrib-needs.readthedocs.io/en/latest/installation.html#install-plantuml

If I find some time, I'll write the needed docs. But unfortunately not in the next days.

So here is the text as screenshot. For the latest version (and text to copy) see link above.
image

@humitos humitos added the Sprintable Small enough to sprint on label Jan 25, 2020
@CThuleHansen
Copy link

CThuleHansen commented May 26, 2020

I cannot seem to get this to work on readthedocs since I get the error:
ModuleNotFoundError: No module named 'sphinxcontrib.plantuml' when it is building on rtd

@stsewd
Copy link
Member

stsewd commented May 26, 2020

@CThuleHansen you need to install the extension on rtd, see https://docs.readthedocs.io/en/stable/guides/specifying-dependencies.html

@CThuleHansen
Copy link

@stsewd thank you! It works now.

@danwos
Copy link

danwos commented Sep 12, 2022

Java (and therefore plantuml) seems to be not installed, when using the build-commands feature.
I'm also not allowed to use apt-get to install it.

The "apt_packages" config option seems not to be taken into account.

@humitos
Copy link
Member

humitos commented Sep 12, 2022

Hi @danwos! You are correct. build.commands does not support using build.apt_packages yet. I'm not sure it will be supported in the future since the idea of build.commands is to not run anything on behalf of the user. I'd assume that we will allow people to run sudo apt-get install instead, when we have a more isolated build system.

Please, if you have the time, consider opening an issue for this so we track it independently from the plantuml one.

@danwos
Copy link

danwos commented Sep 12, 2022

Thanks for the fast answer.
I have created an extra issue: #9599

@humitos
Copy link
Member

humitos commented Jan 30, 2023

In this other issue #9958 (comment), there is an updated version about how to use PlantUML. It also uses a local version of PlantUML, so it can be the latest one if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Needed: documentation Documentation is required Sprintable Small enough to sprint on
Projects
None yet
Development

No branches or pull requests

5 participants