Skip to content

Commit

Permalink
fixup! Rename website to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesroutley committed Jul 12, 2017
1 parent 0127da1 commit 26d647b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
58 changes: 29 additions & 29 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean-pyc clean-build docs clean website
.PHONY: clean-pyc clean-build docs clean docs
define BROWSER_PYSCRIPT
import os, webbrowser, sys
try:
Expand Down Expand Up @@ -82,42 +82,42 @@ docs:
servedocs: docs
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .

website-api:
rm -f website/_api/sceptre.rst
rm -f website/_api/modules.rst
sphinx-apidoc -o website/_api sceptre
$(MAKE) -C website/_api clean
$(MAKE) -C website/_api html
mkdir -p website/docs/api
rm -rf website/docs/api/_static
mkdir -p website/docs/api/_static/
cp -r website/_api/_build/html/_static website/docs/api/
rm -f website/docs/api/sceptre.html
cp -r website/_api/_build/html/ website/docs/api/
docs-api:
rm -f docs/_api/sceptre.rst
rm -f docs/_api/modules.rst
sphinx-apidoc -o docs/_api sceptre
$(MAKE) -C docs/_api clean
$(MAKE) -C docs/_api html
mkdir -p docs/docs/api
rm -rf docs/docs/api/_static
mkdir -p docs/docs/api/_static/
cp -r docs/_api/_build/html/_static docs/docs/api/
rm -f docs/docs/api/sceptre.html
cp -r docs/_api/_build/html/ docs/docs/api/

website-latest: website-api
$(MAKE) -C website build-latest
docs-latest: docs-api
$(MAKE) -C docs build-latest

website-tag: website-api
$(MAKE) -C website build-tag
docs-tag: docs-api
$(MAKE) -C docs build-tag

website-dev: website-api
$(MAKE) -C website build-dev
docs-dev: docs-api
$(MAKE) -C docs build-dev

website-commit: website-api
$(MAKE) -C website build-commit
docs-commit: docs-api
$(MAKE) -C docs build-commit

serve-website-latest: website-latest
$(MAKE) -C website serve-latest
serve-docs-latest: docs-latest
$(MAKE) -C docs serve-latest

serve-website-tag: website-tag
$(MAKE) -C website serve-tag
serve-docs-tag: docs-tag
$(MAKE) -C docs serve-tag

serve-website-dev: website-dev
$(MAKE) -C website serve-dev
serve-docs-dev: docs-dev
$(MAKE) -C docs serve-dev

serve-website-commit: website-commit
$(MAKE) -C website serve-commit
serve-docs-commit: docs-commit
$(MAKE) -C docs serve-commit

dist: clean
python setup.py sdist
Expand Down
18 changes: 9 additions & 9 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- pip install -r requirements_tests.txt
- make install
# Jekyll dependencies
- cd website && make install
- cd docs && make install
test:
override:
- make lint
Expand All @@ -20,18 +20,18 @@ test:
parallel: true
files:
- integration-tests/features/*.feature
- make docs
deployment:
production:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- aws s3 sync ~/sceptre/docs/_build/html s3://sceptre.cloudreach.com/latest/docs/ --delete
- aws s3 sync ~/sceptre/docs/_build/html s3://sceptre.cloudreach.com/$CIRCLE_TAG/docs/ --delete
- aws s3 sync ~/sceptre/docs/_build/html s3://sceptre.cloudreach.com/$SHORT_SHA1/dev/docs/ --delete
- make docs-latest
- aws s3 sync ~/sceptre/docs/_site s3://sceptre.cloudreach.com/latest/ --delete
- make docs-tag
- aws s3 sync ~/sceptre/docs/_site s3://sceptre.cloudreach.com/$GIT_TAG/ --delete
develop:
branch: master
commands:
- make website-dev
- aws s3 sync ~/sceptre/website/_site s3://sceptre.cloudreach.com/dev/ --delete
- make website-commit
- aws s3 sync ~/sceptre/website/_site s3://sceptre.cloudreach.com/$SHORT_SHA1/ --delete
- make docs-dev
- aws s3 sync ~/sceptre/docs/_site s3://sceptre.cloudreach.com/dev/ --delete
- make docs-commit
- aws s3 sync ~/sceptre/docs/_site s3://sceptre.cloudreach.com/$SHORT_SHA1/ --delete

0 comments on commit 26d647b

Please sign in to comment.