Thank you very much. We'll try this. Paulette
On Apr 1, 7:04 pm, TP <[email protected]> wrote: > On Thu, Apr 1, 2010 at 3:28 PM, TP <[email protected]> wrote: > > On Thu, Apr 1, 2010 at 8:21 AM, Paulette <[email protected]> wrote: > >> Hi, > > >> Is there any way to link from logo in the side bar of the > >> documenation OR from the relation bar to web address? (Currently from > >> any place in the docs, clicking on the logo or rel bar text takes you > >> to the main TOC.) > > >> We are developing our project website (openmdao.org) and use Trac to > >> host our documentation and for bug tracking. On the main page, if > >> users click on the "Support" tab and then select "Docs," they go to > >> our Sphinx-generated documentation. (The docs open in the same > >> window.) But the only way to get back to openmdao.org is via the > >> "back arrow." If users have been moving among the documents, it is not > >> so convenient. > > >> So, we would like to link from the logo or rel bar (anywhere in the > >> docs) back to the Trac main page. Can this be done? > > >> Thanks, > >> Paulette > > >> -- > >> 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 > >> athttp://groups.google.com/group/sphinx-dev?hl=en. > > > I believe you can just do the following to layout.html in your custom > > theme directory (see > >http://sphinx.pocoo.org/templating.html#working-with-the-builtin-temp... > > for details): > > > {% extends "basic/layout.html" %} > > > {% block rootrellink %} > > <li><a href="http://openmdao.org">OpenMDAO Home</a>{{ reldelim1 }}</li> > > {{ super() }} > > {% endblock %} > > > {% block sidebarlogo %} > > <img href="http://openmdao.org" src="{{ > > pathto("_static/OpenMDAOLogo_200x56.png", 1) }}" border="0" > > alt="OpenMDAO Home"/> > > {% endblock %} > > Oops. Should have been: > > {% block sidebarlogo %} > <a href="http://openmdao.org"> > <img src="{{ pathto("_static/OpenMDAOLogo_200x56.png", 1) }}" > border="0" alt="OpenMDAO Home"/> > </a> > {% endblock %} -- 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.
