-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: start using new bootstrap-based sphinx theme #28623
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
DOC: start using new bootstrap-based sphinx theme #28623
Conversation
I'm ok with this if it makes your life easier to continue to work on the theme. But my preference would be to integrate the web and the docs first. Couple of questions:
|
If you mean part of the links in the table of content in the API section, they yes, that is expected (as mentioned above, the version of the pandas docs in that repo does not build the full reference to speed up the build).
It is my goal to move the general bootstrap stuff upstream / keep in a separate project, but there will be quite some pandas specific things (probably part of the layouts and css) that does not fit there. So after splitting it, that part could be moved to the pandas repo (or, if there would be people that want to re-use our theme, we could also keep it in the separate repo, something to further see). |
About integrating the web and docs first, I would prefer to not let this be blocked by the other issue but already merge because 1) the quicker it is merged, the quicker we can get feedback 2) it somewhat blocks Stijn to do PRs to the pandas repo for the getting started content (for the new pages we ideally can already use the bootstrap theme) and 3) it's the status quo anyhow since now there is also no clear link with the current theme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be worth changing in this PR the link in the Install of the website to the "advanced installation instructions" that you moved here.
But happy to get this merged if you need it to continue your work on the theme. Feels like it'll make it trickier to integrate the web and the docs after this is merged, but we'll figure out how to move forward later on.
doc/source/conf.py
Outdated
@@ -20,6 +20,8 @@ | |||
from numpydoc.docscrape import NumpyDocString | |||
from sphinx.ext.autosummary import _import_by_name | |||
|
|||
import pandas_sphinx_theme # noqa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed? may be add a comment in the code to explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might actually not be needed, will try out (I was assuming it is needed, because in the init of the package we have some sphinx extensions added, but probably sphinx imports the package anyway if you set it as the html theme)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem needed. Removed.
Can you clarify this? Merging this PR does not change anything about the theme, so if it is tricky to integrate both after merging, it is also the case without merging? Or do you mean because it is not physically in the repo? |
I was thinking that something like setting the templates directory in the web (defined in But as I said, no problem from my side to merge this, and we'll see later when we work on the integration whether this is true or not, and what to do. |
Yep, I know. That's one of the things I ideally wanted to fix before starting to use it (it's certainly a "must fix" before the release). |
I guess you saw it, but in case in your browser/device was working. I'd say let's merge, close #15556, and would start opening issues for the pending things. It'd make your life much easier to finish this, than postponing the change. |
OK, will merge this later today. |
Will this be released for 0.25.2? |
It's in master, so no. |
- Use pandas-sphinx-theme in docs (from github master) - move install into getting_started + remove ecosystem from top-level navbar
- Use pandas-sphinx-theme in docs (from github master) - move install into getting_started + remove ecosystem from top-level navbar
- Use pandas-sphinx-theme in docs (from github master) - move install into getting_started + remove ecosystem from top-level navbar
closes #15556
I want to propose that we start using the new bootstrap-based theme that is being developed at https://github.com/pandas-dev/pandas-sphinx-theme/ for the dev docs.
This way it will already be used for the docs at https://dev.pandas.io/docs/ so it can get some exposure before the next release.
How I did it in this PR is to install it from git master https://github.com/pandas-dev/pandas-sphinx-theme/ instead of moving the actual source into the pandas repo. I would prefer doing it like this for now, as that makes it easier to further iterate on the theme (the other repo is set up with a faster doc build (disabled ipython directive + smaller api) and automatic preview using doctr on travis). In a later stage, we can still move it here if we want (or move the pandas-specific customizations here).
A preview (of a subset, not all API pages) can be seen at https://dev.pandas.io/pandas-sphinx-theme/
There are still several "must todo's" to get the theme in a decent enough state for a release. There are some open issues on the theme repo, but I can also open an issue here to keep track of those.
And of course, feedback on the theme is very welcome.
I made two other changes: