Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

needtable not shown in RTD #767

Closed
2Eagle2 opened this issue May 24, 2019 · 7 comments
Closed

needtable not shown in RTD #767

2Eagle2 opened this issue May 24, 2019 · 7 comments

Comments

@2Eagle2
Copy link

2Eagle2 commented May 24, 2019

Details

When running the basic example in Sphinx from https://sphinxcontrib-needs.readthedocs.io/en/latest/index.html#

database style table is not shown when using RTD

Minimal Example:

.. req:: My first requirement
requirement 1

.. req:: My second requirement
requirement 2

.. needtable::
:style: datatables

Expected Result

the table is shown as in example

Actual Result

only control panels of database is shown but not actual table

@2Eagle2
Copy link
Author

2Eagle2 commented May 24, 2019

When investigate
changing in theme.css

from:

.wy-table-responsive {
overflow: auto
}

to:

.wy-table-responsive {
overflow: visible
}

seems to fix the issue

@stsewd
Copy link
Member

stsewd commented May 27, 2019

@2Eagle2 Can you put some screanshots with/out the fix? Can you replicate this locally? Looks like you are using the alabaster theme,

@2Eagle2
Copy link
Author

2Eagle2 commented May 30, 2019

sorry for late response.
here are the screenshots

(it is shown in firefox - the same results is also in IE)
without fix

without_fix

with fix

with_fix

@2Eagle2
Copy link
Author

2Eagle2 commented Jun 3, 2019

As you can see - this is minimalistic example
And yes I can reproduce it locally.
I am sending you whole source example:
doc.zip

@2Eagle2
Copy link
Author

2Eagle2 commented Jun 3, 2019

In other themes like "alabaster" it works without need of any fix.

@stsewd stsewd transferred this issue from readthedocs/readthedocs.org Jun 3, 2019
@stsewd
Copy link
Member

stsewd commented Jun 3, 2019

Thank you, I'm moving this issue to the rtd theme repo

@jessetan
Copy link
Contributor

This is not a theme issue, but an issue of the sphinxcontrib-needs extension. It uses floating elements that move div.wy-table-responsive out of view.
Unfortunately this theme can not accommodate all Sphinx extensions that exist. I suggest opening an issue at https://github.com/useblocks/sphinxcontrib-needs, perhaps they have a nice way of solving it without needing custom CSS in your project.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants