oprypin / mkdocs-gen-files

MkDocs plugin to programmatically generate documentation pages during the build
https://oprypin.github.io/mkdocs-gen-files
MIT License
98 stars 8 forks source link

Plugin not found #10

Closed amirebrahimi closed 2 years ago

amirebrahimi commented 2 years ago

When I try and run mkdocs with the following config file I get an error: Error: Invalid Plugins configuration

site_name: qtcodes

theme:
  name: "material"

plugins:
  - search
  - gen-files:
    scripts:
    - docs/gen_ref_pages.py    
  - mkdocstrings:

Thoughts?

StarfallProjects commented 2 years ago

Hiya! I'm not the owner, just another person with a question, but I think you might want:

plugins:
  - search
  - gen-files:
      scripts:
        - <path-to-you-redirects>.py

Note how scripts is indented.

amirebrahimi commented 2 years ago

Thank you, @StarfallProjects! This fixed my problem and I don't think I would have figured it out from the error message alone.