Skip to content

Commit

Permalink
docs link cleanup (#3095)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry authored Jul 18, 2024
1 parent 4fe79a9 commit f35af23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,7 @@ def load_configuration(self, path=None, config=None):
if self.config in ALL_JDAVIZ_CONFIGS:
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/{self.config}/index.html' # noqa
else:
self.docs_link = 'https://jdaviz.readthedocs.io'
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}'

self.state.settings.update(config.get('settings'))

Expand Down
3 changes: 1 addition & 2 deletions jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
from ipywidgets import widget_serialization
from ipypopout import PopoutButton

from jdaviz import __version__
from jdaviz.components.toolbar_nested import NestedJupyterToolbar
from jdaviz.core.custom_traitlets import FloatHandleEmpty
from jdaviz.core.events import (AddDataMessage, RemoveDataMessage,
Expand Down Expand Up @@ -218,7 +217,7 @@ def __new__(cls, *args, **kwargs):
obj.config = app.state.settings.get("configuration", "default")

# give the vue templates access to jdaviz version
obj.vdocs = 'latest' if 'dev' in __version__ else 'v'+__version__
obj.vdocs = app.vdocs

# store references to all bqplot widgets that need to handle resizing
obj.bqplot_figs_resize = []
Expand Down

0 comments on commit f35af23

Please sign in to comment.