-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Update documenatation on include directive
- Loading branch information
Showing
4 changed files
with
121 additions
and
37 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
14 changes: 14 additions & 0 deletions
14
Documentation/WritingReST/Reference/Menus/_Include/_Content.rst.txt
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,14 @@ | ||
.. confval:: [content] | ||
:name: directive-include-content | ||
:type: string, local file path, relative or absolute | ||
|
||
Path to the file to be included. Can be relative or absolute. | ||
|
||
.. code-block:: rst | ||
.. include:: /some/absolute/path/_includes/_SomeFile.rst.txt | ||
.. include:: ../_includes/_SomeFile.rst.txt | ||
The path is calculated starting from the :path:`Documentation` directory. | ||
It is not possible to include files from different locations in an extension. |
8 changes: 8 additions & 0 deletions
8
Documentation/WritingReST/Reference/Menus/_Include/_ShowButtons.rst.txt
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,8 @@ | ||
.. confval:: :show-buttons: | ||
:name: directive-include-show-buttons | ||
:type: string, local file path, relative or absolute | ||
|
||
If set an edit on GitHub Button is displayed if the | ||
:ref:`edit-on-github workflow <settings-guides-github-workflow>` is enabled | ||
in the :ref:`guides.xml <guides-xml>`. In future other buttons might be | ||
displayed if configured in the guides.xml. |