docToolchain / docToolchain/docker-image

doctoolchain-azure-devops-pipeline does not support C4 PlantUml elements when generating a Site

Open
#62 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
4
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I've this **asciidoc** page:
```
:jbake-title: System Scope and Context
:jbake-type: page_toc
:jbake-status: published
:jbake-menu: arc42
:jbake-order: 3
:filename: /chapters/03_system_scope_and_context.adoc
ifndef::diagramsDir[:diagramsDir: ../diagrams]

text

plantuml::{diagramsDir}/container.puml[]

text
```

And the **PlantUml** looks like this:
```
@startuml Test
!include

Boundary(system, "System") {
Container(backend, "Back End")
Container_Ext(frontEnd, "Front End")
}

@enduml
```

And in VS Code this is rendered correctly:
![image](https://github.com/user-attachments/assets/8f8458e4-ed28-4485-b150-4580d9d62bb6)

But when executing this command:
``` ps
docker run --rm --entrypoint /bin/bash -it -v %cd%:/project docker.io/doctoolchain/doctoolchain-azure-devops-pipeline:v3.3.1 -c "doctoolchain . generateSite -PmainConfigFile=config/docToolchainConfig.groovy --warning-mode=none --no-daemon && exit"
```

I get this error:
```
Container(backend, "Back End")
^^^^^
Function not found Container
```

And the generated html page looks like this:
![image](https://github.com/user-attachments/assets/40c67438-aa0c-421a-90a6-95b6efd5985d)

---

When using the doctoolchain docker image, it works fine:
```docker run --rm --entrypoint /bin/bash -it -v %cd%:/project docker.io/doctoolchain/doctoolchain:v3.3.1 -c "doctoolchain . generateSite -PmainConfigFile=config/docToolchainConfig.groovy --warning-mode=none --no-daemon && exit"
```

![image](https://github.com/user-attachments/assets/6271a83f-9976-407b-911b-ecaa05fab403)

---

A repo to reproduce:
https://github.com/StefH/docToolChain-bug

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.