spip2pelican issueshttps://gitlab.math.unistra.fr/groupe-calcul/spip2pelican/-/issues2019-06-27T05:34:48Zhttps://gitlab.math.unistra.fr/groupe-calcul/spip2pelican/-/issues/27Make this project public2019-06-27T05:34:48ZMatthieu Boileaumatthieu.boileau@math.unistra.frMake this project public* [ ] Clean code
* [ ] Clean non public information* [ ] Clean code
* [ ] Clean non public informationMatthieu Boileaumatthieu.boileau@math.unistra.frMatthieu Boileaumatthieu.boileau@math.unistra.frhttps://gitlab.math.unistra.fr/groupe-calcul/spip2pelican/-/issues/26Keep a reference to the original spip article in new article metadata2019-06-27T05:34:01ZMatthieu Boileaumatthieu.boileau@math.unistra.frKeep a reference to the original spip article in new article metadataSee this [issue](../../website/issues/188#note_10195).See this [issue](../../website/issues/188#note_10195).Matthieu Boileaumatthieu.boileau@math.unistra.frMatthieu Boileaumatthieu.boileau@math.unistra.frhttps://gitlab.math.unistra.fr/groupe-calcul/spip2pelican/-/issues/24Build a list of all converted articles2018-07-20T09:28:14ZMatthieu Boileaumatthieu.boileau@math.unistra.frBuild a list of all converted articlesIn order to prepare a manual review...
- use markdown formatting
- sort by rubrique
- add a checkbox `* [ ]`In order to prepare a manual review...
- use markdown formatting
- sort by rubrique
- add a checkbox `* [ ]`Matthieu Boileaumatthieu.boileau@math.unistra.frMatthieu Boileaumatthieu.boileau@math.unistra.frhttps://gitlab.math.unistra.fr/groupe-calcul/spip2pelican/-/issues/23Handle unindexed images2018-06-29T15:00:07ZMatthieu Boileaumatthieu.boileau@math.unistra.frHandle unindexed imagessuch as :
```python
Traceback (most recent call last):
File "./spip2pelican.py", line 651, in <module>
website.export_to_pelican()
File "./spip2pelican.py", line 608, in export_to_pelican
skip_reason = article.export_to_pelic...such as :
```python
Traceback (most recent call last):
File "./spip2pelican.py", line 651, in <module>
website.export_to_pelican()
File "./spip2pelican.py", line 608, in export_to_pelican
skip_reason = article.export_to_pelican()
File "./spip2pelican.py", line 382, in export_to_pelican
content = spip_to_markdown(self.text, self.website)
File "./spip2pelican.py", line 273, in spip_to_markdown
s = document(s, website)
File "./spip2pelican.py", line 224, in document
s = re.sub(r'<(doc|img)([0-9]+)\|.*>', doc_replace, s)
File "/Users/boileau/anaconda3/lib/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "./spip2pelican.py", line 217, in doc_replace
url = os.path.join(website.attachments_prefix, "IMG", website.doc_index[doc_id])
KeyError: 26
```
Ignore image and output a warning.Matthieu Boileaumatthieu.boileau@math.unistra.frMatthieu Boileaumatthieu.boileau@math.unistra.fr