Use new URL scheme and define the kitty website centrally as much as possible

This commit is contained in:
Kovid Goyal
2021-07-27 09:03:11 +05:30
parent 17f3d2d581
commit 1bd39ff935
14 changed files with 42 additions and 29 deletions

View File

@@ -12,7 +12,7 @@ from typing import (
from .cli_stub import CLIOptions
from .conf.utils import resolve_config
from .constants import appname, defconf, is_macos, str_version
from .constants import appname, defconf, is_macos, str_version, website_url
from .options.types import Options as KittyOpts
from .typing import BadLineType, TypedDict
@@ -146,7 +146,7 @@ def file(x: str) -> str:
@role
def doc(x: str) -> str:
return f'https://sw.kovidgoyal.net/kitty/{x}/'
return website_url(x)
OptionSpecSeq = List[Union[str, OptionDict]]
@@ -293,7 +293,8 @@ Run the :italic:`{appname}` terminal emulator. You can also specify the :italic:
to run inside :italic:`{appname}` as normal arguments following the :italic:`options`.
For example: {appname} sh -c "echo hello, world. Press ENTER to quit; read"
For comprehensive documentation for kitty, please see: https://sw.kovidgoyal.net/kitty/''').format(appname=appname)
For comprehensive documentation for kitty, please see: {url}''').format(
appname=appname, url=website_url())
class PrintHelpForSeq: