Classify javadoc/ directories as documentation

This commit is contained in:
Adam Roben
2015-02-20 10:24:38 -05:00
parent 60deead669
commit c7c0c30ecf
2 changed files with 7 additions and 1 deletions

View File

@@ -7,12 +7,15 @@
# Please add additional test coverage to
# `test/test_blob.rb#test_documentation` if you make any changes.
## Documentation Conventions ##
## Documentation directories ##
- ^docs?/
- ^[Dd]ocumentation/
- (^|/)javadoc/
- ^man/
## Documentation files ##
- (^|/)CONTRIBUTING(\.|$)
- (^|/)COPYING(\.|$)
- (^|/)INSTALL(\.|$)

View File

@@ -452,6 +452,9 @@ class TestBlob < Minitest::Test
refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation?
refute_predicate fixture_blob("project/documentation/foo.md"), :documentation?
assert_predicate fixture_blob("javadoc/foo.html"), :documentation?
assert_predicate fixture_blob("project/javadoc/foo.html"), :documentation?
assert_predicate fixture_blob("man/foo.html"), :documentation?
refute_predicate fixture_blob("project/man/foo.html"), :documentation?