-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Documentation project #1700
Documentation project #1700
Conversation
440d0a4
to
d4775c6
Compare
It is a super improvement over the existing version, thanks! One question - do we mind that this breaks a lot of external links to existing docs? Since the structure is a bit different, the URLs that used to resolve will lead to 404. Sphinx has a nice tooling to avoid such breakage, here's how we did that in geopandas. I might have a few follow-ups but better to merge this massive PR first :). |
Thanks for your comment!
That's a great point, yes we do mind I think. Definitely a good idea to create a list of those moved pages. I'll include that in this PR. Then I'm interested to hear other follow-ups after this PR is out of the way, unless you have more comments that will affect the structure and urls. |
No, nothing regarding structure. Just some sphinx plugins and similar things that are nice to have but not critical. |
Agreed. The changes here alone are complex enough!
I have mixed feelings about this one. While I like the simplicity I'm afraid of the package size. Maybe, not in this PR, we can create an external data package or GH links and use them to build the docs. We can use pooch to manage the data.
👍 from me! Thanks for fixing years of my own laziness to improve the docs. |
I am happy to include them in https://github.com/geopandas/geodatasets if we host them somewhere reliable (Github is fine), so we don't have to create another package for the same purpose. |
These are good points. I guess it makes sense to not want to include the example data in the main repo. What I'll do is create a repo in our org just with the selection of data files. That way we can load them by url, and they are not attached to our Folium releases. I'm not convinced about Pooch: what I'd like is for users to be able to easily copy-paste the examples and run them, without having to install additional packages that are not a requirement for Folium. And I do think the current way of loading the data from a url is not that bad, Requests is already a dependency. We could potentially include them in Geodatasets, though I don't think that will bring us much. Not all our data files are geojson or geometries even. Though I do think it's a cool library for our users to know about. |
Just realised I'll have to add those redirects to the root level manually after we've made the switch. Thanks for sharing that example Martin. I'll redirect these pages:
|
@ocefpaf could you perhaps create a new empty example data repository in (I added this to an earlier comment but I'm afraid that doesn't notify you so I'm posting it separately) |
I also don't have permission for that. Only @wrobstory has. |
We then invoke the name of our creator, @wrobstory: rise and grant us permission to store our example data in a separate repository! 🪄 🌈 |
I've sent him an email... |
Thanks @wrobstory, really appreciate it! |
walk over subdirectories in docs folder
I think we're ready to pull the trigger:
Next is redirecting the main index.html to Latest docs are here: https://python-visualization.github.io/folium/latest @ocefpaf @martinfleis let me know if you have additional comments before going ahead with this. If not I'll continue with the to do list in the PR description. |
@Conengmo all good with me. Go ahead with the rest. Looking good! |
Thanks Martin, appreciated. I'll go ahead then! |
Same here. But I'm OK if you merge this one and keep working on a fresh PR to avoid confusion. This one already have 42 commits and touches 91 files! |
Yes, that's the plan. Hopefully the docs get updated automatically when merging to main 🤞 |
Welp squashing that branch totally failed. Thanks Github. RIP our commit history |
It actually did work 🎉 |
See #1694.
Update: a first version can be seen https://python-visualization.github.io/folium/latest/index.html
In Github Pages let's do it as follows:
TODO:
gh-pages
'latest' foldergh-pages
from old pages to new pages