This commit is contained in:
HesterG 2023-07-11 16:22:31 +08:00
parent 7ac27f1df7
commit bcc739982e

View file

@ -1,16 +0,0 @@
module.exports = () => ({
name: "docusaurus-repo-plugin",
async loadContent() {
const response = await fetch(
`https://github-api.questdb.io/github/repo`,
)
const data = await response.json()
return data
},
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions
setGlobalData({ repo: content })
},
})