-
Notifications
You must be signed in to change notification settings - Fork 173
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
Feature: Only update docs for modified files #409
Comments
You can disable the modified date entirely (my suggestion) so you don't have output churn. That happens in the template string. Ultimately there should probably be a feature to set the last updated date based on the modified time of the source file, not the tooling run time. My And yes, as a final stop a feature that only rebuilt things that needed to be would be lovely. I don't have a lot of time to put towards developing this right now, but I'd gladly facilitate contributions if somebody worked up a PR to do any of these step. |
It can also be disabled with For posterity, here's my current scripted solution that uses git to undo the changes to files that only had their date changed: ldoc .
git diff -G"<i style=\"float:right;\">Last updated " --numstat | awk '{if ($1==1 && $2==1) {print $3} }' | xargs git checkout |
True, but that is a global option for the project, not a per file one. Correct? |
Sadly yes. See also #408; if I could run ldoc on single files then I could outsource the "which files were modified" to another tool like git, nx, entr, etc. |
there is also this: https://github.com/lunarmodules/ldoc/pull/385/files |
When I run
ldoc .
a lot of mydocs/**.html
files are modified with just a new "Last Updated" date. I'd like to optionally disable that, and only modify the docs for source files that have changed.The text was updated successfully, but these errors were encountered: