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

Example in the readme not working #4

Open
Nordes opened this issue Sep 28, 2018 · 2 comments
Open

Example in the readme not working #4

Nordes opened this issue Sep 28, 2018 · 2 comments

Comments

@Nordes
Copy link

Nordes commented Sep 28, 2018

Hi, the example within the readme are not working.

However, I would like to add that for activity diagrams (vertical line things), we can also use those icons. For example:

@startuml My Sample
  title Some kind of title
  !include <font-awesome/common>

  ' https://github.com/Roemer/plantuml-office (basically the ICONURL in VS code need a local URI)
  !define ICONURL ../plantuml-office/office2014
  !include ICONURL/Devices/workstation_pc.puml
  !include ICONURL/Servers/mainframe_host.puml

  participant "<$workstation_pc>" as pc
  participant "<$device_printer>" as printer

  pc -> printer: Print a document
  printer -> pc: Ok!

@enduml
@Roemer
Copy link
Owner

Roemer commented Aug 13, 2019

Hi
I fixed the examples. The problem was that !include <font-awesome/common> must be changed to !include <tupadr3/common>.

Your example works like this:

@startuml
title Some kind of title
  !include <tupadr3/common>

  ' https://github.com/Roemer/plantuml-office (basically the ICONURL in VS code need a local URI)
  !define ICONURL https://raw.githubusercontent.com/Roemer/plantuml-office/master/office2014
  !include ICONURL/Devices/workstation_pc.puml
  !include ICONURL/Servers/mainframe_host.puml

  participant "<$workstation_pc>" as pc
  participant "<$device_printer>" as printer

  pc -> printer: Print a document
  printer -> pc: Ok!
@enduml

Can you please try again?

Also using remote urls works great in VSCode when using
https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml

@Potherca
Copy link

Easy only example (using http://www.plantuml.com/plantuml/)
image
🆚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants