[python-users] Sphinx

Andi Albrecht albrecht.andi at googlemail.com
Mo Mai 3 13:51:04 CEST 2010


2010/5/3 Jan Ulrich Hasecke <juhasecke at googlemail.com>

>
> Am 03.05.2010 um 06:16 schrieb Andi Albrecht:
>
> > Was missfällt dir daran?
>
> So ziemlich alles. ;-)
>
> Mit ein wenig Ausprobieren, hab ich jetzt eine bessere Struktur erzielt:
>

Oh, ich dachte, deine Dateien wären schon in der Struktur :) Sorry...


>
> In conf.py:
>        html_theme = 'plone_org_theme'
>
> in plone_org_theme/theme.conf:
>
>        [theme]
>        inherit = basis
>        stylesheet = plone.css
>        pygments_style = none
>
>        [options]
>        nosidebar = false
>
> plone.css ist jetzt in plone_org_theme/static
>
> Jetzt sieht auch das resultierende HTML besser aus:
>
>        <link rel="stylesheet" href="../_static/plone.css" type="text/css"
> />
>         < link rel="stylesheet" href="../_static/pygments.css"
> type="text/css" />
>
> Deinen Hinweis darauf, das CSS plone.css_t zu nennen, hab ich ausprobiert,
> aber es hat nicht sofort funktioniert. Hast du ein Beispiel welche Variablen
> man dann einfügen kann?
>

Hier ein Beispiel-CSS:
http://bitbucket.org/andialbrecht/sphinx/src/tip/sphinx/themes/agogo/static/agogo.css_t
Die Variablen sind mit doppelten geschweiften Klammern {{ var }} im
Template.
Definiert sind sie in der theme.conf, Section "options":
http://bitbucket.org/andialbrecht/sphinx/src/tip/sphinx/themes/agogo/theme.conf

Andi


>
> juh
> ________________________________________
> Diese Mail erhalten Sie ueber die Mailingliste Python-users der
> Universitaet zu Koeln
> Python-users at uni-koeln.de
> https://lists.uni-koeln.de/mailman/listinfo/python-users
>
>
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.uni-koeln.de/pipermail/python-users/attachments/20100503/8798f578/attachment.html>


Mehr Informationen über die Mailingliste python-users