summaryrefslogtreecommitdiff
path: root/doc/user/asciidoc.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-06 21:09:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-06 21:09:19 +0000
commit7915c41e4261719719e791602c8235574157164c (patch)
tree6c1fc8c4ad4e974878c879fcc2c7c8f7d56d0cee /doc/user/asciidoc.md
parent495c22d1245b6212b21b7379a542df73dfa77206 (diff)
downloadgitlab-ce-7915c41e4261719719e791602c8235574157164c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/asciidoc.md')
-rw-r--r--doc/user/asciidoc.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/user/asciidoc.md b/doc/user/asciidoc.md
index c35d1da5a88..8834deb8d50 100644
--- a/doc/user/asciidoc.md
+++ b/doc/user/asciidoc.md
@@ -91,6 +91,8 @@ stem:[sqrt(4) = 2]
### Attributes
+**User-defined attributes**
+
```asciidoc
// define attributes in the document header
:name: value
@@ -104,6 +106,15 @@ C{pp} is not required, only Ruby.
Use a leading backslash to output a word enclosed in curly braces, like \{name}.
```
+**Environment attributes**
+
+GitLab sets the following environment attributes:
+
+| Attribute | Description |
+| :-------------- | :--------------------------------------------------------------------------------------------------------------------- |
+| `docname` | Root name of the source document (no leading path or file extension). |
+| `outfilesuffix` | File extension corresponding to the backend output (defaults to `.adoc` to make inter-document cross references work). |
+
### Links
```asciidoc