-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support for UML via PlantUML & sphinxcontrib-plantuml #407
Comments
Unfortunately, plantuml is not in any of the package repos for ubuntu. Also it requires adding java to the stack (and figuring out which java runtime it likes the most) for those reasons I'm going to lean toward not adding plantuml support. If it were a package that I could just apt-get install without having to find some PPA from some third party, it would be easier for me to accept. |
PlantUML is just a jar file. It runs fine on Ubuntu with the default Ubuntu (webdlmon-backend-ve)jeff@jlconsulting~/jlconsulting/clients/ucsd_anf/wavefront/doc On Thu, Jun 20, 2013 at 5:31 PM, Chris McDonald [email protected]:
73 de n1ywb |
Being just a jar file means I have to put it somewhere, tell it to dump its logs/etc other places, and do that all in chef so that I can rebuild the server easily, rather than just adding a package name to the current chef scripts. |
@wraithan anything change since then ? |
@wraithan it will be very cool to add this feature : Diagram is easier to understand |
+1 |
An alternative is to use the url passing the plantuml code as parameter |
It seems nothing has changed since then, this still isn't a supported package by ubuntu and I'm not even seeing a PPA for this either. I'm -1 on installing arbitrary packages from source, this isn't a high enough priority to play package manager for. Without someone maintaining this properly, it's bound to cause us a headache. |
+1 |
1 similar comment
+1 |
Github seriously needs a vote button :/ If you have nothing to add to this conversation, please refrain from pinging maintainers with Nothing has changed here, there is still no maintained package that is easily installable on Ubuntu 14.04. As our time is limited, supporting something like this from source is near the bottom of our expansive list. We'd be happy to consider support plantuml if anyone wants to take on maintaining a PPA for Ubuntu. At this point we don't have much time to spare. |
PPA here https://launchpad.net/~isage-dna/+archive/ubuntu/plantuml On Tue, Jan 26, 2016 at 11:46 AM, Anthony [email protected] wrote:
73 de n1ywb |
@agjohnson, what actions should be done by community to solve this issue? As I understand n1ywb provides PPA. |
Feel free to open a PR at https://github.com/rtfd/readthedocs-docker-images for the base image Note: we will begin testing against 16.04 soon, for it's April releast, so this PPA should be able to support 16.04 as well or we'll have to drop it when we do the upgrade. |
I'd love this too... I've never used Docker, but maybe this link will help someone who has the knowledge to make a proper PR to the readthedocks-docker-images repo: https://hub.docker.com/r/grieve/sphinx-plantuml/~/dockerfile/ |
It looks like there is now debian package for stretch (debian testing): https://packages.debian.org/stretch/plantuml @agjohnson Is it possible to use their package? |
Ubuntu 16.10 has the plantuml package in their repos as well. As far as I can tell you are only using LSD releases for your rtd docker images. However, would it be possible to add this package to the 16.04 installation? (via pinning or download & dpkg) I think this would make some documentation even more awesome! 🍻 (I'd be willing to create a PR if you'd agree to the above suggestion ...) |
For me it is not necessary to provide plantuml itself. It should be enough to make java available. The sphinxcontrib.plantuml extension has a parameter called "plantuml", which defines the complete command to call plantuml (e.g. java -jar my_tools/plantuml.jar). You could provide the plantuml.jar file inside the docs repository and set the plantuml config var inside conf.py like this From the repository owners point of view it is not so nice to keep tools inside the repo, but it may be ok. Does somebody see any drawbacks for this solution? |
I've made a PR for docker images which installs plantuml from repos: |
ping @agjohnson |
@agjohnson
this addition would be really appreciated! |
Any news about this? |
|
@humitos is there any known timeline to know when the image with |
@jirikuncar I don't know. But now, there is an option in the yaml to select the build image you want to use. See readthedocs/readthedocs-build#33 and #3339 (that PR and the related ones to that option, will be merged soon) |
Closing this as the latest image does have usable plantuml, our 18.04 image has an updated version and will be released soon. |
Thank you, everybody, for this, especially @agjohnson for seeing it through after all these years. Today my cup runneth over. |
It would be totally awesome if readthedocs supported UML using the radical UML tool PlantUML and the Sphinx extension sphinxcontrib-plantuml.
PlantUML is the only UML tool I've ever used that I didn't hate, probably because it's not a GUI, you create UML diagrams using a straightforward textual language.
sphinxcontrib-plantuml lets you inline plantuml source code right in your .rst files. Here's a trivial sequence diagram.
http://plantuml.sourceforge.net/
https://pypi.python.org/pypi/sphinxcontrib-plantuml
Here's a complete example in a Sphinx doc
The text was updated successfully, but these errors were encountered: