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

Using nb2plots makes my table content centered by default #27

Open
gabrielfougeron opened this issue Jul 17, 2023 · 4 comments
Open

Using nb2plots makes my table content centered by default #27

gabrielfougeron opened this issue Jul 17, 2023 · 4 comments

Comments

@gabrielfougeron
Copy link

Hi,

I've started using nb2plots to insert code in sphinx documentation. This sphinx extension is absolutely fantastic!
However, I noticed an unexpected side-effect of using nb2plots: the content of all my previously defined documentation tables became centered by default. I don't control most tables (they are autogenerated by autodoc for instance), so I'm not sure how to change this behavior manually.

Have you notices this side-effect before? How can I revert to the original behavior?

@matthew-brett
Copy link
Owner

Ouch - that's annoying. Can you build a minimal reproducible example? I'll take a look.

@gabrielfougeron
Copy link
Author

Thank you very much for the quick response. I'll do that asap.

@gabrielfougeron
Copy link
Author

gabrielfougeron commented Jul 17, 2023

Here is a zipped MWE project: docs.zip
One detail I discovered while building it: This change in default happens when using the theme "pydata_sphinx_theme", but not with the default theme ("alabaster" ?).

compiled with Sphinx v6.2.1 (but this might not matter)

@matthew-brett
Copy link
Owner

Sorry - marking and teaching intervened. I see the cause - it's an odd one - I think it's a pydata_sphinx_theme bug. Will post an issue there shortly.

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

No branches or pull requests

2 participants