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

Bapsflib style doc sidebar captions #777

Merged
merged 14 commits into from
Apr 17, 2020

Conversation

StanczakDominik
Copy link
Member

WIP

  • I have added a changelog entry for this pull request (please see
    changelog/README.rst for instructions, and if you need help with picking the PR type, ask!)
  • If adding new functionality, I have added (passing) tests and
    docstrings. (Tests pop up at the bottom, in the checks box).
  • I have fixed any new failing tests (if you're unsure why
    they're failing, ask!).

@StanczakDominik StanczakDominik force-pushed the Erik-style-doc-captions branch from fa77125 to da81d3e Compare March 31, 2020 18:49
@StanczakDominik
Copy link
Member Author

StanczakDominik commented Mar 31, 2020

Version 1 https://5380-46810954-gh.circle-artifacts.com/0/docs/_build/html/index.html (last Development Guide -> About; my mistake)

@StanczakDominik
Copy link
Member Author

Wait, since when do we have RTD builds in CI? 😱 :giddy-like-a-tired-CI-person:

@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #777 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #777   +/-   ##
=======================================
  Coverage   95.94%   95.94%           
=======================================
  Files          56       56           
  Lines        5000     5000           
=======================================
  Hits         4797     4797           
  Misses        203      203           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34ddccc...5a336bd. Read the comment docs.

@StanczakDominik
Copy link
Member Author

Okay, what I'd like you to compare is

Copy link
Member

@namurphy namurphy left a comment

Choose a reason for hiding this comment

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

Thank you for working on this! I really like the direction this is going. I have a few suggestions, some of which I remember @rocco8773 saying in a side conversation a little while back.

  • We can probably skip spelling out the subpackage name/location in the sidebar (i.e., drop the plasmapy.formulary next to "Formulary")
  • We can probably skip saying "PlasmaPy" and "Plasma" for some of the items in the side bar since it can be a bit redundant. Like..."About PlasmaPy" could change to "About" and "Plasma Diagnostics" could change to "Diagnostics"
  • Could the sidebar headings for "Examples", "Development Guide", and "About" be changed to links to the relevent places so that the subitems can be removed?

Copy link
Member

@rocco8773 rocco8773 left a comment

Choose a reason for hiding this comment

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

I second what @namurphy said.

I do think the sidebar can still benefit from a little more organization and conciseness. Here's an organization I originally had in mind.

First Steps

  • Vision Statement (or an About)
  • Installing
  • Getting Started
    [This would be a new page (i.e. one we don't already have). It would be a quick and dirty overview/guide to the package contents. It would explain the concept behind the top-level packages and any key classes. This would probably be a separate PR.]
  • Examples
  • How to Contribute (renaming of "Contributing to PlasmaPy")
  • Community Code of Conduct
  • Acknowledging & Citing

Package Features
[I'd say keep this pages alphabetized, versus some kind of importance priority.]

  • Diagnostics
  • Formulary
  • Particles
  • Particle Tracker (could be combined into the "Particles" page)
  • Plasma Objects
  • Utilities

Guide for Contributors

  • How to Contribute (this would link to the same page listed under "First Steps")
  • Community Code of Conduct (this would link to the same page listed under "First Steps")
  • Installing for Developers
  • Code Guidelines (or "Guide for Coding")
  • Test Guidelines (or "Guide for Testing")
  • Documentation Guidelines (or "Guide for Writing Documentation")
  • Release Guide (or "Guide for Releases")

All the Rest

  • Authors & Credits
  • Change Log
  • Stability of Subpackages
  • PlasmaPy.org (just link directly to our main page)

It would also be nice to add some kind of module index, much like the the indices the python documentation has in the upper right corner or bapsflib has under "package navigation". I know this is tricky though and might be better suited to a separate PR.

Copy link
Member

@rocco8773 rocco8773 left a comment

Choose a reason for hiding this comment

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

This is stating to like nice and clean! 🎉 It's already an improvement over what we originally had.

My only other general thought...Maybe we should reorder the docs/ folder to match the sidebar structure. We can keep the folders for the "Package Features" as they are (i.e. docs/diagnostics, docs/formulary, etc.), however, we can reshuffle the other pages into the folders docs/first_steps, docs/development_guide, and docs/all_the_rest.

docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
It was just a TOC page, and the subpages are linked from elsewhere. It
seems fine to dump it, since it's raising errors on CI about not being
located in any TOC.
@StanczakDominik
Copy link
Member Author

Eh, future work for the docs directory reshuffling? I expect we'll be doing that soon-ish anyway.

Copy link
Member

@rocco8773 rocco8773 left a comment

Choose a reason for hiding this comment

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

This looks really nice to me!

We do have a mix of title styles in the sidebar, they switch back and forth between 'Feedback and Communication' and 'Feedback and communication'. We should be consistent with the style we use and I prefer 'Feedback and Communication'.

@rocco8773
Copy link
Member

Eh, future work for the docs directory reshuffling? I expect we'll be doing that soon-ish anyway.

I'm ok with leaving it to another PR, but we should make an issue as a reminder.

@rocco8773
Copy link
Member

This looks really nice to me!

We do have a mix of title styles in the sidebar, they switch back and forth between 'Feedback and Communication' and 'Feedback and communication'. We should be consistent with the style we use and I prefer 'Feedback and Communication'.

This style also needs to be applied to 'Plasma Tracker', 'Plasma Objects', and 'Package Utilities'.

Copy link
Member

@namurphy namurphy left a comment

Choose a reason for hiding this comment

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

LGTM! I'm happy for it to be merged after the changes Erik suggested.

@StanczakDominik
Copy link
Member Author

I feel like that could have easily been a code suggestion ;)

@rocco8773
Copy link
Member

I feel like that could have easily been a code suggestion ;)

Yeah, but I'm lazy. 😁

@rocco8773 rocco8773 merged commit 9e426f9 into PlasmaPy:master Apr 17, 2020
@namurphy
Copy link
Member

Awesome! Thanks! This pull request makes me happy. 😸

@StanczakDominik StanczakDominik deleted the Erik-style-doc-captions branch April 30, 2020 13:16
@rocco8773 rocco8773 added the docs PlasmaPy Docs at http://docs.plasmapy.org label Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs PlasmaPy Docs at http://docs.plasmapy.org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants