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# -*- coding: utf-8 -*-
 2
 3# Default settings
 4project = 'Test Builds'
 5extensions = [
 6    'sphinx_autorun',
 7]
 8
 9latex_engine = 'xelatex'  # allow us to build Unicode chars
10
11
12# Include all your settings here
13html_theme = 'sphinx_rtd_theme'
14html_static_path = ['_static']
15html_js_files = ['readthedocs-doc-diff.js']
16
17
18
19

>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow()  # UTC
datetime.datetime(2022, 8, 19, 9, 3, 30, 42709)