Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs link cleanup #3095

Merged
merged 3 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading