projects
plugin sub-project watcher
#6944
Replies: 1 comment 2 replies
-
Thanks for reporting. I'd say this is a feature request, because we don't officially support the mkdocs-gen-files plugin (as it is not mentioned in our documentation), but we can definitely look into whether we can generally support plugins that add further files to the watched files. Note that this should in general be done in Another question: does it work with the mkdocs-monorepo- or -multirepo-plugins? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been working with the projects plugin and things have been working out quite well so far. However, I ran into a situation that I'm not sure is expected or not and wanted to create this discussion before going down the path of creating an actual issue for it.
My project is setup to leverage https://github.com/oprypin/mkdocs-gen-files as a means of generating documentation for source code files located in
src/
of each project directory via https://github.com/mkdocstrings/crystal. I also setup the mkdocs featurewatch
to point to the project directory. When runningmkdocs serve
I can see that the non-source docs are successfully rebuilt and browser reloaded with my changes.However if I were to make changes to the source code I can see a rebuild was triggered due to a change and the browser is refreshed:
But the changes I made to the source file are not reflected. After some debugging I came to realize that they were reflected if I saved that project's
mkdocs.yml
file. Some additional debugging revealed that this seems to be because the mkdocs events that are emitted are different, seemingly becausemkdocs.yml
is special?mkdocs-gen-files
is dependent on thefiles
andpage_content
events that don't seem to be emitted when saving a source file.So I guess the tl;dr is this a bug because the project file watcher is skipping this event? Or is this a feature request in that there could/should be a way to configure this? Or is this not even a mkdocs-material problem? I'm not familiar with the ecosystem so would appreciate any insights you have.
Beta Was this translation helpful? Give feedback.
All reactions