From f35af2324cc5179efd1879955d2332e6e2bd6290 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 18 Jul 2024 10:40:28 -0400 Subject: [PATCH] docs link cleanup (#3095) --- jdaviz/app.py | 2 +- jdaviz/core/template_mixin.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/jdaviz/app.py b/jdaviz/app.py index a03b197b6e..3c846eb7be 100644 --- a/jdaviz/app.py +++ b/jdaviz/app.py @@ -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')) diff --git a/jdaviz/core/template_mixin.py b/jdaviz/core/template_mixin.py index 07dae242d8..afe0f7790d 100644 --- a/jdaviz/core/template_mixin.py +++ b/jdaviz/core/template_mixin.py @@ -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, @@ -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 = []