Skip to content

Commit be81387

Browse files
committed
add more details about links
1 parent d335d5a commit be81387

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
2-
* :doc:`/reference/reference_lua/box_index`
3-
* :doc:`/reference/reference_lua/box_error`
4-
* :doc:`/reference/reference_lua/box_backup`
1+
:doc:`/reference/reference_lua/box_index`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check out the :ref:`Quick start guide <vshard-quick-start>`.

doc/contributing/docs/markup/links.rst

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Linking to other documentation pages
77
To create a link to another document in our documentation, we use the ``:doc:`` role.
88
For example, this link points to the document ``/reference/reference_lua/box_error.rst``:
99

10-
.. code-block:: rst
10+
.. code-block:: rst
1111
12-
:doc:`box.error reference </reference/reference_lua/box_error>`
12+
:doc:`box.error reference </reference/reference_lua/box_error>`
1313
1414
Our convention is to put the full path to the referred document so that we can
1515
easily replace the path if it changes.
@@ -18,12 +18,12 @@ Note that we can omit the ``.rst`` part of the filename.
1818
You can use the target document's title as the link text.
1919
To do so, omit the text in the link definition:
2020

21-
.. literalinclude:: _includes/doc-link.rst
22-
:language: rst
21+
.. literalinclude:: _includes/doc-link.rst
22+
:language: rst
2323

2424
And you will get this:
2525

26-
.. include:: _includes/doc-link.rst
26+
.. include:: _includes/doc-link.rst
2727

2828
Linking to labels (anchors)
2929
---------------------------
@@ -56,24 +56,33 @@ The tag can be anything meaningful. The only guideline is for Tarantool syntax
5656
items (such as members), where the preferred tag syntax is
5757
``module_or_object_name dash member_name``. For example, ``box_space-drop``.
5858

59+
To add a link to an anchor, use the following syntax:
60+
61+
.. literalinclude:: _includes/ref-link.rst
62+
:language: rst
63+
64+
The result will be like this:
65+
66+
.. include:: _includes/ref-link.rst
67+
5968
Linking to external resources
6069
-----------------------------
6170

6271
To make an external link, use the following syntax:
6372

6473
.. code-block:: text
6574
66-
This is a paragraph that contains `a link <http://example.com/>`_.
75+
Feel free to report an issue at `Tarantool GitHub <https://github.com/tarantool/tarantool/issues>`_.
6776
6877
Avoid separating the link and the target definition, like this:
6978

7079
.. container:: dont
7180

7281
.. code-block:: rst
7382
74-
This is wrong way to make `a link`_.
83+
Feel free to report an issue at `Tarantool GitHub`_.
7584
76-
.. _a link: http://example.com/
85+
.. _Tarantool GitHub: https://github.com/tarantool/tarantool/issues
7786
78-
**Warning:** Every separated link tends to cause troubles when this documentation
79-
is translated to other languages. Please avoid using separated links.
87+
because every separated link tends to cause troubles when this documentation
88+
is translated to other languages.

0 commit comments

Comments
 (0)