sampledoc's People
Forkers
ivanov zer0-g viciu almari demetriuz julianpeng alexsavio pomier natepboat takaakiaoki joseman37 debrez patweb99 complex501 lmeredith argriffing vthorey raielin devashishdas1 cryptodira riverans tacaswell shivam1111 tigermoon kaezarrex ozbillwang mrsgit09 23hamaka1ganman ccopol benchoufi xiaogh98 raghavarora16 fireattack ponadto matthew-brett beardofedu zwilla lizchen1996 kmenzli cosecant-csc simonwardjones biophyser lgman rmsare-lanl adriaanrol ipcoder kield-01 neah-ko pootle bsipocz recklessop alicewoooo davidcaron talebbits grufelous eugeneklv istvanp1 mehdi-sio blueskyzz jason950374 bradchan ait-abdel mizimmer90 ziwangdeng vinnnyr nozuonohappy nirupam1sharma seichhorn peter-draznik-drivin wlt-cortex costezki fil8 drum1440 yonas-y mariefleur 7azimos94 patricialarsen kdeng00 jstriebel arzukhanna michaelaau ni1o1 pratyush19 royassis asad-ismail isabella232 coolrazor007 anna-follestad-4ss georgpfolz richelin stefre lgtm-migratorsampledoc's Issues
Deployed site doesn't correspond to current repo contents
https://matplotlib.org/sampledoc/index.html is outdated and contains some errrors that already have been fixed in the main branch 5 years ago (70f7888).
inheritance_diagram.py in sphinxext is incompatible with recent sphinx
similar to nilmtk/nilmtk#87
see the fix in nipy/nitime#111
Any chance of retiring Lena from Sampledoc background?
Copy of : matplotlib/matplotlib#5220
I noticed just now that sampledoc:
http://matplotlib.org/sampledoc/index.html
uses Lena for the top banner lettering background. It would be good to change that for the usual reasons (questionable taste, copyright). Is that acceptable?
`sphinxext/ipython_directive.py` no longer in matplotlib
First of all: thanks for making this great tutorial!
It doesn't work with matplotlib HEAD though, because matplotlib/sphinxext/ipython_directive.py
no longer exists.
This worked for me:
cp ipython/docs/sphinxext/ipython_directive.py sampledoc/sphinxext
After that a missing import numpy as np
in combination with @doctest
on line 120 in sampledoc/ipython_directive.rst makes sphinx abort.
For me simply adding the missing import numpy as np
doesn't work, the doctest still fails.
Is it possible to make the following error message point to the .rst file name and line number that contains np.random.rand(10,2)
(instead of suggesting a bug in sphinx)?
$ make html
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.0.7
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.py:908: UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
if warn: warnings.warn(_use_error_msg)
loading pickled environment... not yet created
building [html]: targets for 7 source files that are out of date
updating environment: 7 added, 0 changed, 0 removed
reading sources... [100%] ipython_directive
Exception occurred:
File "/Users/deil/github/sampledoc/sphinxext/ipython_directive.py", line 376, in process_output
raise RuntimeError(e)
RuntimeError: output prompt="Out[13]:" does not match out line=---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/Users/deil/github/sampledoc/<ipython-input-13-f032a6173cb5> in <module>()
----> 1 np.random.rand(10,2)
NameError: name 'np' is not defined
The full traceback has been saved in /var/folders/9v/3cf9p8mx0n1gzcsq3mw9799m0000gn/T/sphinx-err-rTVMpU.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [html] Error 1
There's a few more small issues:
- Line 101 in sampledoc/ipython_directive.rst needs to be indented
Users/deil/github/sampledoc/custom_look.rst:6: (WARNING/2) Duplicate explicit target name: "sphinx".
/Users/deil/github/sampledoc/cheatsheet.rst:7: WARNING: undefined label: cheatsheet -literal (if the link has no caption the label must precede a section header)
/Users/deil/github/sampledoc/extensions.rst:53: WARNING: undefined label: extensions-literal (if the link has no caption the label must precede a section header)
broken internal link
An .rst reference seems to be broken in extensions.rst. I'm not sure what is the intended behavior.
:ref:`extensions-literal`
Current Version fails doctest
Alignment of the output doesn't match. I can fix locally
Customization steps fail on windows
Hi, I am having trouble with the "customizing the look and feel" step
Issue is documented on stackoverflow here http://stackoverflow.com/questions/34856081/sphinx-tutorial-problems
Not friendly to Windows users
I get to the repo to learn how to use Sphinx, but I find it really not that easy for Windows users.
1st, I shall look for the Sphinx scripts & exes(like sphinx-quickstart.exe);
2nd, I shall set the %SPHINXBUILD% env-var(no tip in the material).
And there's no tips for the new comers telling how to setup the Sphinx on Windows, though it's easy to type: 'python.exe setup.py install' under the source folder.
a matplotlib sphinx extension has moved into ipython
This causes a warning when I build sampledoc.
MatplotlibDeprecationWarning:
The Sphinx extension ipython_console_highlighting has moved from
matplotlib to IPython, and its use in matplotlib is deprecated.
Change your import from 'matplotlib.sphinxext.ipython_directive' to
'IPython.sphinxext.ipython_directive.
The change should be made in conf.py
in sampledoc.
Where is the sphinxext dir?
https://matplotlib.org/sampledoc/extensions.html tries to copy the files from a sphinxext dir in this repo which doesn't seem to exist.
use the numpydoc package instead of bundling a numpydoc.py file
numpydoc is now its own project which can be installed with pip or other OS/distribution package managers. Would make sense to remove sphinxext/numpydoc.py from sampledoc?
mathjax
I'm not sure how active this project is, but it's missing references to mathjax.
Current SVN versions of Sphinx now include built-in support for math. There are two flavors:
pngmath: uses dvipng to render the equation
jsmath: renders the math in the browser using Javascript
sample_doc out of date
https://github.com/matplotlib/sampledoc/blob/master/getting_started.rst talks about the out of date svn repository.
Given there was user interest in this project, we should probably fix this.
I'd be happy enough to do that (though a little hard pressed for time atm, but hopefully that should clear up in a couple of weeks).
differences between sphinxdoc.css and basic.css from sphinx installation directory and https://matplotlib.org/sampledoc/
There are important differences between sphinxdoc.css and basic.css from sphinx installation directory and https://matplotlib.org/sampledoc/
With the css from the installation directory the hrefs in the sitebar are not working.
So I replaced the css from the installation directory with the css that I copied from https://matplotlib.org/sampledoc/_static dir website.
You have to place them in the ....\site-packages\sphinx... installation directory because with every rebuild of your documentation the css is copied from there to your build directory!
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.