Explorar el Código

add mermaid to mdbook + gantt chart for project release cycle

x hace 3 años
padre
commit
83102a2726
Se han modificado 4 ficheros con 20 adiciones y 0 borrados
  1. 1 0
      .github/workflows/book.yml
  2. 1 0
      doc/README.md
  3. 4 0
      doc/book.toml
  4. 14 0
      doc/src/architecture/architecture.md

+ 1 - 0
.github/workflows/book.yml

@@ -35,6 +35,7 @@ jobs:
                 export PATH="$HOME/.cargo/bin:$PATH"
                 cargo install --git "https://github.com/lzanini/mdbook-katex"
                 cargo install --git "https://github.com/badboy/mdbook-toc"
+                cargo install --git "https://github.com/badboy/mdbook-mermaid"
                 sudo apt -y install make
 
             - name: Compile and publish the book

+ 1 - 0
doc/README.md

@@ -12,4 +12,5 @@ For the mdbook-katex backend run:
 ```
 cargo install --git "https://github.com/lzanini/mdbook-katex"
 cargo install --git "https://github.com/badboy/mdbook-toc"
+cargo install --git "https://github.com/badboy/mdbook-mermaid"
 ```

+ 4 - 0
doc/book.toml

@@ -10,6 +10,7 @@ copy-fonts = true
 default-theme = "ayu"
 preferred-dark-theme = "ayu"
 theme = "theme"
+additional-js = ["mermaid.min.js", "mermaid-init.js"]
 
 [output.html.playground]
 runnable = false
@@ -22,3 +23,6 @@ runnable = false
 command = "mdbook-toc"
 renderer = ["html"]
 
+[preprocessor.mermaid]
+command = "mdbook-mermaid"
+

+ 14 - 0
doc/src/architecture/architecture.md

@@ -47,6 +47,20 @@ Deferred (future):
 
 ## Release Cycle
 
+```mermaid
+gantt
+    title Release Cycle
+    dateFormat  DD-MM-YYYY
+    axisFormat  %m-%y
+    section Phases
+    Dcon0            :done, d0, 01-01-2022, 01-04-2022
+    Dcon1            :      d1, after d0,   23-12-2022
+    Dcon2            :      d2, 23-08-2022, 23-02-2023
+    Dcon3            :      d3, after d2,   60d
+    Dcon4            :      d4, after d3,   14d
+    Dcon5            :      d5, after d4,   7d
+```
+
 <table>
     <tr>
         <th>Phase</th>