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

DOCS: Refactor demo docs #544

Merged
merged 11 commits into from Jan 14, 2022
Merged

Conversation

choldgraf
Copy link
Collaborator

@choldgraf choldgraf commented Jan 9, 2022

This one takes over from #483 , which got messed up due to a rebase. This does a few things:

  • Moves demo.rst into kitchen-sink/, a collection of pages that are pulled from the sphinx-themes.org repository automatically.
  • Splits theme-specific behavior into a dedicated page that we can use to check the visual display of elements that are unique to this theme / particularly important
  • Removes a couple of pages that are now redundant with this information from the demo docs

closes #461

@damianavila damianavila self-requested a review January 12, 2022 18:10
@choldgraf
Copy link
Collaborator Author

choldgraf commented Jan 13, 2022

This is going to go out-of-date as soon as we touch the demo docs again. Since this PR is purely documentation, if folks are OK with it I'd like to merge in the next day or two unless there are objections. I'm happy to iterate on this PR if there are comments, but if people don't have the time maybe we can just merge it in and make improvements from there? Note that this PR has already benefitted from a round of reviews from @jorisvandenbossche in #483 - I believe all of his concerns there are also addressed here

docs/conf.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@damianavila damianavila left a comment

Choose a reason for hiding this comment

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

LGTM after my comment about the URL for the kitchen-sink is addressed.

@choldgraf
Copy link
Collaborator Author

OK - @damianavila the latest commit removes all of the "automated python downloading" stuff, and instead adds a section to our contributing guide to show people how to update the kitchen sink. If you're +1 on that, then I think we're ready to merge

text = Path("./warnings.txt").read_text().strip()
print("\n=== Sphinx Warnings ===\n\n" + text) # Print just for reference so we can look at the logs
unexpected = [ii for ii in text.split("\n") if "kitchen-sink" not in ii]
assert len(unexpected) == 0
Copy link
Member

Choose a reason for hiding this comment

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

The reason for this manual check instead of -W is to not error on warnings in the kitchen sink pages? (since those are out of our control?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The manual check is because we know the kitchen sink has errors, and that is because we want to be able to demo what it looks like when an error is rendered into the actual page, since many of our users will do this. So we want to make sure that there are no "unexpected errors", which is what this check is for

Copy link
Member

Choose a reason for hiding this comment

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

OK, great!

example_pandas
mult_headers
subpages/index
subpages2/index
Copy link
Member

Choose a reason for hiding this comment

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

For some reason I added two collapsible pages next to each other in #349 (the subpages2 in addition to subpages), but I don't remember if that had a practical reason for testing .. (I suppose we can always add it back when we discover something related to it)

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Great, thanks a lot Chris!

@choldgraf
Copy link
Collaborator Author

woo - thanks @jorisvandenbossche :-)

@choldgraf choldgraf merged commit 329a05a into pydata:master Jan 14, 2022
@choldgraf choldgraf deleted the DOC-refactor-docs branch January 14, 2022 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up our demo documentation
3 participants