Skip to content

Commit 728b311

Browse files
authored
fix(docs): fix icon and Mermaid support
* remove the broken stuff * add mermaid support on all pages * add mermaid to the local js stuff
1 parent 5704c59 commit 728b311

File tree

4 files changed

+62
-4
lines changed

4 files changed

+62
-4
lines changed

docs/Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ source "https://rubygems.org"
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
1111
gem "jekyll", "~> 3.8.5"
12-
# for mermaid
13-
gem "jekyll-mermaid-diagrams"
1412

1513
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1614
gem "just-the-docs"

docs/_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ readme_index:
4141
remove_originals: true
4242
with_frontmatter: true
4343

44-
gems: [jekyll-mermaid-diagrams]
45-
4644
# Other Variables
4745
contributors: '[contributors](https://github.com/T-Systems-MMS/phonebook/graphs/contributors)'
4846
current_issues: '[current Issues](https://github.com/T-Systems-MMS/phonebook/issues)'

docs/_layouts/default.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ <h2 class="text-delta">Table of contents</h2>
8989
</div>
9090
</div>
9191
</div>
92+
<script src="assets/js/mermaid.8.5.0.js"></script>
93+
<script>
94+
var config = {
95+
startOnLoad:true,
96+
theme: 'forest',
97+
flowchart:{
98+
useMaxWidth:false,
99+
htmlLabels:true
100+
}
101+
};
102+
mermaid.initialize(config);
103+
window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid'));
104+
</script>
92105

93106
</body>
94107
</html>

docs/assets/js/mermaid.8.5.0.js

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)