Docs: generate relative url with link text in document

This commit is contained in:
pagedown
2021-12-08 17:20:52 +08:00
parent 4a7ae0f524
commit 2c78a22270
2 changed files with 5 additions and 6 deletions

View File

@@ -3,7 +3,6 @@
from typing import TYPE_CHECKING, Optional
from kitty.constants import website_url
from kitty.options.utils import parse_marker_spec
from .base import (
@@ -25,9 +24,9 @@ class CreateMarker(RemoteCommand):
short_desc = 'Create a marker that highlights specified text'
desc = (
'Create a marker which can highlight text in the specified window. For example: '
'create_marker text 1 ERROR. For full details see: {}'
).format(website_url('marks'))
'Create a marker which can highlight text in the specified window. For example:'
' :code:`create_marker text 1 ERROR`. For full details see: :doc:`marks`'
)
options_spec = MATCH_WINDOW_OPTION + '''\n
--self
type=bool-set

View File

@@ -25,8 +25,8 @@ class GetColors(RemoteCommand):
short_desc = 'Get terminal colors'
desc = (
'Get the terminal colors for the specified window (defaults to active window). '
'Colors will be output to stdout in the same syntax as used for kitty.conf'
'Get the terminal colors for the specified window (defaults to active window).'
' Colors will be output to stdout in the same syntax as used for kitty.conf'
)
options_spec = '''\
--configured -c