#Mkdocs draw.io
1 messages · Page 1 of 1 (latest)
You are most likely missing the mkdocs-drawio plugin. If you need plugins beyond what is available to Techdocs builder you will need to install them.
I did
It is working fine with techdoc cli
But when i open same document in backstage drawio diagram disappeared
I am using this plugin
If I go to generated docs , and open index.html i can drawio diagram rendered
When i open same document inside backstage it disappeared
Does backstage perform any kind if changes of generated document?
Am i using wrong plugin?
Please help
I have raised bug in github
can you check if the script is blocked by CSP?
I copied script in local public folder and reffered from there
But still not working
I even modified the plugin, added script tag with content in place of script referring viewer URL, but result is same , work on tech docs cli but not on backstage
Someone please tell how backstage loads generated techdocs?
basically the renderer removes all links, https://github.com/backstage/backstage/blob/446387a6060a7d920170d12f623ed2263f3f0662/plugins/techdocs/src/reader/transformers/html/hooks/links.ts.
Not sure if anyone has done something like https://github.com/johanneswuerbach/backstage-plugin-techdocs-addon-mermaid/blob/main/README.md for drawio yet
What would be the work around
Any help would be appreciated
Did you check the network tab for any errors?
No error on network and console, seems backstage delete all scripts tags from generated site
Hi Axel, the code you shared is removing link not scripts, it is looking at href attributes not src attributes, there might be another code in backstage doing this