Comments (7)
No, I have no idea, it sounds like a bug.
Can you bisect this?
from nbsphinx.
Thanks for the quick answer.
Not much to bisect... I had the custom css nbsphinx-gallery.css
working on a previous Sphinx version and nbsphinx 9.3 following doc requirements. But updgrading to Sphinx 7.2.6 broke it.
The conf.py is this one (pointing to the relevant line).
To give you an example, here the gallery with the custom CSS, and here with the bug.
from nbsphinx.
Not much to bisect...
Maybe we are using different interpretations of the term "bisect".
I wanted to suggest using git bisect
. The result of this would be a single Git commit, which would be the one introducing the bug. With this, we can then ask the Sphinx team to fix it (or maybe it turns out to be something to be fixed in nbsphinx
).
from nbsphinx.
Oh okay sorry I didn't understood it this way. But which repo do you want me to bisect ? On my side, it is this one that introduced the bug, when bumping from Sphinx 4.4.0 to Sphinx 7.2.6.
from nbsphinx.
I successfully fixed it by:
- renaming the folder
static
to_static
- add the css file to
html_css_files
var (e.ghtml_css_files = ["my-nbsphinx-gallery.css"]
- the custom css can't be name
nbsphinx-gallery.css
anymore, or it is overwritten by the default one.
from nbsphinx.
It's great that you found a work-around, but this doesn't seem to be a real fix for the problem.
renaming the folder
static
to_static
You should be able to choose the folder name arbitrarily, you just have to use the same name in html_static_path
.
add the css file to
html_css_files
var (e.ghtml_css_files = ["my-nbsphinx-gallery.css"]
If you use your own additional file name, you should do that, but if you want to overwrite an existing file name, you should not have to add it there.
the custom css can't be name
nbsphinx-gallery.css
anymore, or it is overwritten by the default one.
Yeah, but that's the bug, you should be able to overwrite it.
But which repo do you want me to bisect ?
https://github.com/sphinx-doc/sphinx/, because that's where we suspect the bug, right?
from nbsphinx.
I have bisected it and created sphinx-doc/sphinx#12096.
from nbsphinx.
Related Issues (20)
- Links to local files are marked as "external"
- Download buttons/links HOT 7
- Non working internal links for manually added anchors in 0.9.2 HOT 4
- Unable to create gallery with notebooks out of the doc tree with nblinkgallery HOT 1
- Not compatible with the latest `pandoc` version HOT 2
- Failure on multi-line maths with leading indentation
- Scroll long output HOT 1
- 0.9.2: documentation build fails HOT 1
- `DataFrame` with long column labels is not rendered correctly with the `pydata` theme HOT 1
- What's the best way to add support for sphinx directives in markdown cells? HOT 3
- xelatex support HOT 3
- How to link to a notebook from another file ? HOT 2
- WARNING: toctree glob pattern '*.ipynb' didn't match any documents HOT 1
- Math rending issue after converting the doc HOT 1
- nbsphinx PDF don't render Ploty Plot HOT 2
- Backslashes in markdown cells are sometimes incorrectly interpreted as inline TeX HOT 4
- Error on cells using tqdm
- Error on cells using progress bar (tqdm) HOT 7
- Avoid sphinx searching on output cells HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbsphinx.