Yes this is possible. You need to create a directory
source/.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 }}">Show
Source</a></li>

to something like

   <li><a href="{{ pathto('../../source/' + sourcename, true)|
e }}">Show Source</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 <[EMAIL PROTECTED]> 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 "show source" link that every page has
> point to the real source file, 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 could edit my 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to