Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-05-31 08:06:52 +0300
committerEvan Read <eread@gitlab.com>2022-05-31 08:06:52 +0300
commitb398a5ed00379cc79d805bb4b3ddcd67c082457d (patch)
treead36442683b2f679d5b51ea1ff231eb9ae78f8bd /lib
parent0c4d450cbebd47b3e763be6b104b1e7cb4266cb2 (diff)
Fix various RuboCop offenses related to white space
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/navigation.rb1
-rw-r--r--lib/helpers/gitlab_kramdown.rb36
2 files changed, 19 insertions, 18 deletions
diff --git a/lib/gitlab/navigation.rb b/lib/gitlab/navigation.rb
index feb79a80..014f567f 100644
--- a/lib/gitlab/navigation.rb
+++ b/lib/gitlab/navigation.rb
@@ -73,6 +73,5 @@ module Gitlab
def dir
@dir ||= item.identifier.to_s[%r{(?<=/)[^/]+}]
end
-
end
end
diff --git a/lib/helpers/gitlab_kramdown.rb b/lib/helpers/gitlab_kramdown.rb
index c409a579..e9761f90 100644
--- a/lib/helpers/gitlab_kramdown.rb
+++ b/lib/helpers/gitlab_kramdown.rb
@@ -4,23 +4,25 @@ module Nanoc::Helpers
module GitLabKramdown
require 'kramdown'
def markdown(item, params = {})
- Nanoc::Filters::GitLabKramdown.new.run(item, {
- input: 'GitlabKramdown',
- syntax_highlighter: 'rouge',
- syntax_highlighter_opts: {
- # In kramdown 2.0, the plaintext parser was removed and replaced by the
- # :guess_lang option:
- #
- # - https://github.com/gettalong/kramdown/blob/master/doc/news/release_2_0_0.page
- # - https://github.com/gettalong/kramdown/pull/573
- guess_lang: true
- },
- default_lang: 'Plain Text',
- hard_wrap: false,
- auto_ids: true,
- toc_levels: 2..5,
- with_toc: true
- })
+ Nanoc::Filters::GitLabKramdown.new.run(
+ item,
+ {
+ input: 'GitlabKramdown',
+ syntax_highlighter: 'rouge',
+ syntax_highlighter_opts: {
+ # In kramdown 2.0, the plaintext parser was removed and replaced by the
+ # :guess_lang option:
+ #
+ # - https://github.com/gettalong/kramdown/blob/master/doc/news/release_2_0_0.page
+ # - https://github.com/gettalong/kramdown/pull/573
+ guess_lang: true
+ },
+ default_lang: 'Plain Text',
+ hard_wrap: false,
+ auto_ids: true,
+ toc_levels: 2..5,
+ with_toc: true
+ })
end
end
end