Hi all, I want to update via "Show Source" the rst files. This could work also on the Mac with Seamonkey (which has a composer).
I've found the enclosed discussion and I've tried to follow it. However Sphinx has evolved and being new to Sphinx, I have to repost the question Best regards, Mathias PS: Don't you think, this could expand the use of Sphinx? I want to use it as a note-taker, a documentation tool of a directory structure containing many things, documents, calculations, even program-code ;)) And most of my documentation will not be embedded in source-code On Oct 12 2008, 7:29 pm, Peter Hoffmann <tos...@gmail.com> wrote: > Yes this is possible. You need to create a directorysource/.templates/ and > copy the file layout template file > sphinx/templates/layout.html into it. > > Then modify the following line in the template > > <li><a href="{{ pathto('_sources/' + sourcename, true)|e > }}">ShowSource</a></li> > > to something like > > <li><a href="{{ pathto('../../source/' + sourcename, true)| > e }}">ShowSource</a></li> > > If you are using .txt as the default file extension for your files > this should work. If you are using .rst you have to modify sourcename > accordingly > > Regards Peter > > On 10 Okt., 11:14, Flavio <sixdegrees...@yahoo.it> wrote: > > > > > > > > > Hi, > > i'm using sphinx for a (personal and local only) site to collect my > > notes, code snippets, things to do, ... > > > All works very good (thanks to sphinx developers!), but it would be > > very handy for me to have the "showsource" link that every page has > > point to the realsourcefile, and not to a copy in the buildi dir. > > (I mean, now points to build/html/_sources/index.txt, i'd like to have > >source/index.rst) > > > This way i couldeditmy notes with a single click from my browser. > > (i'm using konqueror, by default clicking a text link opens gvim, from > > which i can rebuild the site with a custom command). > > > Is this possible? > > > Thanks all, > > Flavio -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.