Roemer / plantuml-office

Office Icons for PlantUML
MIT License
99 stars 22 forks source link

Example in the readme not working #4

Open Nordes opened 5 years ago

Nordes commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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