mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Documentation placeholder for the new launch interface
This commit is contained in:
@@ -243,7 +243,15 @@ def add_html_context(app, pagename, templatename, context, *args):
|
|||||||
|
|
||||||
# CLI docs {{{
|
# CLI docs {{{
|
||||||
def write_cli_docs(all_kitten_names):
|
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
|
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:
|
with open('generated/cli-kitty.rst', 'w') as f:
|
||||||
f.write(option_spec_as_rst(appname='kitty').replace(
|
f.write(option_spec_as_rst(appname='kitty').replace(
|
||||||
'kitty --to', 'kitty @ --to'))
|
'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
|
||||||
Reference in New Issue
Block a user