Replies: 2 comments 6 replies
-
Hey, thanks for bringing this up. Here's how it works:
If you remove the IDs, the above functionalities will not work. I decided to prefetch the IDs during the setup to avoid making additional calls to the Discussions API. This made more sense when the page wasn't server-rendered, though. Now that the page is server-rendered, I guess it's possible to fetch the IDs from the server-side code if they're not provided by the user. I'll need to update the code to implement the fallback. |
Beta Was this translation helpful? Give feedback.
-
Hi @laymonage, I'm a bit late to the party but:
Is this still relevant today? Can it still be considered? I have described my use-case here if you want to have a look: https://github.com/orgs/giscus/discussions/853 🙂 |
Beta Was this translation helpful? Give feedback.
-
I'm in the process of writing a guide on how to integrate giscus into the Material for MkDocs theme.
Unfortunately does one particular thing cause me some headaches, which is the fact that the
<script>
block uses repository and category IDs.The issue here is, that I want to explain how to override the default setup on a per-page level. This would, however, require the end-user to also set repo and category ID, which I don't think are easy to obtain under normal circumstances.
Because of this would I like to ask, if the repo and category ID are a required option in the script, or if they can be safely ignored.
Beta Was this translation helpful? Give feedback.
All reactions