View Single Post
Old 08-04-2014, 01:13 PM   #1
mauropiccolo
Member
mauropiccolo began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Sep 2013
Device: kindle
Django doc recipe ( need some tip )

Hi,
I wrote this recipe for read django documentation on my kindle.
( I like kindle news menu )
There is a better solution ? ( es not news recupe but something else?)

I like to manage "internal" link , so I need convert url like
<a class="reference internal" href="../../ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets" ......</a>

to something like
<a class="reference internal" href="/feed_1/article_15/index.xhtml#django.contrib.admin.ModelAdmin.fields ets" ......</a>

1) there is already some function to do this ?
2) if not, where is the right place ( method name ) where:
- record download_url -> feed/article
- parse and substitute url
3) which is the correct format of new url ?

in the meantime I can try to fix errors like:
Referenced file u'/tmp/calibre_1.47.0_tmp_u8U8s8/pylBRj_plumber/feed_3/article_4/index.xhtml' not found
that seems correlated.

Hope You can understand regardless my bad english.

Regards, Mauro
Attached Files
File Type: zip django.recipe_1.zip (1.3 KB, 134 views)
mauropiccolo is offline   Reply With Quote