forked from magento/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'em_magedoc-3973' of github.com:magento/devdocs into em_…
…magedoc-3973
- Loading branch information
Showing
230 changed files
with
14,941 additions
and
1,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
style '_checks/md_style' | ||
ignore_front_matter true | ||
style '_checks/styles/style-rules-dev' | ||
ignore_front_matter true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
# This Jekyll hook runs Markdown linter (https://github.com/markdownlint/markdownlint) | ||
# on .md files that git tracks as 'modified' ('git ls-files -m'). | ||
# '_checks/md_style' sets a style (https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md) | ||
# '_checks/styles/style-rules-dev' sets a style (https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md) | ||
# that is a set of rules to be applied when linting (https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md). | ||
# '.mdlrc' sets linting configuration (https://github.com/markdownlint/markdownlint/blob/master/docs/configuration.md). | ||
# | ||
# The plugin runs in serving mode only. | ||
# | ||
Jekyll::Hooks.register :site, :post_write do |site| | ||
next unless site.config['serving'] | ||
|
||
staged_files = `git ls-files -m`.split("\n") | ||
staged_md_files = staged_files.select { |file| File.extname(file) == '.md' } | ||
next if staged_md_files.empty? | ||
|
||
puts 'Checking Markdown syntax...'.blue | ||
staged_md_files_as_a_string = staged_md_files.join(' ') | ||
report = `bin/mdl #{staged_md_files_as_a_string}` | ||
puts report.yellow | ||
puts 'The style is defined in _checks/md_style'.yellow | ||
puts 'The style is defined in _checks/styles/style-rules-dev'.yellow | ||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
exclude_rule 'MD001' | ||
exclude_rule 'MD002' | ||
exclude_rule 'MD003' | ||
exclude_rule 'MD004' | ||
exclude_rule 'MD005' | ||
exclude_rule 'MD006' | ||
exclude_rule 'MD007' | ||
exclude_rule 'MD009' | ||
exclude_rule 'MD010' | ||
exclude_rule 'MD011' | ||
exclude_rule 'MD012' | ||
exclude_rule 'MD013' | ||
exclude_rule 'MD014' | ||
exclude_rule 'MD018' | ||
exclude_rule 'MD019' | ||
exclude_rule 'MD020' | ||
exclude_rule 'MD021' | ||
exclude_rule 'MD022' | ||
exclude_rule 'MD023' | ||
exclude_rule 'MD024' | ||
exclude_rule 'MD025' | ||
exclude_rule 'MD026' | ||
exclude_rule 'MD027' | ||
exclude_rule 'MD028' | ||
exclude_rule 'MD029' | ||
exclude_rule 'MD030' | ||
exclude_rule 'MD031' | ||
exclude_rule 'MD032' | ||
exclude_rule 'MD033' | ||
exclude_rule 'MD034' | ||
exclude_rule 'MD035' | ||
exclude_rule 'MD036' | ||
exclude_rule 'MD037' | ||
exclude_rule 'MD038' | ||
exclude_rule 'MD039' | ||
exclude_rule 'MD040' | ||
exclude_rule 'MD041' | ||
exclude_rule 'MD046' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.