This docsify plugin places giscus as the last child element of <article class="markdown-section" id="main">
.
<!-- head -->
<link rel="stylesheet" href="https://unpkg.com/@mingchyuanko/docsify-plugin-giscus/dist/giscus.css">
<!-- body -->
<script src="https://unpkg.com/@mingchyuanko/docsify-plugin-giscus/dist/giscus.min.js"></script>
<script>
window.$docsify = {
giscus: {
repo: "ENTER REPO HERE",
repoId: "ENTER REPO ID HERE",
category: "ENTER CATEGORY NAME HERE",
categoryId: "ENTER CATEGORY ID HERE",
reactionsEnabled: "1",
inputPosition: "top",
theme: "noborder_light",
lang: "zh-TW",
loading: true,
},
};
</script>
- Type:
string
You can use:
theme: "https://unpkg.com/@mingchyuanko/docsify-plugin-giscus/dist/noborder_light_custom.css",
It's just a slight modification of the original file, as there was an issue with the border in the comments section being obscured in the original style.
- Type:
boolean
Loading of the comments will be deferred until the user scrolls near the comments container.