Closed benoit74 closed 1 month ago
I think we can switch name to devdocs.io_en_{slug}
e.g. devdocs.io_en_lua~5.4
or devdocs.io_en_cpp
if we don't mind the tilde in the filename, if we do I add a {clean_slug}
that replaces it with a dash.
We can also add a separate flag for file name and a {period}
placeholder that's the current date in YYYY-MM
format.
From openZIM naming convention:
The parts must only contain alphanums or - or . characters.
So I think that we "need" the {clean_slug}
where you replace everything with does not match this with a -
And we also need the separate flag for file name indeed, with {period}
placeholder
Thank you
By default, the ZIM name (metadata) and filename (on disk) uses the pattern
devdocs_{slug_without_version}_{version}
.This does not match our ZIM naming convention, especially since it uses the
_
as separator where it has other meaning in our convention and is a bit ugly when the slug has no version (e.g. cpp). It also does not includes current year-month in ZIM filename.Examples of default name and filename:
devdocs_cpp_
devdocs_cpp_.zim
devdocs_en_cpp
(project isdevdocs
, lang isen
, selection iscpp
devdocs_en_cpp_2024-09.zim
devdocs_lua_5.4
devdocs_lua_5.4.zim
devdocs_en_lua-5.4
(project isdevdocs
, lang isen
, selection islua-5.4
devdocs_en_lua-5.4_2024-09.zim