Skip to content

Commit

Permalink
Remove build-time and commit field to avoid changing all pages on eac…
Browse files Browse the repository at this point in the history
…h 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.
  • Loading branch information
stsewd committed May 25, 2023
1 parent f1145b1 commit 1a5bfa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Expand Up @@ -11,7 +11,9 @@ commands:
default: "21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,latest"
steps:
- checkout
- run: pip install --user tox
# NOTE: update tox to tox<5 when https://github.com/tox-dev/tox/issues/2850
# is fixed.
- run: pip install --user 'tox<4'
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"

jobs:
Expand Down
4 changes: 0 additions & 4 deletions readthedocs_ext/readthedocs.py
Expand Up @@ -7,11 +7,9 @@
import os
import re
import types
from datetime import datetime
from packaging.version import Version

import sphinx
from sphinx import package_dir
from sphinx.util.console import bold


Expand Down Expand Up @@ -157,9 +155,7 @@ def rtd_render(self, template, render_context):
'source_suffix': ctx.get('source_suffix', ''),
'page': ctx.get('pagename', ''),
'api_host': ctx.get('api_host', ''),
'commit': ctx.get('commit', ''),
'ad_free': ctx.get('ad_free', ''),
'build_date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),
'global_analytics_code': ctx.get('global_analytics_code'),
'user_analytics_code': ctx.get('user_analytics_code'),
'subprojects': dict(ctx.get('subprojects', [])),
Expand Down

0 comments on commit 1a5bfa5

Please sign in to comment.