mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

Comment: The comment page must be refreshed to appear.

Open SkyHighR opened this issue 1 year ago • 3 comments

Context

I need to use giscus comments with the navigation.instant turned on at the same time.

Bug description

When I use giscus comments, then turn on the navigation.instant attribute, only the comments of the first displayed page can be loaded (if the page comment is on), when I click on other pages, giscus comments will only appear "Commet" words. No comment box. The strange thing is that everything works fine when building locally

Related links

#5816

Reproduction

Because it involves comment overrides, I can't add info plugin, but I remove other overrides, css and JavaScript as much as possible.

You can view my website source code in this repo,The built product is in the gh-pages branch

Steps to reproduce

  1. open this page, comments are loading fine
  2. Switch a random page in the right navigation, then scroll to the bottom and you'll see that the page comments won't load.

Browser

Chrome, Safari, Edge

Before submitting

SkyHighR avatar May 21 '24 11:05 SkyHighR

Thanks for reporting. Please understand that we need a reproduction to look into it.

Because it involves comment overrides, I can't add info plugin, but I remove other overrides, css and JavaScript as much as possible.

You can use the info plugin with archive_stop_on_violation:

plugins:
  - info:
      archive_stop_on_violation: false

squidfunk avatar May 23 '24 08:05 squidfunk

9.5.24-bug.zip
I created this bug info on my computer.


I deployed the website again to reproduce the error, yesterday's website seemed to have issues
open skyhigh.moe, comments are loading fine
Switch a random page in the right navigation, then scroll to the bottom and you'll see that the page comments won't load.

ghost avatar May 23 '24 09:05 ghost

Thanks! This is not a minimal reproduction – it's the contents of your repository. Please create a minimal reproduction.

squidfunk avatar May 23 '24 10:05 squidfunk

Sorry, I checked carefully. There should be a conflict between my plug-in and the style.

ghost avatar May 24 '24 00:05 ghost