summaryrefslogtreecommitdiffstats
path: root/doc-publik/update-publik-doc-from-mallard.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc-publik/update-publik-doc-from-mallard.py')
-rw-r--r--doc-publik/update-publik-doc-from-mallard.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc-publik/update-publik-doc-from-mallard.py b/doc-publik/update-publik-doc-from-mallard.py
index e0990cc..1ddfac8 100644
--- a/doc-publik/update-publik-doc-from-mallard.py
+++ b/doc-publik/update-publik-doc-from-mallard.py
@@ -29,6 +29,8 @@ for cell in TextCell.objects.filter(slug__startswith='mallard-'):
except TextCell.DoesNotExist:
continue
a.attrs['href'] = target_cell.page.get_online_url()
+ for img in document.find_all('img'):
+ img.attrs['src'] = 'https://doc.entrouvert.org/%s/dev/%s' % (module, img.attrs['src'])
new_content = unicode(content).replace(unicode(more_info), '')
cell.text = new_content