Skip to content

Commit e095e93

Browse files
straight-shootaRX14
authored andcommittedOct 31, 2017
Fix docs path in .gitignore and Makefile (#5217)
* Fix docs directory in .gitignore (renamed in #4937) * Fix docs directory in Makefile (renamed in #4937) * Fix docs directory in bin/ci (renamed in #4937)
1 parent fbab3a3 commit e095e93

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ coverage/
1010
/Makefile.local
1111
all_spec
1212
/tmp
13-
/doc/
13+
/docs/
1414
/src/llvm/ext/llvm_ext.o
1515
/src/llvm/ext/llvm_ext.dwo
1616
/src/ext/*.o

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The [standard library documentation](https://crystal-lang.org/api/) is on the co
8181
There is a version updated with every push to the master branch [here](https://crystal-lang.org/api/master/).
8282
It uses a subset of [Markdown](http://daringfireball.net/projects/markdown/). You can [use Ruby as a source
8383
of inspiration](https://twitter.com/yukihiro_matz/status/549317901002342400) whenever applicable. To generate
84-
the docs execute `make doc`. Please follow the guidelines described in our
84+
the docs execute `make docs`. Please follow the guidelines described in our
8585
[language documentation](https://crystal-lang.org/docs/conventions/documenting_code.html), like the use of the third person.
8686

8787
### The standard library

‎Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ std_spec: $(O)/std_spec ## Run standard library specs
8888
compiler_spec: $(O)/compiler_spec ## Run compiler specs
8989
$(O)/compiler_spec $(SPEC_FLAGS)
9090

91-
.PHONY: doc
92-
doc: ## Generate standard library documentation
93-
$(BUILD_PATH) ./bin/crystal doc src/docs_main.cr
91+
.PHONY: docs
92+
docs: ## Generate standard library documentation
93+
$(BUILD_PATH) ./bin/crystal docs src/docs_main.cr
9494

9595
.PHONY: crystal
9696
crystal: $(O)/crystal ## Build the compiler

‎bin/ci

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ prepare_system() {
8484

8585
build() {
8686
with_build_env 'make std_spec clean'
87-
with_build_env 'make crystal std_spec compiler_spec doc'
87+
with_build_env 'make crystal std_spec compiler_spec docs'
8888
with_build_env 'find samples -name "*.cr" | xargs -L 1 ./bin/crystal build --no-codegen'
8989
with_build_env './bin/crystal tool format --check samples spec src'
9090
}
9191

9292
deploy() {
9393
export CURRENT_TAG=`git describe --tags --exact-match 2> /dev/null`
9494
export GIT_VERSION=`git describe --tags --long --always 2>/dev/null`
95-
on_deploy 'echo $GIT_VERSION > doc/revision.txt'
95+
on_deploy 'echo $GIT_VERSION > docs/revision.txt'
9696

97-
on_deploy aws s3 sync doc/ s3://crystal-api/api/$TRAVIS_BRANCH
97+
on_deploy aws s3 sync docs/ s3://crystal-api/api/$TRAVIS_BRANCH
9898

99-
on_deploy on_tag aws s3 sync doc/ s3://crystal-api/api/$CURRENT_TAG
99+
on_deploy on_tag aws s3 sync docs/ s3://crystal-api/api/$CURRENT_TAG
100100
cat - > .aws-config <<EOF
101101
{
102102
"IndexDocument": {

0 commit comments

Comments
 (0)
Please sign in to comment.