Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 1a5bfa5

Browse files
authored
Remove build-time and commit field to avoid changing all pages on each build (#119)
We are re-uploading all pages even if they didn't change anything because on each build we inject a different date-time.
1 parent f1145b1 commit 1a5bfa5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.circleci/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ commands:
1111
default: "21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,latest"
1212
steps:
1313
- checkout
14-
- run: pip install --user tox
14+
# NOTE: update tox to tox<5 when https://github.com/tox-dev/tox/issues/2850
15+
# is fixed.
16+
- run: pip install --user 'tox<4'
1517
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
1618

1719
jobs:

readthedocs_ext/readthedocs.py

-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
import os
88
import re
99
import types
10-
from datetime import datetime
1110
from packaging.version import Version
1211

1312
import sphinx
14-
from sphinx import package_dir
1513
from sphinx.util.console import bold
1614

1715

@@ -157,9 +155,7 @@ def rtd_render(self, template, render_context):
157155
'source_suffix': ctx.get('source_suffix', ''),
158156
'page': ctx.get('pagename', ''),
159157
'api_host': ctx.get('api_host', ''),
160-
'commit': ctx.get('commit', ''),
161158
'ad_free': ctx.get('ad_free', ''),
162-
'build_date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),
163159
'global_analytics_code': ctx.get('global_analytics_code'),
164160
'user_analytics_code': ctx.get('user_analytics_code'),
165161
'subprojects': dict(ctx.get('subprojects', [])),

0 commit comments

Comments
 (0)