Skip to content

Commit

Permalink
chore: update docusaurus template (#811)
Browse files Browse the repository at this point in the history
Signed-off-by: aeneasr <aeneasr@users.noreply.github.com>

Co-authored-by: aeneasr <aeneasr@users.noreply.github.com>
  • Loading branch information
aeneasr and aeneasr committed Jan 10, 2022
1 parent bb3396a commit d030947
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/src/plugins/ory-scripts-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ module.exports = function (context) {
return {
name: 'docusaurus-plugin-ory-web-script',

getClientModules() {
return [path.resolve(__dirname, './ory-scripts-loader')]
// https://docusaurus.io/docs/api/plugin-methods/lifecycle-apis#injectHtmlTags
injectHtmlTags({ content }) {
return {
postBodyTags: [
'<script src="https://www.ory.sh/scripts.js" async></script>'
]
}
}
}
}

0 comments on commit d030947

Please sign in to comment.