Skip to content

Add option to disable timestamps in TOC and libdoc HTML files#9

Merged
amochin merged 1 commit intoamochin:mainfrom
timdegroot1996:no-timestamp
Apr 9, 2026
Merged

Add option to disable timestamps in TOC and libdoc HTML files#9
amochin merged 1 commit intoamochin:mainfrom
timdegroot1996:no-timestamp

Conversation

@timdegroot1996
Copy link
Copy Markdown
Contributor

@timdegroot1996 timdegroot1996 commented Apr 8, 2026

We use libtoc to generate our project documentation but every time we generate them all files have to be committed since they have "changed", when the only actual change is the generation timestamp.

This "problem" was ocurring in both the libtoc document and the libdoc documentation files. To fix this I added an option no_timestamp in the CLI which simply doesn't add Created at ... in the libtoc html file, and searches for the Generated: ... in the libtoc documentation files, where they are replaced with nothing.

Let me know if this is a feature that could be accepted into libtoc!

@amochin amochin self-assigned this Apr 9, 2026
@amochin amochin merged commit 187571b into amochin:main Apr 9, 2026
@amochin
Copy link
Copy Markdown
Owner

amochin commented Apr 9, 2026

Merged. Thanks @timdegroot1996 !

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