Skip to content

Commit

Permalink
TextLintBear: Use asciidoctor
Browse files Browse the repository at this point in the history
asciidoctor does not depend on a compiled package,
allowing it to be installed more easily.

Closes #2929
  • Loading branch information
jayvdb committed Jul 16, 2019
1 parent 616771d commit 9b23878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bear-requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ npm_requirements:
version: ~1.5.9
textlint:
version: ~7.3.0
textlint-plugin-asciidoc-loose:
version: ~1.0.1
textlint-plugin-asciidoctor:
version: ~1.0.3
textlint-plugin-html:
version: ~0.1.5
textlint-plugin-review:
Expand Down
4 changes: 2 additions & 2 deletions bears/general/TextLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TextLintBear:

LANGUAGES = {'HTML', 'Markdown', 'reStructuredText'}
REQUIREMENTS = {NpmRequirement('textlint', '7.3.0'),
NpmRequirement('textlint-plugin-asciidoc-loose', '1.0.1'),
NpmRequirement('textlint-plugin-asciidoctor', '1.0.3'),
NpmRequirement('textlint-plugin-html', '0.1.5'),
NpmRequirement('textlint-plugin-review', '0.3.3'),
NpmRequirement('textlint-plugin-rst', '0.1.1'),
Expand Down Expand Up @@ -227,7 +227,7 @@ def generate_config(filename, file,

parent_config = {
'rules': options,
'plugins': ['asciidoc-loose', 'html', 'review', 'rst']
'plugins': ['asciidoctor', 'html', 'review', 'rst']
}

return json.dumps(parent_config)
Expand Down

0 comments on commit 9b23878

Please sign in to comment.