mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add a couple more documentation patterns
These are used in repositories like jashkenas/coffeescript and tj/git-extras.
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
## Documentation Conventions ##
|
## Documentation Conventions ##
|
||||||
|
|
||||||
- ^docs?/
|
- ^docs?/
|
||||||
- ^Documentation/
|
- ^[Dd]ocumentation/
|
||||||
|
- ^man/
|
||||||
|
|
||||||
- (^|/)CONTRIBUTING(\.|$)
|
- (^|/)CONTRIBUTING(\.|$)
|
||||||
- (^|/)COPYING(\.|$)
|
- (^|/)COPYING(\.|$)
|
||||||
|
|||||||
@@ -448,7 +448,12 @@ class TestBlob < Minitest::Test
|
|||||||
refute_predicate fixture_blob("project/docs/foo.html"), :documentation?
|
refute_predicate fixture_blob("project/docs/foo.html"), :documentation?
|
||||||
|
|
||||||
assert_predicate fixture_blob("Documentation/foo.md"), :documentation?
|
assert_predicate fixture_blob("Documentation/foo.md"), :documentation?
|
||||||
|
assert_predicate fixture_blob("documentation/foo.md"), :documentation?
|
||||||
refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation?
|
refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation?
|
||||||
|
refute_predicate fixture_blob("project/documentation/foo.md"), :documentation?
|
||||||
|
|
||||||
|
assert_predicate fixture_blob("man/foo.html"), :documentation?
|
||||||
|
refute_predicate fixture_blob("project/man/foo.html"), :documentation?
|
||||||
|
|
||||||
assert_predicate fixture_blob("README"), :documentation?
|
assert_predicate fixture_blob("README"), :documentation?
|
||||||
assert_predicate fixture_blob("README.md"), :documentation?
|
assert_predicate fixture_blob("README.md"), :documentation?
|
||||||
|
|||||||
Reference in New Issue
Block a user