You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tips.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Tips
5
5
Omit Domain Name
6
6
================
7
7
8
-
You can omit the prefixed domain name in directives and roles by setting the ``primary_domain`` to your :confval:`obj_domain_name` in :file:`conf.py`. For example, you can use ``.. cat::`` rather than ``.. obj:cat::``.
8
+
You can omit the prefixed domain name in directives and roles by setting the ``primary_domain`` to your :confval:`any_domain_name` in :file:`conf.py`. For example, you can use ``.. cat::`` rather than ``.. any:cat::``.
9
9
10
10
Documenting Section and Documentation
11
11
=====================================
@@ -52,16 +52,16 @@ When we see the breed of Indiana is "Husky", we may want to see what other huski
52
52
.. literalinclude:: /_schemas/dog2.py
53
53
:language: python
54
54
55
-
For field breed, its value is a string, so we simpily wrap value in to a ``obj:dog.breed`` role, In this case it create a reference to all Husky dog.
55
+
For field breed, its value is a string, so we simpily wrap value in to a ``any:dog.breed`` role, In this case it create a reference to all Husky dog.
56
56
57
-
For field color, its value is a string list, we have to iterate it and wrap element to to a ``obj:dog.color`` role, In this case it create a reference to all Black dog and White dog.
57
+
For field color, its value is a string list, we have to iterate it and wrap element to to a ``any:dog.color`` role, In this case it create a reference to all Black dog and White dog.
Copy file name to clipboardExpand all lines: docs/usage.rst
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Documenting Object
23
23
24
24
Once a schema created, the corresponding :ref:`directives`, :ref:`roles` and :ref:`indices` will be generated. You can use them to descibe, reference and index object in your documentation.
25
25
26
-
For the convenience, we use default domain name "any", and we assume that we have the following schema with in :obj:confval:`any_schemas`:
26
+
For the convenience, we use default domain name "any", and we assume that we have the following schema with in :any:confval:`any_schemas`:
27
27
28
28
.. _directives:
29
29
@@ -35,10 +35,10 @@ Directives
35
35
Object Description
36
36
~~~~~~~~~~~~~~~~~~
37
37
38
-
The aboved schema created a Directive_ named with "``domain``:\ ``objtype``" (In this case, it is ``obj:cat``) for descibing object(INC, it is cat🐈).
38
+
The aboved schema created a Directive_ named with "``domain``:\ ``objtype``" (In this case, it is ``any:cat``) for descibing object(INC, it is cat🐈).
39
39
40
40
Arguments
41
-
Arguments are used to specify the :obj:tmplvar:`name` of the object. The number argument is depends on the name :py:class:`any.Field` of Schema.
41
+
Arguments are used to specify the :any:tmplvar:`name` of the object. The number argument is depends on the name :py:class:`any.Field` of Schema.
42
42
43
43
- A ``None`` field means no argument is required
44
44
- For a non-``None`` Field, see :py:attr:`any.Field` for more details
@@ -47,7 +47,7 @@ Arguments
47
47
48
48
Specially, If first argument is ``_`` (underscore), the directive must be located after a `Section Title`_, the text of section title is the real first argument.
49
49
50
-
In this case, the ``obj:cat`` directive accepts multiple argument split by newline.
50
+
In this case, the ``any:cat`` directive accepts multiple argument split by newline.
51
51
52
52
Options
53
53
All attributes defined in schema are converted to options of directive. Further, they will available in various :ref:`Templates <writing-template>`.
@@ -61,7 +61,7 @@ Options
61
61
In this case, the directive has three options: ``id``, ``color`` and ``picture``.
62
62
63
63
Content
64
-
Content is used to specify the :obj:tmplvar:`content` of the object.
64
+
Content is used to specify the :any:tmplvar:`content` of the object.
65
65
66
66
- A ``None`` field means no content is required
67
67
- For a non-``None`` Field, see :py:attr:`any.Field` for more details
@@ -94,26 +94,26 @@ Same to :ref:`sphinx:xref-syntax`, explicit title ``:role:`title <target>``` is
94
94
General Reference
95
95
~~~~~~~~~~~~~~~~~
96
96
97
-
The aboved schema created a role named with "``domain``-\ ``objtype``" (In this case, it is ``obj:cat``) for creating a reference to :ref:`object-description`. The interpreted text can be value of *any referenceable field*.
97
+
The aboved schema created a role named with "``domain``-\ ``objtype``" (In this case, it is ``any:cat``) for creating a reference to :ref:`object-description`. The interpreted text can be value of *any referenceable field*.
Role "``domain``-\ ``objtype``.\ ``field``" will be created for all referenceable Fields (In this case, it is ``obj:cat.name``, ``any:cat.id`` and ``any:cat.color``).
110
+
Role "``domain``-\ ``objtype``.\ ``field``" will be created for all referenceable Fields (In this case, it is ``any:cat.name``, ``any:cat.id`` and ``any:cat.color``).
111
111
112
112
These roles also create reference to :ref:`object-description`. But the interpreted text must be value of field in role's name.
0 commit comments