I have a quarto revealjs presentation that uses mermaid diagrams. I wanted to publish it to quartoPub. I have the following yaml header (so external dependencies are included in the published presentation):
--- title: "Does Code Quality<br>Even Matter<br>in Data Science?" author: "Russ Hyde" format: revealjs: embed-resources: true standalone: true theme: solarized ---
If I look at the .html file produced (when rendering locally), the mermaid library is embedded in it.
But when I look at the published presentation, the slide that should have a mermaid diagram is blank (aside from the title): https://russhyde.quarto.pub/ds-code-quality-leeds-20230328/#/what-is-code-quality
There are console errors in the browser DevTools:
DevTools failed to load source map: Could not load content for chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for https://russhyde.quarto.pub/ds-code-quality-leeds-20230328/reveal.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for https://russhyde.quarto.pub/ds-code-quality-leeds-20230328/mermaid.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
I don't quite understand why the errors arise when the resources (mermaid, reveal etc) should be embedded in the .html
Opening the same .html file locally on the browser works though - the diagram is visible.
Is there a way to just link to external CDN for the required libraries from a revealjs/quarto document?