ENH/DOC: pydata sphinx theme polishing#13814
Conversation
|
If possible, I suggest that the graphical icons be active links to the documentation as well as the 'To the documentation' text in the grey boxes. I believe most people would expect that behavior. |
|
There has been some discussion of analytics at scipy/scipy.org#338. |
Thanks. Looking at it, there is still no decision. I just saw there are using google analytics in Pandas, hence my question. |
|
Right, it's still a good question! There were some useful suggestions there, though, e.g. to use something other than Google analytics. Great for the discussion to continue; just thought it's best to see what has been said in the past. |
|
@justbennet I added the clickable icons. The solution is not that fancy, I guess it's fine. |
|
@jorisvandenbossche proposed to use sphinx-panels instead of the raw html. They are going with it in Pandas. Seems like the good choice here. I will update the PR with the suggestions he made. |
|
We are again seeing some timeout in the CI. It's getting concerning. Maybe we could do some caching of the builds? We could cache master and then all build times should be way faster. Or would this be problematic? |
|
Looks like there is a conflict. Feel free to ping me for a review when this is ready |
7400cba to
397d66f
Compare
Sorry I did not intentionally ping you (CODEOWNER thing got triggered). But I would still be happy to have your review 😃 . I don't think we are done here, we can continue to tweak things. Current CI fails due to a scheduled maintenance from bintray: https://status.bintray.com/ (cc @rgommers in case) |
No problem, it was actually clear from the GitHub email that it was due to CODEOWNER and not you -- I just wanted to chime in to say that I'm happy to review when it's time! |
|
Apparently it fails in Latex. I still don't know why. @jorisvandenbossche how did you solve this in Pandas? Is it because you use |
|
latexmk wants to run pdflatex twice but somehow something kicks off an xetex run with very old packages. Once I tried to fix that TeX run but always got lost or lost interest probably we have to get to the bottom of it as it is a massive part of doc builds (not so useful either imho). |
I am not a user of the PDF doc either. Would be interesting to have some statistics to know if this is really used... As for now, I can fix the issue by using png images instead of svg if there is no obvious way. |
|
Just seeing this now. |
|
The issue is fixed and to try I set |
|
CircleCI is not happy: |
Thanks for reminding me! I will convert the svg to png (I tested this locally and it fixes the issue). |
|
@larsoner now green 🥳 , but the images are stretched, have to tweak something here. |
larsoner
left a comment
There was a problem hiding this comment.
Otherwise LGTM. Did you want to take care of other items at the top that aren't checked off yet, or should we merge this once the button is fixed?
Thanks for reviewing @larsoner. As for the other items, I just listed things I could think about, but I am not sure I am in the best position to propose more than what I did (the quick start guide for instance, not sure if this is enough or if we would want something different. Same for the sidebar, is this what we want in the end?), also my design skills are poor to say the least 😅. I hoped to catch a bit more maintainers here to work on this collectively. |
| <div class="bd-toc-item active"> | ||
| {% if pagename.startswith("reference") %} | ||
| {{ generate_nav_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }} | ||
| {{ generate_nav_html("sidebar", maxdepth=2, collapse=True, includehidden=True, titles_only=True) }} |
There was a problem hiding this comment.
| {{ generate_nav_html("sidebar", maxdepth=2, collapse=True, includehidden=True, titles_only=True) }} | |
| {{ generate_nav_html("sidebar", maxdepth=1, collapse=True, includehidden=True, titles_only=True) }} |
My previous comment was mainly about the user guide, I think you could keep it here at a maxdepth of 1 in the reference guide, because it's mainly here that you get such huge sidebars because of all individual docstring pages getting included.
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
larsoner
left a comment
There was a problem hiding this comment.
LGTM +1 for merge
@jorisvandenbossche any other thoughts or comments?
If nobody else has comments I'll try to remember to merge on Monday.
|
Thanks @tupui ! |
* master: (164 commits) DOC: Add Karl Pearson's reference to chi-square test (scipy#13971) BLD: fix build warnings for causal/anticausal pointers in ndimage MAINT: stats: Fix unused imports and a few other issues related to imports. DOC: fix typo MAINT: Remove duplicate calculations in sokalmichener BUG: spatial: fix weight handling of `distance.sokalmichener`. DOC: update Readme (scipy#13910) MAINT: QMCEngine d input validation (scipy#13940) MAINT: forward port 1.6.3 relnotes REL: add PEP 621 (project metadata in pyproject.toml) support EHN: signal: make `get_window` supports `general_cosine` and `general_hamming` window functions. (scipy#13934) ENH/DOC: pydata sphinx theme polishing (scipy#13814) DOC/MAINT: Add copyright notice to qmc.primes_from_2_to (scipy#13927) BUG: DOC: signal: fix need argument config and add missing doc link for `signal.get_window` DOC: fix subsets docstring (scipy#13926) BUG: signal: fix get_window argument handling and add tests. (scipy#13879) ENH: stats: add 'alternative' parameter to ansari (scipy#13650) BUG: Reactivate conda environment in init MAINT: use dict built-in rather than OrderedDict Revert "CI: Add nightly release of NumPy in linux workflows (scipy#13876)" (scipy#13909) ...
This is a follow up PR for #13724.
It Address the last comments from reviews and is a starting point for further improvement. Please propose any improvements here (or do a PR on my branch).
Things to check/do:
Icons: NumFOCUS, Tidelift, twitter?Should be on the organization website, not here.Getting started