Skip to content

Commit

Permalink
Addons: docdiff compare against LATEST (#10820)
Browse files Browse the repository at this point in the history
* Addons: docdiff compare against `default_branch`

Closes #154

* Addons: compare against LATEST -- `default_branch` is not correct
  • Loading branch information
humitos authored Oct 16, 2023
1 parent 59299d1 commit 65173b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readthedocs/proxito/views/hosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
ProjectSerializer,
VersionSerializer,
)
from readthedocs.builds.constants import LATEST
from readthedocs.builds.models import Version
from readthedocs.core.resolver import resolver
from readthedocs.core.unresolver import UnresolverError, unresolver
Expand Down Expand Up @@ -306,7 +307,9 @@ def _v0(self, project, version, build, filename, user):
# "http://test-builds-local.devthedocs.org/en/latest/index.html"
"base_url": resolver.resolve(
project=project,
version_slug=project.get_default_version(),
# NOTE: we are using LATEST version to compare against to for now.
# Ideally, this should be configurable by the user.
version_slug=LATEST,
language=project.language,
filename=filename,
)
Expand Down

0 comments on commit 65173b7

Please sign in to comment.