mirror of https://github.com/CrimsonTome/tldr.git
Merge pull request #1 from ostera/markdown-lint
Makefile improvements and Gemfile additionwaldyrious/alt-syntax
commit
db18071a2c
|
@ -0,0 +1,16 @@
|
||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
kramdown (1.7.0)
|
||||||
|
mdl (0.2.1)
|
||||||
|
kramdown (~> 1.5, >= 1.5.0)
|
||||||
|
mixlib-cli (~> 1.5, >= 1.5.0)
|
||||||
|
mixlib-config (~> 2.1, >= 2.1.0)
|
||||||
|
mixlib-cli (1.5.0)
|
||||||
|
mixlib-config (2.1.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
mdl
|
18
Makefile
18
Makefile
|
@ -1,18 +1,24 @@
|
||||||
|
all: setup index
|
||||||
|
|
||||||
index:
|
index:
|
||||||
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
||||||
@echo "Index rebuilt."
|
@echo "Index rebuilt."
|
||||||
|
|
||||||
setup:
|
setup: hooks deps
|
||||||
|
|
||||||
|
hooks:
|
||||||
@cp ./scripts/pre-commit .git/hooks
|
@cp ./scripts/pre-commit .git/hooks
|
||||||
@chmod +x .git/hooks/pre-commit
|
@chmod +x .git/hooks/pre-commit
|
||||||
@echo "Git pre-commit hook installed."
|
@echo "Git pre-commit hook installed."
|
||||||
|
|
||||||
|
deps:
|
||||||
|
@bundle
|
||||||
|
@echo "OK"
|
||||||
|
|
||||||
@gem install mdl --install-dir .gem --no-rdoc --no-ri
|
lint:
|
||||||
@echo "Installed required Ruby gems under .gem"
|
|
||||||
|
|
||||||
lint:
|
|
||||||
@GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
@GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
||||||
|
|
||||||
lint-changed:
|
lint-changed:
|
||||||
@./scripts/lint-changed.sh
|
@./scripts/lint-changed.sh
|
||||||
|
|
||||||
|
.PHONY: index setup hooks deps lint lint-changed
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue