nordlys.core.storage.parser.uri_prefix module¶
URI Prefixing¶
URI prefixing.
Author: | Krisztian Balog |
---|
-
class
nordlys.core.storage.parser.uri_prefix.
URIPrefix
(prefix_file='/home/docs/checkouts/readthedocs.org/user_builds/nordlys/checkouts/latest/data/uri_prefix/prefixes.json')[source]¶ Bases:
object
-
nordlys.core.storage.parser.uri_prefix.
convert_txt_to_json
(txt_file, json_file='/home/docs/checkouts/readthedocs.org/user_builds/nordlys/checkouts/latest/data/uri_prefix/prefixes.json')[source]¶ Convert prefixes txt file to json.
This has to be done only once. And only in case there is no .json file, or any changes done in .txt.