Re: [sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-25 Thread sffjunkie
On Thursday, 20 September 2012 19:38:55 UTC+1, Andrea wrote:

 thanks guys, but I am experiencing a problem with the bibtex package at 

 http://sphinxcontrib-bibtex.readthedocs.org/ 

 What I get is: 
 - 
 acortis02-d:doc acortis$ make html 
 sphinx-build -b html -d build/doctrees   source build/html 
 Running Sphinx v1.0.7 
 loading pickled environment... done 
 building [html]: targets for 0 source files that are out of date 
 updating environment: [extensions changed] 3 added, 0 changed, 0 removed 
 reading sources... [ 33%] index 
 Exception occurred: 
   File 
 /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/sphinxcontrib_bibtex-0.2.4-py2.7.egg/sphinxcontrib/bibtex/directives.py,
  

 line 103, in run 
 bibfile = os.path.normpath(env.relfn2path(bibfile.strip())[1]) 
 AttributeError: BuildEnvironment instance has no attribute 'relfn2path' 
 The full traceback has been saved in 
 /var/folders/w9/01c_hht14g31d8r_fjh0hxs400017v/T/sphinx-err-XAtCKk.log, 
 if you want to report the issue to the developers. 
 Please also report this if it was a user error, so that a better error 
 message can be provided next time. 
 Either send bugs to the mailing list at 
 http://groups.google.com/group/sphinx-dev/, 
 or report them in the tracker at 
 http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks! 
 make: *** [html] Error 1 
 - 

 Can you help me start figuring out what is this error message? 

 Thanks 

 Andrea 


Andrea,

It appears the function `relfn2path`, which is where it was failing, was 
only added at version 1.1 of Sphinx. You will need to upgrade to the latest 
version of Sphinx to get it to work
 

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/5m_uR-p9fyUJ.
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.



[sphinx-dev] Re: Color table?

2012-09-04 Thread sffjunkie
If you're targeting HTML and your target browser supports CSS3 you can use 
something like the following

html
head
style
/* Specific cell */
tr:nth-child(3) td:nth-child(4) {
background-color: black;
color: white;
}

/* Specific row */
tr:nth-child(4) {
background-color: green;
}

/* Specific column */
tr td:nth-child(2) {
background-color: yellow;
color: black;
}
/style
/head
body
table
trtd1/tdtd2/tdtd3/tdtd4/tdtd5/td/tr
trtd2/tdtd22/tdtd23/tdtd24/tdtd25/td/tr
trtd3/tdtd32/tdtd33/tdtd34/tdtd35/td/tr
trtd4/tdtd42/tdtd43/tdtd44/tdtd45/td/tr
trtd5/tdtd52/tdtd53/tdtd54/tdtd55/td/tr
/table
/body
/html

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/iiIJdkog1iEJ.
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.



[sphinx-dev] Re: alternating background table color row

2011-08-11 Thread sffjunkie
On Aug 2, 1:25 pm, Michael P. Soulier msoul...@digitaltorque.ca
wrote:
 Hi,

 I want to style my html and latex output such that each table header has a
 particular background color, and each row alternates between two colors.

For the HTML case you can use the CSS3 nth-child selector, if your
browser supports it, to get the row colouring.

html
head
style
table {
border: 1px solid black;
}
th {
background-color: #f4c;
}
tr:nth-child(odd) {
background-color: #4cf;
}
tr:nth-child(even) {
background-color: #4fc;
}
td {
padding: 0;
}
/style
/head
body
table
trthNumber/th thValue/th/tr
trtdRow 1/td tdA/td/tr
trtdRow 2/td tdB/td/tr
trtdRow 3/td tdC/td/tr
trtdRow 4/td tdD/td/tr
trtdRow 5/td tdE/td/tr
/table
/body
/html

Regards
Simon

-- 
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.



[sphinx-dev] automodule output wierdness

2011-04-05 Thread sffjunkie
Does anyone have any idea why, when processing the following class
docstring ::

class ReconnectingPBClientFactory(PBClientFactory,
  protocol.ReconnectingClientFactory):
Reconnecting client factory for PB brokers.

I get the following output ::

class
buildslave.pbutil.ReconnectingPBClientFactory(unsafeTracebacks=False,
security=twisted.spread.jelly.SecurityOptions instance at
0x01A9B440)

Reconnecting client factory for PB brokers.

Many Thanks
Simon

-- 
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.



[sphinx-dev] [SOLVED] Re: ReST Formatting Problem.

2010-08-18 Thread sffjunkie
If anyone wants to know the answer is to use non-breakable spaces
character code 160

On Aug 17, 10:52 am, sffjunkie sffjun...@gmail.com wrote:
 I'm not sure where else to ask but does anyone know how to include a
 literal which ends in a space character?

 More specifically I want to add 2 literals '* ' (asterisk + space) and
 '  ' (two spaces)

 Are there any forums/groups specifically set up for ReST questions?

 Many Thanks
 Simon

-- 
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] Re: including docs with distribution...

2009-10-18 Thread sffjunkie

Thomas,

I believe you need to create a ``MANIFEST.in`` file alongside your
``setup.py``, with a line that says::

graft docs

Which should add the docs directory to your egg file (assuming you
have the docs directory in the root of your project.)

It works for a standard distutils project so there's no reason it
shouldn't work with an egg.

Regards
Simon

On Oct 16, 7:58 pm, Thomas G. Willis tom.wil...@gmail.com wrote:
 Hi all,

 apologies in advance if this isn't a sphinx thing but the google gods
 are failing me at the moment.

 Can anyone refer me to some method of including docs with an egg.

 I guess what I would like to have is something like...

 c:\project\myegg-srcpython setup.py bdist_egg

 to produce...

 ./myegg-0.0
 /docs
 /myegg
 /tests

 But I'm not quite grokking how to get this to work.

 Any help is appreciated.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[sphinx-dev] Re: images in numbered lists

2009-08-23 Thread sffjunkie

On Aug 21, 12:13 pm, Samuel lykosz...@gmail.com wrote:
 Hi Guys,

 I'm adding figures in between some numbered steps like so:

 ---
 4. Ensure that the clips are in position as shown in figure 3.

 .. ifconfig:: mytest=='cond1'

         .. figure:: _static/image022.jpg

 .. ifconfig:: mytest=='cond2'

         .. figure:: _static/image022_B.jpg

 5. Power up the computer.
 ---

 Which means I'm having to manually sort the numbering out. If I have
 two numbered steps after a figure that works, but if I have only one
 the final step number is set to 1 even if the source is 5.

 Any idea how to fix this? Or work around it?

 S

On Aug 21, 12:13 pm, Samuel lykosz...@gmail.com wrote:
 Hi Guys,

 I'm adding figures in between some numbered steps like so:

 ---
 4. Ensure that the clips are in position as shown in figure 3.

 .. ifconfig:: mytest=='cond1'

 .. figure:: _static/image022.jpg

 .. ifconfig:: mytest=='cond2'

 .. figure:: _static/image022_B.jpg

 5. Power up the computer.
 ---

 Which means I'm having to manually sort the numbering out. If I have
 two numbered steps after a figure that works, but if I have only one
 the final step number is set to 1 even if the source is 5.

 Any idea how to fix this? Or work around it?

 S

Samuel, as per Guenter's suggestion, have you tried something like the
following::

4. Ensure that the clips are in position as shown in figure 3.

   |image022|

And then after the list::

.. ifconfig:: mytest=='cond1'

   .. |image022| figure:: _static/image022.jpg

.. ifconfig:: mytest=='cond2'

   .. |image022| figure:: _static/image022_B.jpg

Regards
Simon

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: class renaming - feedback needed!

2009-05-13 Thread sffjunkie



On May 13, 10:42 am, Doug Hellmann doug.hellm...@gmail.com wrote:

 classobj is good, but why is it the only one possible?

 Doug

Or the Docbook tag 'ooclass'

Simon

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: placeholders not replaced in html_title

2009-02-27 Thread sffjunkie

Well, as ``conf.py`` is just a Python script you should be able to
do ::

html_title = '%s Dokumentation :: SVN rev. %s' % (project,
version)

Regards
Simon Kennedy

On Feb 25, 12:39 am, andreash hilb...@gmail.com wrote:
 Hi there,

 I have a problem with html_title in conf.py.

 When I do not set html_title in conf.py, the title of the HTML pages
 is as I expect it to be. However, when I declare

 html_title = 'project Dokumentation :: SVN rev. version'

 the title of all my HTML documents becones

 project Dokumentation :: SVN rev. version

 I also already tried replacing the  with ||, but that doesn't help
 either.

 What am I doing wrong here?

 Thanks a lot!

 Andreas

 PS:
 version = '62'
 release = '62'

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---