PR visual diff¶
This branch shows a proof of concept for visual diff between two rendered versions: /en/latest/
and current PR.
(based on this commit https://github.com/readthedocs/test-builds/commit/386db8c06f248093118a43bc824bc1681d0c77a9)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # -*- coding: utf-8 -*- # Default settings project = 'Test Builds' extensions = [ 'sphinx_autorun', ] latex_engine = 'xelatex' # allow us to build Unicode chars # Include all your settings here html_theme = 'sphinx_rtd_theme' html_static_path = ['_static'] html_js_files = ['readthedocs-doc-diff.js'] |
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2022, 8, 19, 9, 3, 27, 369923)