-
Notifications
You must be signed in to change notification settings - Fork 121
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
docs: move Pebble to a separate page #1392
docs: move Pebble to a separate page #1392
Conversation
@tmihoc feel free to provide an opinion here too, if you have time & want to :) |
@tonyandrewmeyer RTD docs are failing to build. I'll wait to review till you've fixed that so I can compare with https://ops.readthedocs.io/en/latest/ |
Huh, they built without error locally, and I didn't get an email about the failure; weird. Thanks for letting me know - I'll figure out what's going on. |
Oops, this might explain it 😊
|
@benhoyt it should be ready now, sorry. |
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.
One change requested. Otherwise, I'm happy with this. Let's just follow up with fixing the links in the Juju.is docs.
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 change makes sense to me, and looks good when built.
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.
👍🏻
Giving that the Pebble module is indeed quite independent, I think the move makes sense. Unrelatedly: Looking at https://ops.readthedocs.io/en/latest/index.html, the Navigation, there are two things that I'd do differently: (1) nitpick: Unit testing (was: Scenario): The "was" there is not great. I'd rephrase as "Unit testing (previously, "Scenario"). |
This is intended to only be there for a few months, for what it's worth, to help out all the people that know of Scenario understand that it's the same thing. It could be "previously", although it does then wrap to two lines, which is not ideal. (2) a bigger concern: API reference, Pebble client, Unit testing (was: Scenario), Harness (legacy unit testing): The titles don't help me see the pieces and the relationships between them clearly. API reference = for what? It could be "Ops API reference" I guess? If you look down from the top of the page, it says "The Ops Library", then "The ops library documentation" and then "API reference".
I think Pebble is tricky because ops wraps the Pebble client in the We could introduce a layer, like:
Would that help? It could be by namespace, but we decided to merge the two APIs in ops.testing, so that would be:
Or something like that.
Sure :) |
This makes the most sense to me and I just typed something like this too on your other PR: #1320 (comment) With a small difference:
Where ops is basically the top-most layer and may not need a separate entry in Navigation -- so the Navigation can skip to the component items. I wouldn't bother to group them into Development and Testing -- the extra layers imo bury content rather than helping surface it. We could group them like that in the top-level intro, if at all. E.g.,
|
Pros: * Significantly reduces the length of the right-hand sidebar for the main API reference * Clearly delineates ops.pebble, which could legitimately used independently of ops as a Python Pebble API * Separates duplication between ops.Container and ops.pebble into separate pages Cons: * Browser search-on-page is less useful (although we already started this process by splitting ops.testing out) * Existing deep links into the docs will break (we should be able to find and fix the ones on juju.is/docs at least)
Pros:
Cons: