'Publish docs via GitHub Pages failed

Today I want to add a new page to my Github page. My repo worked well before. But when I add a new directory lsy/README.md to docs. Error shows. It just says Error reading page 'lsy/README.md': no such group. I cannot understand why. I added some config to mkdocs.yml. In fact, even I don't add the config to mkdocs.yml, the error shows the same. Any help?

The action log is here



Solution 1:[1]

You can use the mkdocs-exlclude plugin and setup the configuration inside the mkdocs.yml file as:

plugins:
  - exclude:
      glob:
        - lsy/README.md

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Zoran Pandovski