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

Update version switcher json #109

Merged
merged 2 commits into from
Apr 12, 2023
Merged

Conversation

jni
Copy link
Member

@jni jni commented Feb 18, 2023

I have to say I don't understand why anything in the site version switcher is working currently given the status of the version switcher json... @melissawm Any thoughts? Is this version not uploaded to the deployed repo? At any rate, this makes it correct. (I added the version number to the "stable" name as I think it's handy.)

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 18, 2023
@Czaki
Copy link
Contributor

Czaki commented Feb 19, 2023

it looks working because of andy PR napari/napari.github.io#375

@melissawm
Copy link
Member

Yes - in fact I think this json here should be removed, as the json being used is the one on the napari.github.io repo. I think this was an oversight when we made the final decision on how to deploy the website.

@jni
Copy link
Member Author

jni commented Mar 4, 2023

I've thought about this a bit longer, and I would like us to half-reverse this decision: I think we should use the json from the website, but I think the json from the website should be deployed from this repo. The website itself should be a repository of derived products, not the source of anything — it becomes confusing when it is source for some things mixed in with derived products for other things.

What do you think @melissawm @Czaki?

@jni
Copy link
Member Author

jni commented Mar 4, 2023

... Looking at it more closely, this would simply mean we start using the version switcher url at napari.org/dev/_static/version_switcher.json. We could make the other value a symlink?

@melissawm
Copy link
Member

Yes - the only requirement is that this needs to be a live link for the json to work (meaning: you can't build with a local json file). Other than that, as long as we use a permalink this should work just fine 👍

@jni
Copy link
Member Author

jni commented Apr 11, 2023

Good-oh. Should we merge this PR then? 😅 Then we can update the one on the website.

Copy link
Member

@melissawm melissawm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jni jni merged commit b844092 into napari:main Apr 12, 2023
melissawm added a commit to melissawm/napari-docs that referenced this pull request Apr 12, 2023
@melissawm melissawm mentioned this pull request Apr 12, 2023
6 tasks
jni pushed a commit that referenced this pull request Apr 15, 2023
# Description
Update URL of version switcher to use
https://napari.org/dev/_static/version_switcher.json

This brings us closer to the goal of napari.github.io containing
only built artifacts, not source materials.

## Type of change
<!-- Please delete options that are not relevant. -->
- [ ] Fixes or improves existing content
- [ ] Adds new content page(s)
- [x] Fixes or improves workflow, documentation build or deployment

# References
This is a follow-up on #109.

## Final checklist:
- [x] My PR is the minimum possible work for the desired functionality
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added [alt text](https://webaim.org/techniques/alttext/) to
new images included in this PR
melissawm pushed a commit to melissawm/napari-docs that referenced this pull request Apr 26, 2023
@psobolewskiPhD psobolewskiPhD added this to the 0.4.18 milestone Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants