Commit Graph

222 Commits

Author SHA1 Message Date
Guilhem Fauré
d20976c59d <multi> blocks & unknown chars logging in spip2md.log 2023-05-30 12:16:58 +02:00
Guilhem Fauré
93fc0862d6 fix 2023-05-30 10:45:06 +02:00
Guilhem Fauré
7438c2b6d7 print as writing 2023-05-30 10:43:42 +02:00
Guilhem Fauré
ac797b7d19 sys.exit in main 2023-05-30 09:33:48 +02:00
Guilhem Fauré
cc549db945 cleaning, fixed indentation, styling 2023-05-26 17:20:30 +02:00
Guilhem Fauré
952595b34c improved architecture, started handling <multi> blocks 2023-05-26 16:43:51 +02:00
Guilhem Fauré
32738a9269 separation between classes, functions & regex mappings 2023-05-26 14:43:39 +02:00
Guilhem Fauré
5e7740a414 architecture refactor 2023-05-26 12:18:07 +02:00
Guilhem Fauré
2bf6273212 remove styling module 2023-05-26 11:18:40 +02:00
Guilhem Fauré
b51ce330ee use init instead of cli & temporarily disable <multi> blocks supressing 2023-05-26 11:16:14 +02:00
Guilhem Fauré
8e8fd4aaf8 organize module to make it executable 2023-05-26 11:03:32 +02:00
Guilhem Fauré
f9e5e15c4a python project configuration with poetry + update licence 2023-05-26 10:21:44 +02:00
Guilhem Fauré
693dee00ae fix double yaml encoding 2023-05-25 17:21:04 +02:00
Guilhem Fauré
6396a99e38 fix malformed sub paths 2023-05-25 17:14:04 +02:00
Guilhem Fauré
861379748c recursive refactor 2023-05-25 16:52:34 +02:00
Guilhem Fauré
042266a1c4 typing fixes 2023-05-25 14:32:22 +02:00
Guilhem Fauré
6837e77dd5 remove most type anotation 2023-05-25 14:20:39 +02:00
Guilhem Fauré
f06d09d338 start refactor to make section tree exporting recursive to be able to handle the whole depth of SPIP section tree + code deduplication 2023-05-25 13:52:00 +02:00
Guilhem Fauré
7e3680d282 refactor with inheritance between Article & Section 2023-05-25 10:30:18 +02:00
Guilhem Fauré
f67cddd92c disable h1 prepend for sections too 2023-05-24 16:56:17 +02:00
Guilhem Fauré
780a7d8b6a add summary in metadata 2023-05-24 16:18:36 +02:00
Guilhem Fauré
9c2b66bfc1 add option to disable prepending of title as # title 2023-05-24 15:53:49 +02:00
Guilhem Fauré
e43648ecfa fix internal link 2023-05-24 15:42:07 +02:00
Guilhem Fauré
0d9ad19b2f internal links almost ok + repair û chars + lighter output for unknown chars 2023-05-24 15:32:03 +02:00
Guilhem Fauré
74aeb8474c replace internal links 2023-05-24 13:46:03 +02:00
Guilhem Fauré
27938f92b9 links documents and images 2023-05-24 13:37:59 +02:00
Guilhem Fauré
a71302c5ed fix missing body 2023-05-24 12:12:13 +02:00
Guilhem Fauré
0568f54f29 fix sections filenames 2023-05-24 12:09:04 +02:00
Guilhem Fauré
31fadce8c5 cleaning 2023-05-24 12:07:52 +02:00
Guilhem Fauré
93a717b721 fix typing 2023-05-24 12:04:42 +02:00
Guilhem Fauré
13fa720562 refactor to use Peewee objects extension in place of redefining every SPIP atribute 2023-05-24 12:01:22 +02:00
Guilhem Fauré
4d269357de add unknown char, better output 2023-05-23 17:50:02 +02:00
Guilhem Fauré
0ce795dc08 big refactor, code reusage, sections files export, more compact output, simplifications 2023-05-23 17:45:34 +02:00
Guilhem Fauré
bf6b8d4fe5 start big refactor to structure properly main.py, in order to export sections documents the same way than articles 2023-05-23 15:32:53 +02:00
Guilhem Fauré
fdd25f3de6 do not clear output by default 2023-05-23 14:19:20 +02:00
Guilhem Fauré
4ceb1ef9e3 files links in sections too 2023-05-23 14:14:15 +02:00
Guilhem Fauré
dbfe417870 image & documents links conversion ok 2023-05-23 13:40:32 +02:00
Guilhem Fauré
94b593da93 proper replace images 2023-05-23 10:33:04 +02:00
Guilhem Fauré
0835bec611 add î conversion 2023-05-23 10:28:25 +02:00
Guilhem Fauré
79f1a9e958 export files 2023-05-23 10:26:03 +02:00
Guilhem Fauré
bad5fef4c6 fix documents querying + terminal output 2023-05-22 17:34:59 +02:00
Guilhem Fauré
ae7063e241 coloring big refactor + init copy of assets 2023-05-22 16:53:25 +02:00
Guilhem Fauré
95ccc5fab5 fixes & typing 2023-05-22 14:45:43 +02:00
Guilhem Fauré
d9cac7b1d3 typing 2023-05-22 14:23:32 +02:00
Guilhem Fauré
488b200c40 init Document & Documents 2023-05-22 14:11:25 +02:00
Guilhem Fauré
13824687bd capacity to read a config file 2023-05-22 13:31:35 +02:00
Guilhem Fauré
6fb1e9a29e more typing 2023-05-22 11:40:12 +02:00
Guilhem Fauré
1dc7d72987 better unknown chars conversion 2023-05-22 11:32:05 +02:00
Guilhem Fauré
477037573a fix unknown chars warning + better context 2023-05-22 11:23:51 +02:00
Guilhem Fauré
a83ec1da3c refactoring 2023-05-22 10:57:08 +02:00