Re: [sphinx-dev] Using if statements in conf.py

2011-12-06 Thread Viktoras M
while going with config switching, you can include some common values from third file, will save some copy-paste work: config1.py: myPlatform="windows" execfile("common-config.py") config2.py: myPlatform="linux" execfile("common-config.py") common-config.py: echo "my current platform is:",myPla

RE: [sphinx-dev] Using if statements in conf.py

2011-12-06 Thread Alastair Dent
ct to the conf.py file. -Original Message- From: sphinx-dev@googlegroups.com [mailto:sphinx-dev@googlegroups.com] On Behalf Of Ernesto Posse Sent: 05 December 2011 19:50 To: sphinx-dev@googlegroups.com Subject: Re: [sphinx-dev] Using if statements in conf.py My comments are below. O

Re: [sphinx-dev] Using if statements in conf.py

2011-12-05 Thread Ernesto Posse
gt; From: sphinx-dev@googlegroups.com [mailto:sphinx-dev@googlegroups.com] On > Behalf Of Ernesto Posse > Sent: 02 December 2011 22:29 > To: sphinx-dev@googlegroups.com > Subject: Re: [sphinx-dev] Using if statements in conf.py > > On Fri, Dec 2, 2011 at 11:27 AM, Alastair Dent &g

Re: [sphinx-dev] Using if statements in conf.py

2011-12-05 Thread Maxim Yaskevich
ilto:sphinx-dev@googlegroups.com] On Behalf Of Ernesto Posse Sent: 02 December 2011 22:29 To: sphinx-dev@googlegroups.com Subject: Re: [sphinx-dev] Using if statements in conf.py On Fri, Dec 2, 2011 at 11:27 AM, Alastair Dent wrote: Can I do something like the following in conf.py: You can but you

Re: [sphinx-dev] Using if statements in conf.py

2011-12-05 Thread Nick Leaton
g like: > > ifconf_product = sys.argv[1] > > in the conf.py. But how do I call conf.py with an argument? > > -Original Message- > From: sphinx-dev@googlegroups.com [mailto:sphinx-dev@googlegroups.com] On > Behalf Of Ernesto Posse > Sent: 02 December 2011 22:29 >

RE: [sphinx-dev] Using if statements in conf.py

2011-12-05 Thread Alastair Dent
f Ernesto Posse Sent: 02 December 2011 22:29 To: sphinx-dev@googlegroups.com Subject: Re: [sphinx-dev] Using if statements in conf.py On Fri, Dec 2, 2011 at 11:27 AM, Alastair Dent wrote: > Can I do something like the following in conf.py: You can but you'll have to use Python syntax (con

Re: [sphinx-dev] Using if statements in conf.py

2011-12-02 Thread Ernesto Posse
On Fri, Dec 2, 2011 at 11:27 AM, Alastair Dent wrote: > Can I do something like the following in conf.py: You can but you'll have to use Python syntax (conf.py is a Python module), so instead of > if ifconf_product=’mini’ then > > exclude_patterns = ['interface/*.rst',’dialogs/*.rst’] > > elseif