Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
4d16568658
commit
0da3ea5374
9 changed files with 9 additions and 31 deletions
2
Gemfile
2
Gemfile
|
@ -150,7 +150,7 @@ gem 'deckar01-task_list', '2.3.1'
|
|||
gem 'gitlab-markup', '~> 1.7.1'
|
||||
gem 'github-markup', '~> 1.7.0', require: 'github/markup'
|
||||
gem 'commonmarker', '~> 0.21'
|
||||
gem 'kramdown', '~> 2.3.0'
|
||||
gem 'kramdown', '~> 2.3.1'
|
||||
gem 'RedCloth', '~> 4.3.2'
|
||||
gem 'rdoc', '~> 6.1.2'
|
||||
gem 'org-ruby', '~> 0.9.12'
|
||||
|
|
|
@ -669,7 +669,7 @@ GEM
|
|||
kgio (2.11.3)
|
||||
knapsack (1.17.0)
|
||||
rake
|
||||
kramdown (2.3.0)
|
||||
kramdown (2.3.1)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
|
@ -1471,7 +1471,7 @@ DEPENDENCIES
|
|||
jwt (~> 2.1.0)
|
||||
kaminari (~> 1.0)
|
||||
knapsack (~> 1.17)
|
||||
kramdown (~> 2.3.0)
|
||||
kramdown (~> 2.3.1)
|
||||
kubeclient (~> 4.9.1)
|
||||
lefthook (~> 0.7)
|
||||
letter_opener_web (~> 1.3.4)
|
||||
|
|
5
changelogs/unreleased/sh-remove-kramdown-patch.yml
Normal file
5
changelogs/unreleased/sh-remove-kramdown-patch.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Remove Kramdown patch and update to v2.3.1 gem
|
||||
merge_request: 56917
|
||||
author:
|
||||
type: fixed
|
|
@ -1,25 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
#
|
||||
# This pulls in https://github.com/gettalong/kramdown/pull/708 for kramdown v2.3.0.
|
||||
# Remove this file when that pull request is merged and released.
|
||||
require 'kramdown/converter'
|
||||
require 'kramdown/converter/syntax_highlighter/rouge'
|
||||
|
||||
module Kramdown::Converter::SyntaxHighlighter
|
||||
module Rouge
|
||||
def self.formatter_class(opts = {})
|
||||
case formatter = opts[:formatter]
|
||||
when Class
|
||||
formatter
|
||||
when /\A[[:upper:]][[:alnum:]_]*\z/
|
||||
::Rouge::Formatters.const_get(formatter, false)
|
||||
else
|
||||
# Available in Rouge 2.0 or later
|
||||
::Rouge::Formatters::HTMLLegacy
|
||||
end
|
||||
rescue NameError
|
||||
# Fallback to Rouge 1.x
|
||||
::Rouge::Formatters::HTML
|
||||
end
|
||||
end
|
||||
end
|
|
@ -10,7 +10,6 @@ type: reference
|
|||
> - [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/4540) in GitLab 13.8.
|
||||
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/270059) in GitLab 13.10.
|
||||
|
||||
The pipeline editor is the primary place to edit the GitLab CI/CD configuration in
|
||||
The pipeline editor is the primary place to edit the GitLab CI/CD configuration in
|
||||
the `.gitlab-ci.yml` file in the root of your repository. To access the editor, go to **CI/CD > Editor**.
|
||||
|
||||
|
|
|
@ -62,7 +62,6 @@ Before you push your changes, Lefthook automatically runs the following checks:
|
|||
- SCSS lint: Run `yarn lint:stylelint` checks (with the [`.stylelintrc`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/.stylelintrc) configuration) on the modified `*.scss{,.css}` files. Tags: `stylesheet`, `css`, `style`.
|
||||
- RuboCop: Run `bundle exec rubocop` checks (with the [`.rubocop.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/.rubocop.yml) configuration) on the modified `*.rb` files. Tags: `backend`, `style`.
|
||||
- Vale: Run `vale` checks (with the [`.vale.ini`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/.vale.ini) configuration) on the modified `*.md` files. Tags: `documentation`, `style`.
|
||||
- Documentation metadata: Run checks for the absence of [documentation metadata](../documentation/index.md#metadata).
|
||||
|
||||
In addition to the default configuration, you can define a [local configuration](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#local-config).
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe 'Kramdown patch for syntax highlighting formatters' do
|
||||
RSpec.describe 'Ensure kramdown detects invalid syntax highlighting formatters' do
|
||||
subject { Kramdown::Document.new(options + "\n" + code).to_html }
|
||||
|
||||
let(:code) do
|
0
vendor/gitignore/C++.gitignore
vendored
Normal file → Executable file
0
vendor/gitignore/C++.gitignore
vendored
Normal file → Executable file
0
vendor/gitignore/Java.gitignore
vendored
Normal file → Executable file
0
vendor/gitignore/Java.gitignore
vendored
Normal file → Executable file
Loading…
Reference in a new issue