Commit Graph

54 Commits

Author SHA1 Message Date
GitLab Bot 7f73b108d4 Add latest changes from gitlab-org/gitlab@master 2023-09-14 12:09:48 +00:00
GitLab Bot 704ed7ea39 Add latest changes from gitlab-org/gitlab@master 2022-09-09 12:12:03 +00:00
GitLab Bot f1284938ed Add latest changes from gitlab-org/gitlab@master 2022-05-30 12:08:23 +00:00
GitLab Bot 7e964f54ed Add latest changes from gitlab-org/gitlab@master 2022-04-05 12:10:23 +00:00
GitLab Bot 6dd9e3644e Add latest changes from gitlab-org/gitlab@master 2021-12-07 12:10:33 +00:00
GitLab Bot b808458daa Add latest changes from gitlab-org/gitlab@master 2021-11-09 12:12:15 +00:00
GitLab Bot 2495263140 Add latest changes from gitlab-org/gitlab@master 2021-10-14 12:09:39 +00:00
GitLab Bot 6b8af95df6 Add latest changes from gitlab-org/gitlab@master 2021-07-07 09:08:35 +00:00
GitLab Bot 980d813e90 Add latest changes from gitlab-org/gitlab@master 2021-02-22 12:10:38 +00:00
GitLab Bot bf217da41b Add latest changes from gitlab-org/gitlab@master 2021-02-11 21:09:00 +00:00
GitLab Bot 8f71e69fdb Add latest changes from gitlab-org/gitlab@master 2020-10-13 06:09:09 +00:00
GitLab Bot 5ae54edfa9 Add latest changes from gitlab-org/gitlab@master 2020-10-08 00:08:30 +00:00
GitLab Bot 5460c19548 Add latest changes from gitlab-org/gitlab@master 2020-10-05 12:08:47 +00:00
GitLab Bot ada214dc52 Add latest changes from gitlab-org/gitlab@master 2020-04-30 09:09:39 +00:00
GitLab Bot 0d83264a7a Add latest changes from gitlab-org/gitlab@master 2020-04-15 15:09:17 +00:00
GitLab Bot 190e204dec Add latest changes from gitlab-org/gitlab@master 2019-11-17 12:06:19 +00:00
GitLab Bot 0a850868df Add latest changes from gitlab-org/gitlab@master 2019-10-09 12:06:13 +00:00
Stan Hu f93b2e02a5 Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
Vasiliy Ermolovich 29a68cc5bc Use Rack::Utils.clean_path_info instead of copy-pasted version. 2019-04-04 16:12:52 +03:00
Frank Sauerburger 752887b9a7
Update RE used to prefix links with /help/
Update the regular expression in the help controller used to prefix relative
links on the help page with /help/. As suggested by @rymai, the look-ahead
pattern to detect external links is simplified from `[a-zA-Z0-9.+-]` to `\w`.
2019-02-12 12:44:14 +01:00
Frank Sauerburger 44d0d0e6f9
Fix broken links on help page
Update the help controller to correctly handle relative links on the help pages
when the relative link is before an external link on the same line in the
markdown file.

Test cases have been implement to check for
 - relative links before external link on same line,
 - HTTPS in query part of link,
 - URLs without '//' and
 - protocol-relative links.
2019-02-11 23:41:58 +01:00
gfyoung 73322a0e55 Enable frozen string in app/controllers/**/*.rb
Enables frozen string for the following:

* app/controllers/*.rb
* app/controllers/admin/**/*.rb
* app/controllers/boards/**/*.rb
* app/controllers/ci/**/*.rb
* app/controllers/concerns/**/*.rb

Partially addresses #47424.
2018-09-18 21:22:45 -07:00
Takuya Noguchi 2b6307f6ad Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
Francisco Lopez 294f40e2c8 Added ssh fingerprint, gitlab ci and pages information in an instance configuration page
Closes #25142
2017-10-25 23:51:26 +03:00
Achilleas Pipinellis 52ddf8e64d
Do not show YAML frontmatter for doc pages under /help
We recently started adding YAML frontmatter in docs so that we can
show more information, but that only works for the docs portal at
docs.gitlab.com.

For example, we want to add a last_updated entry
https://gitlab.com/gitlab-org/gitlab-ce/issues/37677

