Page MenuHome

API doc: Tweak sphinx to get date of source commit instead of build date.
ClosedPublic

Authored by Bastien Montagne (mont29) on Mar 23 2022, 3:27 PM.

Details

Summary

This commit disables the 'last updated' value (which is the date the
sphinx doc is generated), and instead modifies the 'commit' field from
the 'html_context' data to get:

  • a link to the commit itself.
  • the date of that commit.

This avoids having the whole documentation detected as changed every
time it is re-generated by the buildbot.

Diff Detail

Repository
rB Blender
Branch
tmp (branched from master)
Build Status
Buildable 21205
Build 21205: arc lint + arc unit

Event Timeline

Bastien Montagne (mont29) requested review of this revision.Mar 23 2022, 3:27 PM
Bastien Montagne (mont29) created this revision.
This revision is now accepted and ready to land.Mar 23 2022, 3:45 PM
Aaron Carlisle (Blendify) added inline comments.
doc/python_api/sphinx_doc_gen.py
1765–1766

This can be removed, the default value is none.

doc/python_api/sphinx_doc_gen.py
1765–1766

I would still keep it, would rather be explicit here.