-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from junghoon-vans/docs/add-directive-type-inf…
…ormation docs(page): Add example usage for directive type
- Loading branch information
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
============== | ||
Directive Type | ||
============== | ||
|
||
The ``directive type`` is a string that specifies the type of directive. | ||
**varST** supports all of directives for substitution in reStructuredText. | ||
|
||
The example of directive type is following contents. | ||
|
||
Replacement Text | ||
================ | ||
|
||
Replacement Text is the most common type of directive. | ||
|
||
.. code-block:: bash | ||
$ varst 'varST=reStructuredText' | ||
The above command will update the substitution data of replacement text. | ||
|
||
.. code-block:: diff | ||
- .. |varST| replace:: variable | ||
+ .. |varST| replace:: reStructuredText | ||
The substitution data of ``varST`` is updated to ``reStructuredText``. | ||
|
||
Images | ||
====== | ||
|
||
Image directive is used to insert images into the document. | ||
|
||
.. code-block:: bash | ||
$ varst 'image url=https://example.com/new-image.png' | ||
The above command will update the substitution data of image directive. | ||
|
||
.. code-block:: diff | ||
- .. |image url| image:: https://example.com/old-image.png | ||
+ .. |image url| image:: https://example.com/new-image.png | ||
The substitution data of ``image url`` directive is updated to ``https://example.com/new-image.png``. | ||
|
||
Objects | ||
======= | ||
|
||
Object directive is used to associate ambiguous text with a object identifier. | ||
|
||
.. code-block:: bash | ||
$ varst 'isbn=9780738201443' | ||
The above command will update the substitution data of object directive. | ||
|
||
.. code-block:: diff | ||
- .. |isbn| book:: 0738201448 | ||
+ .. |isbn| book:: 9780738201443 | ||
The substitution data of ``isbn`` directive is updated to ``9780738201443``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters