Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5a633772
Commit
5a633772
authored
Jul 07, 2021
by
Evan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update help for renamed documentation index
Changelog: other
parent
c2c448c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/help_controller.rb
app/controllers/help_controller.rb
+1
-1
spec/controllers/help_controller_spec.rb
spec/controllers/help_controller_spec.rb
+1
-1
No files found.
app/controllers/help_controller.rb
View file @
5a633772
...
...
@@ -13,7 +13,7 @@ class HelpController < ApplicationController
def
index
# Remove YAML frontmatter so that it doesn't look weird
@help_index
=
File
.
read
(
Rails
.
root
.
join
(
'doc'
,
'
README
.md'
)).
sub
(
YAML_FRONT_MATTER_REGEXP
,
''
)
@help_index
=
File
.
read
(
Rails
.
root
.
join
(
'doc'
,
'
index
.md'
)).
sub
(
YAML_FRONT_MATTER_REGEXP
,
''
)
# Prefix Markdown links with `help/` unless they are external links.
# '//' not necessarily part of URL, e.g., mailto:mail@example.com
...
...
spec/controllers/help_controller_spec.rb
View file @
5a633772
...
...
@@ -274,7 +274,7 @@ RSpec.describe HelpController do
end
def
stub_readme
(
content
)
expect_file_read
(
Rails
.
root
.
join
(
'doc'
,
'
README
.md'
),
content:
content
)
expect_file_read
(
Rails
.
root
.
join
(
'doc'
,
'
index
.md'
),
content:
content
)
end
def
stub_two_factor_required
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment