Compare commits
No commits in common. "e5f7b3b511893ddedf574d2003728c6fec2ce27a" and "377278b88f0c1c46370c43fadd90328db631ce90" have entirely different histories.
e5f7b3b511
...
377278b88f
|
@ -9,7 +9,7 @@ import locale
|
|||
import config
|
||||
|
||||
# locale (for templates, for example dates rendering)
|
||||
locale.setlocale(locale.LC_ALL, config.locale)
|
||||
locale = "fr_FR.utf8"
|
||||
|
||||
md_path = os.path.expanduser(config.md_dir)
|
||||
gmi_path = os.path.expanduser(config.gmi_dir)
|
||||
|
@ -17,10 +17,6 @@ tpl_path = os.path.expanduser(config.tpl_dir)
|
|||
|
||||
os.chdir(md_path)
|
||||
|
||||
def add_ext_gmi(link):
|
||||
# Custom function to apply to local links
|
||||
return link+".gmi"
|
||||
|
||||
# Walk through markdown directories
|
||||
for dirname, subdirlist, mdlist in os.walk('.'):
|
||||
|
||||
|
@ -66,7 +62,7 @@ for dirname, subdirlist, mdlist in os.walk('.'):
|
|||
plain=config.plain,
|
||||
strip_html=config.strip_html,
|
||||
base_url=config.base_url,
|
||||
rellink_func=add_ext_gmi,
|
||||
md_links=True,
|
||||
table_tag=config.table_tag
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue