-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do not regenerate every file each time #140
Comments
Never mind, I had to comment both |
Would still be nice to prevent regenerating the docs while keeping a version so that the links still work though. |
Re-opening, part of #10. Not regenerating is also a component of #94. Added some more notes there. I think if I skip regenerating things that have the same hash then that could help a lot. It may produce false no-rebuilds though, if a given document is not reprocessed and the underlying documentation for the construct is updated (doxygen comment changed). That said, for iterative development what exhale does (spew new documents every time) is extremely inconvenient. |
What might work is a local cache of hashes for each XML file? Or even the .rst files? And then only overwrite the files who changed relative to the currently existing .rst files. That way it would "only" be an extra processing step at the end of the normal breathe/exhale pipeline instead of needing to rewrite how exhale works This would prevent sphinx from writing output, which, as far as I can tell, is the slowest part of the build-process. |
Wanted to add a quick follow-up, this is a good suggestion. I'll need to learn how to interface with the sphinx environment caching to implement this. But once I've got a handle on that the scheme you propose seems like it should be straightforward. |
just stumbled across this: https://docs.python.org/3/library/filecmp.html
Thins I'm not sure about:
but just adding steps 1&2 would speed up the builds considerably whenever you're not changing the C/C++ code/docstrings. |
This one is going to have to wait since commenting out |
When writing documentation with Sphinx we often need to rebuild the output to verify if the page layout etc.. are as we expect.
This isn't usually problematic and is relatively quick. However, when we enable exhale it forcefully re-generates the entire API documentation each time
make html
is invoked.I've seen in the backlog of issues that the project basically would need a rewrite to support partial re-generation of docs, but I haven't found a way to temporarily disable it so that only the non-generated docs get rebuilt.
The text was updated successfully, but these errors were encountered: