Docs: Generate commented default configuration files
Provides the same sample config files as the locally generated ones.
This commit is contained in:
parent
1b580e8323
commit
c41a0c0290
@ -508,7 +508,7 @@ def write_conf_docs(app: Any, all_kitten_names: Iterable[str]) -> None:
|
|||||||
|
|
||||||
conf_name = re.sub(r'^kitten-', '', name) + '.conf'
|
conf_name = re.sub(r'^kitten-', '', name) + '.conf'
|
||||||
with open(f'generated/conf/{conf_name}', 'w', encoding='utf-8') as f:
|
with open(f'generated/conf/{conf_name}', 'w', encoding='utf-8') as f:
|
||||||
text = '\n'.join(definition.as_conf())
|
text = '\n'.join(definition.as_conf(commented=True))
|
||||||
print(text, file=f)
|
print(text, file=f)
|
||||||
|
|
||||||
from kitty.options.definition import definition
|
from kitty.options.definition import definition
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user