Documentation placeholder for the new launch interface
This commit is contained in:
parent
6aa82d82ad
commit
d84da6b7b8
@ -243,7 +243,15 @@ def add_html_context(app, pagename, templatename, context, *args):
|
||||
|
||||
# CLI docs {{{
|
||||
def write_cli_docs(all_kitten_names):
|
||||
from kitty.launch import options_spec as launch_options_spec
|
||||
from kitty.cli import option_spec_as_rst
|
||||
with open('generated/launch.rst', 'w') as f:
|
||||
f.write(option_spec_as_rst(
|
||||
appname='launch', ospec=launch_options_spec, heading_char='_',
|
||||
message='''\
|
||||
Launch an arbitrary program in a new kitty window/tab
|
||||
'''
|
||||
))
|
||||
with open('generated/cli-kitty.rst', 'w') as f:
|
||||
f.write(option_spec_as_rst(appname='kitty').replace(
|
||||
'kitty --to', 'kitty @ --to'))
|
||||
|
||||
7
docs/launch.rst
Normal file
7
docs/launch.rst
Normal file
@ -0,0 +1,7 @@
|
||||
Launching programs in new windows/tabs
|
||||
========================================
|
||||
|
||||
Syntax reference
|
||||
------------------
|
||||
|
||||
.. include:: /generated/launch.rst
|
||||
Loading…
x
Reference in New Issue
Block a user