Comments (4)
(Unless I'm mistaken:) Inserting plots from examples requires knowing the path that sphinx-gallery assigns the image. This is a poor abstraction, and it would be nicer if there were an sphinx-gallery-image directive which determines the path from other key information. Another useful directive would place a selected example gallery at any point in the documentation.
I think I can repurpose the sphinx extension that took care of resolving the backreferences link on the thumbnails to this time put the full figure plus the example link if @GaelVaroquaux doesn't object again to including more sphinx extensions.
One thing that should be solved before is around the discussion on nilearn/nilearn#592 on how the references to the examples should be labeled. Shall they be analogous in prefix like the images or only keep the full path name of the script file or something else. Up to now no image not reference renaming has been propagated into nilearn or scikit-learn, so we shall choose a good standard.
from sphinx-gallery.
I have a personal bias against sphinx directives because I have seen then break on upgrade of sphinx. Actually scikit-learn documentation is currently broken under latest sphinx, although I am not sure that it is related.
Sent from my phone. Please forgive brevity and mis spelling
On Jun 7, 2015, 02:14, at 02:14, jnothman [email protected] wrote:
(Unless I'm mistaken:) Inserting plots from examples requires knowing
the path that sphinx-gallery assigns the image. This is a poor
abstraction, and it would be nicer if there were an
sphinx-gallery-image
directive which determines the path from other
key information. Another useful directive would place a selected
example gallery at any point in the documentation.
Reply to this email directly or view it on GitHub:
#38
from sphinx-gallery.
At least one of the sphinx 1.3 breakages is not handling headlines
containing hyperlinks. Given that this wasn't a problem in 1.3b2 it's an
issue of release management as well as an actual bug.
On 8 June 2015 at 14:43, Gael Varoquaux [email protected] wrote:
I have a personal bias against sphinx directives because I have seen then
break on upgrade of sphinx. Actually scikit-learn documentation is
currently broken under latest sphinx, although I am not sure that it is
related.Sent from my phone. Please forgive brevity and mis spelling
On Jun 7, 2015, 02:14, at 02:14, jnothman [email protected]
wrote:(Unless I'm mistaken:) Inserting plots from examples requires knowing
the path that sphinx-gallery assigns the image. This is a poor
abstraction, and it would be nicer if there were an
sphinx-gallery-image
directive which determines the path from other
key information. Another useful directive would place a selected
example gallery at any point in the documentation.
Reply to this email directly or view it on GitHub:
#38—
Reply to this email directly or view it on GitHub
#38 (comment)
.
from sphinx-gallery.
I'm not sure we want this, to propertly identify an image you'd need to know the examples dir, example filename, and image number. The only thing you currently need on top of that is the extension, which is always (by default at least) PNG. So I don't think we'd gain too much from the abstraction, and we'd add overhead for supporting the directive.
from sphinx-gallery.
Related Issues (20)
- Add option to set thumbnails for expected failing examples HOT 2
- Define CSS variables when `html[data-theme]` does not exist HOT 6
- Doc: document testing HOT 4
- [Maint] Add HTML parsing library as a testing dependency HOT 2
- Online documentation not deployed HOT 1
- Thumbnail generation is not working for plotly plots HOT 1
- ENH: remove file calling mini-gallery from mini-gallery
- Support for async code
- Missing full stop in download note.
- FEA Integrate download links and binder/juputerlite buttons with `pydata-sphinx-theme` secondary sidebar HOT 2
- `minigallery` with multiple files: deduplicate and should not start new rows HOT 5
- How many sublevels are supported? HOT 10
- Sub-folder gallery TOC header missing in PST theme HOT 6
- Get access to comment-based configuration in the scraper HOT 3
- Scrapper for Sympy output HOT 6
- Ease running on just one file HOT 3
- Feature: Per-code-block options HOT 7
- Build error for epub HOT 5
- Allow configuration of sort orders in a way that does not mess with the sphinx cache HOT 4
- alternative to `! pip install ...` to update env HOT 3
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 sphinx-gallery.