-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where arguments in YAML file did not work any longer (#82)
- Loading branch information
Laurent Franceschetti
committed
Aug 9, 2023
1 parent
73b261e
commit 6834087
Showing
10 changed files
with
181 additions
and
18 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
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
import requests | ||
import logging | ||
from packaging.version import Version | ||
|
||
import mkdocs | ||
|
||
|
||
|
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,39 @@ | ||
# Mermaid test (simple, with formatting of diagrams) | ||
|
||
## Mermaid usual | ||
This is a test of Mermaid: | ||
|
||
```mermaid | ||
graph TD | ||
hello --> world | ||
world --> world2 | ||
``` | ||
|
||
> If you don't see a graph here, it's broken. | ||
## Git Graph | ||
This is a test of Git Graph: | ||
|
||
```mermaid | ||
gitGraph | ||
commit | ||
commit | ||
branch develop | ||
checkout develop | ||
commit | ||
commit | ||
checkout main | ||
merge develop | ||
commit | ||
commit | ||
``` | ||
|
||
|
||
## Normal fences | ||
This is usual fenced code (with no highlighting) | ||
|
||
```python | ||
for page in pages: | ||
page.read() | ||
``` | ||
|
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,31 @@ | ||
// js/extra.js | ||
function myMermaidCallbackFunction(id) { | ||
var d = new Date(); | ||
var now = d.toLocaleTimeString(); | ||
console.log('Hello, this is myMermaidCallbackFunction', id, now); | ||
} | ||
|
||
|
||
// import uml from "./uml" | ||
|
||
// (() => { | ||
// const onReady = function(fn) { | ||
// if (document.addEventListener) { | ||
// document.addEventListener("DOMContentLoaded", fn) | ||
// document.addEventListener("DOMContentSwitch", fn) | ||
// } else { | ||
// document.attachEvent("onreadystatechange", () => { | ||
// if (document.readyState === "interactive") { | ||
// fn() | ||
// } | ||
// }) | ||
// } | ||
// } | ||
|
||
// onReady(() => { | ||
|
||
// if (typeof mermaid !== "undefined") { | ||
// uml("mermaid") | ||
// } | ||
// }) | ||
// })() |
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,25 @@ | ||
# Second page | ||
Testing special cases | ||
|
||
## Wrong diagram | ||
|
||
```mermaid | ||
graph FG | ||
A[Client] | ||
``` | ||
|
||
## Correct | ||
|
||
```mermaid | ||
graph TD | ||
A[Client] --> B[Load Balancer] | ||
``` | ||
|
||
## Other | ||
|
||
```mermaid | ||
graph TD | ||
A[Client] --> B[Load Balancer] | ||
B --> C[Server01] | ||
B --> D[Server02] | ||
``` |
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,25 @@ | ||
site_name: Mermaid test (simple, with formatting) | ||
site_description: Test for mermaid | ||
docs_dir: docs # indispensable or readthedocs will fail | ||
theme: readthedocs # you may want to try windmill? | ||
|
||
|
||
nav: | ||
- Main: index.md | ||
- Second: second.md | ||
|
||
plugins: | ||
- search | ||
- mermaid2: | ||
version: '10.1.0' | ||
arguments: | ||
theme: 'dark' | ||
themeVariables: | ||
primaryColor: '#BB2528' | ||
primaryTextColor: '#fff' | ||
primaryBorderColor: '#7C0000' | ||
lineColor: '#F8B229' | ||
secondaryColor: '#006100' | ||
tertiaryColor: '#fff' | ||
|
||
|
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