Skip to content

Conversation

@jkaye2012
Copy link

Rough sketch of how we may approach supporting incremental dirty reload. Currently, this enables incremental mode only if two conditions are met:

  1. The server is being run with --dirtyreload enabled
  2. build_docs_dir was supplied by the user

The second condition exists because I think it's required for something like this to work; without it, mkdocs won't have access to the generated build files (I think). Incremental mode also disables merging beyond the first run right now, but I'm not 100% sure if that's correct either.

@athackst
Copy link
Owner

Thanks for this!

I don't think (2) is strictly needed - the plugin updates the docs directory to the tmp build one.

It looks like there was some issues with mkdocs clearing settings when reloading configs to ignore the site dir and continually appending extracted docs instead of overwriting them.

I've taken your base and addressed these in #446

LMK if it works for you and I'll merge it in!

@jkaye2012
Copy link
Author

jkaye2012 commented Dec 27, 2022 via email

@jkaye2012
Copy link
Author

Resolved in #446

@jkaye2012 jkaye2012 closed this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants