Integration of Sphinx (files) into a Pyramid application

48 views
Skip to first unread message

Andreas Jung

unread,
Nov 6, 2012, 2:09:17 AM11/6/12
to pylons-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I am working on a Twitter/Bootstrap based Pyramid application/site:

http://beta.produce-and-publish.com/documentation

I habe an existing documentation project site

http://docs.produce-and-publish.com/

that I want to include with the same look & feel into the beta site above.

I want to avoid using a dedicated bootstrap theme on the Sphinx side
in order to reduce redundancy between Pyramid and Sphinx.

Is there some reasonable approach integrating Sphinx content within
a Pyramid application (perhaps without using tools like Diazo)?

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQmLecAAoJEADcfz7u4AZjsrQLwOReBUtPXsvYEn2zcTWaHLh1
nOi9tYN/vZMfwICluOQspB19EtBDhojfhKbXrKBZUYnVulOApu7Opl+5zXt5uA4c
UPTJKzn3H+t41Ok9eYb5RO2CTICbtG1OwmSZsebyBT/8RRWemQgcSelRs4+tslDd
a0Xub+oQml7bknOD953d2ZZkG3VeSyd4jpic+s7obJR5At81Ov2m8iadOrXeisMZ
iLo8eUL0ANyGku03kAYQ8EKNDP+7EW5IjPbrNDFh9fs1hSvrIpH+YMnx5L8B7MrN
cNSPpREM5HjHuYW12hKVLNA0v4hE74F4qAWBcG5UqDDhW1pHVXQCX+S6RbQuJZpX
xhShLE/pcvD5Wwg3248lvS0bH3a1YJE1JA6dHaKzSUFyYVmZd9k21sjaBrIYVCvY
w78b9VeKJTcrNmTL2QK3vZSQeGQMONGGEqCZkWQFe8EheZH69F/1zBXc1Xp9R/8I
d3+Alxg5KnJnzRAK7kk4Fi/PBRev0EE=
=dqFx
-----END PGP SIGNATURE-----
lists.vcf

Eldav

unread,
Nov 6, 2012, 3:23:42 AM11/6/12
to pylons-...@googlegroups.com, li...@zopyx.com
Hi Andreas,

I recently had to solve a similar problem, and I chose to export my
Sphinx document in pickle format (initially I wanted to develop a Sphinx
Bootstrap theme, but I found the "pickle" approach much simpler).
In this format, each page of your document is generated as a pickled
dictionary, which you can use in your favourite templating engine:

http://sphinx-doc.org/builders.html#serialization-details

Just type "make pickle" instead of "make html", and see how it works for
you 

Hope this helps,

Laurent.

Andreas Jung

unread,
Nov 6, 2012, 3:44:29 AM11/6/12
to Eldav, pylons-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is a total crazy solution but perfect!

Thanks,
Andreas
- --
ZOPYX Limited | Python | Zope | Plone | MongoDB
Hundskapfklinge 33 | Consulting & Development
D-72074 Tübingen | Electronic Publishing Solutions
www.zopyx.com | Scalable Web Solutions
- --------------------------------------------------
Produce & Publish - www.produce-and-publish.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQmM3tAAoJEADcfz7u4AZjG/8Lv3T4+4ASarT5mGM0rlki5VVa
bdnKb/eseGBw6ttiV82nZB7MjOH7194imI/vI+2lv0HEAR0cq3JgoaYFEDkjMdql
vJSJDpEIi7dCOBQFr/aBOjtbQw6BfKjsUn2hOa6iXSVeMB5F3cZO13pY2ml8E0cQ
9VFipWhWBIE7r4pIPVMBrKdRO9v8EAHpxx95M+L2nnX8w0Dsta64oZh2EpJ9n8WI
Fz/pKF9YVIiKtUavqJk79Vvy+fvVsrZTlqKH6D93nbmZCk1dPXAiH+RoOs42VKrY
wN3RjRhTK7rq5u50nVFWbl1+wZ2E8Xr2TfKp3KhLcyFmR/3dHZXwkpA+2nCuEg+9
1iQg9X/EREAULtv4Y8bnBNzcCiqJcmcRLMv9Cbso01Bt0UlR89yAhnqaXX4JhtBJ
jmywgcZCOrg0/ZFqnwCusqAxrgIN7/U4iHTyv+E9y3EKuOByqeNkBH7Y8SG2capa
7MetyJ+g7Y8vZP/ZVo7RzBGCSbqrbOk=
=eOxx
-----END PGP SIGNATURE-----
lists.vcf
Reply all
Reply to author
Forward
0 new messages