summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTuro Soisenniemi <turo.soisenniemi@outlook.com>2018-02-14 19:41:13 +0000
committerTuro Soisenniemi <turo.soisenniemi@outlook.com>2018-02-14 20:40:47 +0000
commit9a450aedc2c81f8ce17e4c9b4238c58edbef8269 (patch)
treee65b54cb2d6620c03a21a0780a076b8ee3b04e95 /lib
parentdd633bc1888453a07474d045eca91a9e66302ce0 (diff)
downloadgitlab-ce-9a450aedc2c81f8ce17e4c9b4238c58edbef8269.tar.gz
Set Asciidoctor outfilesuffix to default .adoc
Without setting outfilesuffix Asciidoctor defaults to .html. When .html is used, inter-document cross references do not work in Gitlab's repository / file renderer. See more information from http://asciidoctor.org/docs/user-manual/#navigating-between-source-files and http://asciidoctor.org/docs/user-manual/#inter-document-cross-references
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/asciidoc.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/asciidoc.rb b/lib/gitlab/asciidoc.rb
index ee7f4be6b9f..62c41801d75 100644
--- a/lib/gitlab/asciidoc.rb
+++ b/lib/gitlab/asciidoc.rb
@@ -8,7 +8,8 @@ module Gitlab
module Asciidoc
DEFAULT_ADOC_ATTRS = [
'showtitle', 'idprefix=user-content-', 'idseparator=-', 'env=gitlab',
- 'env-gitlab', 'source-highlighter=html-pipeline', 'icons=font'
+ 'env-gitlab', 'source-highlighter=html-pipeline', 'icons=font',
+ 'outfilesuffix=.adoc'
].freeze
# Public: Converts the provided Asciidoc markup into HTML.