Whereas this is useful for the docs portal, it looks ugly for docs
under /help.
2017-09-19 11:47:36 +02:00
Robert Speicher 191bcb4d1b Don't perform Devise trackable updates on blocked User records 2017-02-10 11:51:14 -05:00
Rémy Coutable 633538151b
Fix URL rewritting in the Help section
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-01 16:40:48 +01:00
David Wagner c4ded595cc Fix broken external links in help/index.html
An external link was recently added but was broken because
'https://gitlab.com/help/' was prepended to every link in the page.

Since no link in the main help readme begins with "help" and since doing
so wouldn't make sense, the substitution conditionaly prepending "help"
can be simplified and reused.

Signed-off-by: David Wagner <david@marvid.fr>
2016-11-20 20:15:08 +01:00
Fu Xu b99282804d fix error links in help page 2016-11-12 21:45:45 +08:00
Connor Shea b1c9475443
Replace reject_blocked with reject_blocked! in callbacks.
In Rails 4.2 and below, skipping callbacks (skip_before_action, skip_after_action, etc.) that use methods which do not exist will not throw any errors.

On the other hand, Rails 5 does. See https://github.com/rails/rails/pull/19029

After testing with Rails 5 I noticed there are some methods that don't actually exist (because they were renamed, usually), this fixes a few instances of those.

reject_blocked! was introduced in c9def945d4, I can't find any references to reject_blocked ever existing.
2016-07-27 13:56:30 -06:00
Rémy Coutable 6b7e9c7655
Remove VideoJS and clean the integration
Handle videos in:
- MD preview in notes: commit, issue/MR, MR diff
- New notes in: commit, issue/MR, MR diff
- Persisted notes in: commit, issue/MR, MR diff

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-20 11:36:42 +02:00
Connor Shea bd09b2d563
Clean path info 2016-07-11 13:12:55 -06:00
Connor Shea 3358afa758
Update the help_page_path route to accept paths directly instead of using parameters. 2016-07-11 12:55:25 -06:00
Jacob Schatz e79b0dd762 Simplify random user generation. 2016-04-16 16:00:30 -04:00
Jacob Schatz ffd2416c56 Make a user available for the user variable 2016-04-16 09:28:04 -04:00
Robert Speicher 95f73a68fa Simplify help path prefixing 2015-09-23 00:24:17 -04:00
Robert Speicher 64e0dfa530 Prevent double-prefixing of help page paths
Prior, because the link "api/README.md" was matched twice, the first
link became "help/help/api/README.md". Now we do a negative lookahead to
make sure the link doesn't start with `help/`.

This fix is still not ideal, see TODO note.
2015-09-22 18:26:51 -04:00
Douwe Maan c258e97747 Make Help accessible for guests. 2015-09-08 14:42:30 +01:00
Robert Speicher a42c548a8d Use File.join instead of Rails.root.join in HelpController 2015-08-18 09:08:03 -07:00
Douwe Maan 92fd3ccee0 Add helpers for header title and sidebar, and move setting those from controllers to layouts. 2015-05-01 10:39:16 +02:00
Douwe Maan 8c4b6d426d Set head panel title of help section. 2015-04-30 21:28:07 +02:00
Douwe Maan 26ad250989 Add a page title to every page. 2015-04-30 19:12:15 +02:00
Robert Speicher 2d4ffce826 Loosen help page parameter constraints for category 2015-04-15 13:15:18 -04:00
Robert Speicher 3052e89420 Re-fix image rendering for help pages 2015-04-15 12:45:31 -04:00
Robert Speicher ef47ea3d39 Revert "Fix and improve help rendering"
This reverts commit d365004e68.
2015-04-15 12:24:44 -04:00
Douwe Maan 5e2f25c32e Add explanation to HelpController#clean_path_info. 2015-04-14 13:07:15 +02:00
Douwe Maan edd05fc48c Fix directory traversal vulnerability around help pages. 2015-04-10 18:18:37 +02:00
Sullivan SENECHAL d365004e68 Fix and improve help rendering 2015-04-03 11:56:50 +02:00
Dmitriy Zaporozhets b5c3e1a431 Add GitLab UI development kit 2015-03-08 14:46:22 -07:00
Dmitriy Zaporozhets 6a7990c007
Remove garbage and apply wiki style
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-14 15:51:07 +03:00