Skip to content

Commit

Permalink
adding draw.io js
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Jul 30, 2024
1 parent fd53617 commit f331b81
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ Hashiqube is a Training / Development Lab for you to practise, learn or demo POC

Hashiqube can be visualized with the diagrams below.

![HashiQube Diagram](images/hashiqube-diagram.png?raw=true "HashiQube Diagram")
### Draw.io Diagram

[filename](images/hashiqube.drawio ':include :type=code')

## Links
* [Hashicorp blog post](https://www.hashicorp.com/resources/hashiqube-a-development-lab-using-all-the-hashicorp-products) <br />
Expand Down
Binary file modified images/hashiqube-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
409 changes: 409 additions & 0 deletions images/hashiqube.drawio

Large diffs are not rendered by default.

Binary file modified images/youtube-hashiqube-the-jedi-devops-lab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
);
}
if (lang === 'drawio') {
if (window.drawioConverter) {
console.log('drawio')
return window.drawioConverter(code)
} else {
return `<div class='drawio-code'>${code}</div>`
}
}
return this.origin.code.apply(this, arguments);
}
}
Expand Down Expand Up @@ -383,6 +391,8 @@
<!-- script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script -->
<script src="//unpkg.com/docsify-slides/dist/docsify-slides.min.js"></script>
<script src="//unpkg.com/docsify-accordion/src/index.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-drawio/viewer.min.js"></script>
<script src='//cdn.jsdelivr.net/npm/docsify-drawio/drawio.js'></script>
<div class="footer"></div>
<div class="progress-bar"></div>
</body>
Expand Down

0 comments on commit f331b81

Please sign in to comment.