-
Notifications
You must be signed in to change notification settings - Fork 1
config
Clouder0 edited this page Jul 3, 2021
·
2 revisions
Config Module holds all the configuration settings.
- deck_name(String), the default deck where notes will be exported to.
- skip(Boolean), whether to skip the current block. This is usually set inline to skip a certain block.
- mathjax(Boolean), whether to replace
$1$
to\(1\)
when formatting. - tags(List), the list of tags for notes generated.
- log_config(Dictionary), a complicated dictionary for Python logging module.
- notetype_settings(Dictionary), a dictionary for note types to read information from. For instance, Cloze note type will read
notetype_settings["Cloze"]["clozeNumberPrefix"]
.
There are some methods:
- complete_config, use when the initial configuration is completed. It will load the log_config into the logging module.
- parse_config, parse some config text into a pair list.
- For example,
key=value
,key=[value1,value2]
- For example,
- execute_config, load a key-value pair list into the config, and store the old values for rolling back.