Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenno committed Jan 21, 2023
1 parent 099d1be commit f1d2840
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,52 @@ image:https://img.shields.io/maintenance/yes/{year}[Maintenance Status]

Generation of PlantUML diagrams in a https://github.com/features/actions[GitHub Action] using the official https://hub.docker.com/r/plantuml/plantuml[plantuml/plantuml] Docker image.

== 🎚️ Inputs

`format`::
*Required.*
The format of the output images that will be generated in the workspace
[
`png` (Default), `svg`,
`eps`, `eps:text`, `pdf`,
`vdx`, `xmi`, `scxml`,
`html`,
`txt`, `utxt`,
`latex`, `latex:nopreamble`,
`braille`
]. +
See also: https://plantuml.com/command-line#458de91d76a8569c[PlantUML Command Line: Types of Output File].
`pattern`::
*Required.*
The pattern of files/dirs that will be processed.
It can include `\*`, `\**`, and `?`.
Example patterns are:
`\**.puml` (Default),
`doc/*.pu`. +
See also: https://plantuml.com/command-line#b0bd0c28426e3c8d[PlantUML Command Line: Wildcards].

== 🖱️ Usage

.Minimal
[source,yml]
----
include::examples/plantuml.yml[lines="14..15"]
----

.Customized
[source,yml]
----
include::examples/plantuml.yml[lines="14..18"]
----

== 🛠️ Example

..github/workflows/plantuml.yml
[source,yml]
----
include::examples/plantuml.yml[]
----

== 📃 Code of Conduct

Please note that this project is release with the link:CODE_OF_CONDUCT.adoc[Contributor Covenant Code of Conduct].
Expand Down
24 changes: 24 additions & 0 deletions examples/plantuml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Generate PlantUML Diagrams
on:
push:
paths: [ "**.puml" ]
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Generate PlantUML Diagrams
uses: rotaract/plantuml-action@v1
with:
format: pdf
pattern: "docs/**.puml"

- name: Upload Diagrams
uses: actions/upload-artifact@v3
with:
name: diagrams
path: "**.pdf"

0 comments on commit f1d2840

Please sign in to comment.