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