forked from intel/cicd-repo-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 📚 Fix mermaid diagram generation on Ubuntu
Problem: - Ubuntu 23.10 and later has security rules around running chrome, which means mermaid-cli can't generate diagrams without a workaround. - See mermaid-js/mermaid-cli#730 Solution: - Provide a puppeteer_config.json file in the docs directory which can be passed to mmdc by specifying an attribute in AsciiDoctor markdown. - See https://docs.asciidoctor.org/diagram-extension/latest/diagram_types/mermaid/
- Loading branch information
Showing
10 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ jobs: | |
node-version: 20 | ||
- name: Install Mermaid | ||
run: | | ||
sudo npm install -g @mermaid-js/[email protected].0 | ||
sudo npm install -g @mermaid-js/[email protected].1 | ||
- name: Install asciidoctor | ||
run: | | ||
sudo apt update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
|
||
- name: Install Mermaid | ||
run: | | ||
sudo npm install -g @mermaid-js/[email protected].0 | ||
sudo npm install -g @mermaid-js/[email protected].1 | ||
- name: Install asciidoctor | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"args": ["--no-sandbox"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Ben Deane <[email protected]> | |
:rouge-style: base16.solarized | ||
:source-language: c++ | ||
:toc: left | ||
:mermaid-puppeteer-config: puppeteer_config.json | ||
|
||
== Introduction | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters