[SciPy-Dev] Cross-link scipy docs and source code?

josef.pktd@gmai... josef.pktd@gmai...
Sun Mar 11 23:10:11 CDT 2012


On Sun, Mar 11, 2012 at 1:23 PM, Pauli Virtanen <pav@iki.fi> wrote:
> 11.03.2012 17:50, josef.pktd@gmail.com kirjoitti:
> [clip]
>> searching with google and on stackoverflow is unsuccessful. The answer
>> maybe: ask at a relevant mainling list. (Sorry for the noise, in that
>> case.)
>
> You can probably use tags.has('html') or tags.has('htmlhelp') as
> conditionals in the config file.

Thanks

tags didn't work because it is empty, {}, in conf.py
but this told me where to start and look, sys.argv is available in conf.py

if 'htmlhelp' in sys.argv:
    html_theme = 'statsmodels_htmlhelp'
else:
    html_theme = 'statsmodels'

(Although I didn't find a nice css, so I just use default if
'htmlhelp' in sys.argv )

Josef

>
>        Pauli
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev


More information about the SciPy-Dev mailing list