[sphinx-users] Link Company/Author name to Website in Copyright footer

2015-05-21 Thread Monami Bhattacharya
Hi,

Is there an easy way of hyperlinking the company or author name displayed 
in the HTML footer without hardcoding it in the CSS?

The conf.py seems to furnish these details, but if one adds an href there, 
it is displayed as is, with the copyright text.

copyright = u'2015, a href=www.example.comNameGoesHere/a'


The theme.css seems to contain the directive, but I'm wondering if there's 
a way to do this without hardcoding it in there.

fa-copyright:before{content:}


In footer.html

div role=contentinfo p {%- if show_copyright %} {%- if 
hasdoc('copyright') %} {% trans path=pathto('copyright'), 
copyright=copyright|e %}copy; a href={{ path }}Copyright/a {{ 
copyright }}.{% endtrans %} {%- else %} {% trans copyright=copyright|e 
%}copy; Copyright {{ copyright }}.{% endtrans %} {%- endif %} {%- endif %} 
/div

Appreciate all inputs, thanks!
M

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


Re: [sphinx-users] Link Company/Author name to Website in Copyright footer

2015-05-21 Thread Luc Saffre
Monami,

without hardcoding it in the CSS?

Do you know that you can override the templates? For me it seems an
acceptable task to use a custom layout.html when I want to fine-tune the
HTML output. Here is an example:

 https://github.com/lsaffre/lino/blob/master/docs/.templates/layout.html

And do you know that if you have a page copyright.rst (at the top of
the document tree), then the Copyright text will be clickable and lead
to that page.

Luc

On 21/05/15 10:09, Monami Bhattacharya wrote:
 Hi,
 
 Is there an easy way of hyperlinking the company or author name
 displayed in the HTML footer without hardcoding it in the CSS?
 
 The conf.py seems to furnish these details, but if one adds an href
 there, it is displayed as is, with the copyright text.
 
 |
 copyright =u'2015, a href=www.example.comNameGoesHere/a'
 |
 
 
 The theme.css seems to contain the directive, but I'm wondering if
 there's a way to do this without hardcoding it in there.
 
 |
 fa-copyright:before{content:}
 |
 
 
 In footer.html
 
 |
 divrole=contentinfop{%- if show_copyright %} {%- if
 hasdoc('copyright') %} {% trans path=pathto('copyright'),
 copyright=copyright|e %}copy; ahref={{ path }}Copyright/a{{
 copyright }}.{% endtrans %} {%- else %} {% trans copyright=copyright|e
 %}copy; Copyright {{ copyright }}.{% endtrans %} {%- endif %} {%- endif
 %} /div
 |
 
 Appreciate all inputs, thanks!
 M
 
 -- 
 You received this message because you are subscribed to the Google
 Groups sphinx-users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to sphinx-users+unsubscr...@googlegroups.com
 mailto:sphinx-users+unsubscr...@googlegroups.com.
 To post to this group, send email to sphinx-users@googlegroups.com
 mailto:sphinx-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/sphinx-users.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Incorporating code into Sphinx

2015-05-21 Thread Anthony Pinter
Is there a way to incorporate executable Python code into Sphinx? If not, 
is there a way to incorporate an API call and display the results (i.e. a 
live stock price)?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


Re: [sphinx-users] Incorporating code into Sphinx

2015-05-21 Thread Luc Saffre
On 22/05/15 06:01, Anthony Pinter wrote:
 Is there a way to incorporate executable Python code into Sphinx? If
 not, is there a way to incorporate an API call and display the results
 (i.e. a live stock price)?

Anthony,

maybe you want the py2rst directive:

http://atelier.lino-framework.org/api/atelier.sphinxconf.insert_input.html

(Disclaimer: I am the author)

Luc

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.