docs.scala-lang
docs.scala-lang copied to clipboard
scripts/run-tut.sh runs tut on too many files
in the Travis logs you see stuff like:
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-seo-tag-2.1.0/README.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/LICENSE.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/README.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/spec/fixtures/_my_collection/custom_permalink.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/spec/fixtures/_my_collection/custom_permalink_2.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/spec/fixtures/_my_collection/this-has-non-standard-chars.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/spec/fixtures/_posts/2013-12-12-dec-the-second.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/spec/fixtures/_posts/2014-03-02-march-the-second.md
[tut] compiling: ./vendor/bundle/ruby/2.0.0/gems/jekyll-sitemap-0.12.0/spec/fixtures/_posts/2014-03-04-march-the-fourth.md
this is slow which is annoying during interactive development. (and it also runs the risk of blowing up on something it shouldn't be scanning in the first place.)
The problem with scripts/run-tut.sh is that it uses a regex expression that gets all the markdown files under a given directory (). The fix to this issue should happen in this script file.
Fixing this issue requires to tweak this regex expression ("'.*.md$'") to only select the markdown files under the pertinent files to Jekyll: sips, tutorials and all the directories for language-specific docs (es, de, etc). I don't know if tut-tpm is expecting a concrete regex format, so having a look at that may be helpful to fix this issue :smile:.
@SethTisue FYI, I'll be including issues from this repo to the Scala Center hackathon issue so that someone can have a look at it. I'll be posting comments on concrete issues so that they are easier to finish off.
not sure if this is still an issue since we switched from tut to mdoc?