You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add or remove require statements to adjust the language+plugin support required in your UI.
Those paths exist in your project's node_modules folder when prsimjs is installed.
To use this file, follow these steps:
In your supplemental-ui folder, create the js folder.
In the js folder, create the vendor folder.
In the vendor folder, create the file prism.bundle.js.
In the supplemental-ui/partials folder, make sure you have a copy of the head-styles.hbs and footer-scripts.hbs partials from the Antora Default UI.
In the supplemental-ui/css folder, add a copy of the PrismJS theme that you want to use, from node_modules/prismjs/themes.
In the supplemental-ui/partials/head-styles.hbs file, add the line: <link rel="stylesheet" href="{{{uiRootPath}}}/css/prism.css">.
In the supplemental-ui/partials/footer-scripts.hbs file, add the line: <script async src="{{{uiRootPath}}}/js/vendor/prism.js"></script>
...
The text was updated successfully, but these errors were encountered:
See: https://antora.zulipchat.com/#narrow/stream/282400-users/topic/pygments.20issue.20to.20watch
...
Here's a sample Prism.js vendor wrapper.:
Add or remove require statements to adjust the language+plugin support required in your UI.
Those paths exist in your project's
node_modules
folder when prsimjs is installed.To use this file, follow these steps:
supplemental-ui
folder, create the js folder.prism.bundle.js
.head-styles.hbs
andfooter-scripts.hbs
partials from the Antora Default UI.node_modules/prismjs/themes
.supplemental-ui/partials/head-styles.hbs
file, add the line:<link rel="stylesheet" href="{{{uiRootPath}}}/css/prism.css">
.supplemental-ui/partials/footer-scripts.hbs
file, add the line:<script async src="{{{uiRootPath}}}/js/vendor/prism.js"></script>
...
The text was updated successfully, but these errors were encountered: