Skip to content

Commit

Permalink
Merge branch 'oasis-tcs:xacml-4.0-core-spec' into xacml-4.0-core-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanger authored Sep 28, 2024
2 parents 4f64ecb + 1c76007 commit 5f2b1eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM pandoc/extra:latest-ubuntu
LABEL org.opencontainers.image.description="This image adds Graphviz / PlantUML to the official pandoc/extra image in order to support Graphviz / PlantUML diagrams in pandoc generation (esp. for GitHub Actions)."
RUN apt-get update && apt-get install default-jre graphviz plantuml -y && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
18 changes: 11 additions & 7 deletions xacml-v4.0-csd01.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@ For complete copyright information please see the full Notices section in an App

Here is a customized command line which will generate HTML from this markdown file (named `xacml-v4.0-csd01.md`):

_In order to generate the diagrams, Graphviz and PlantUML must be installed first. (For example with this command on Linux Debian/Ubuntu: `$ sudo apt install graphviz plantuml` )_

```shell
pandoc -f gfm -t html xacml-v4.0-csd01.md -c https://docs.oasis-open.org/templates/css/markdown-styles-v1.7.3a.css --toc --toc-depth=5 -s --lua-filter diagram.lua -o xacml-v4.0-csd01.html --metadata title="eXtensible Access Control Markup Language (XACML) Version 4.0"
```
```shell
pandoc -f gfm -t html xacml-v4.0-csd01.md -c https://docs.oasis-open.org/templates/css/markdown-styles-v1.7.3a.css --toc --toc-depth=5 -s --lua-filter diagram.lua --embed-resources -o xacml-v4.0-csd01.html --metadata title="eXtensible Access Control Markup Language (XACML) Version 4.0"
```
**N.B.:** before running this command, you must either install Pandoc, Graphviz and PlantUML on your system; or else simply use Docker with the following shell alias:
```
alias pandoc='docker run --rm --volume "$(pwd):/data" cdang/pandoc-plantuml'
```
_The Dockerfile (named `Dockerfile`) of the docker image used in the alias above is provided with this markdown file for your convenience if you wish to build it yourself._

OASIS staff are currently using pandoc 3.0 from https://github.com/jgm/pandoc/releases/tag/3.0.

Expand Down Expand Up @@ -787,10 +790,11 @@ These are described in the following sub-sections.

<!-- ![policy language model](images/PolicyLanguageModel.png) -->

```plantuml {width=60% }
```plantuml
@startuml
skinparam monochrome true
skinparam classFontSize 14
skinparam classFontName Arial
skinparam classFontSize 18
hide circle
'skinparam linetype ortho
Expand Down

0 comments on commit 5f2b1eb

Please sign in to comment.