Re: [sphinx-dev] Linking from Doc logo or rel bar to website
On Thu, Apr 1, 2010 at 3:28 PM, TP wrote: > On Thu, Apr 1, 2010 at 8:21 AM, Paulette 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 sphinx-...@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. >> >> > > 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-templates > for details): > > {% extends "basic/layout.html" %} > > {% block rootrellink %} > http://openmdao.org";>OpenMDAO Home{{ reldelim1 }} > {{ super() }} > {% endblock %} > > {% block sidebarlogo %} > http://openmdao.org"; src="{{ > pathto("_static/OpenMDAOLogo_200x56.png", 1) }}" border="0" > alt="OpenMDAO Home"/> > {% endblock %} > Oops. Should have been: {% block sidebarlogo %} http://openmdao.org";> {% endblock %} -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@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.
Re: [sphinx-dev] Linking from Doc logo or rel bar to website
On Thu, Apr 1, 2010 at 8:21 AM, Paulette 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 sphinx-...@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. > > 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-templates for details): {% extends "basic/layout.html" %} {% block rootrellink %} http://openmdao.org";>OpenMDAO Home{{ reldelim1 }} {{ super() }} {% endblock %} {% block sidebarlogo %} http://openmdao.org"; src="{{ pathto("_static/OpenMDAOLogo_200x56.png", 1) }}" border="0" alt="OpenMDAO Home"/> {% endblock %} -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@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.
[sphinx-dev] Linking from Doc logo or rel bar to website
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 sphinx-...@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.