Skip to content

Commit

Permalink
Add NodeJS package script to watch and serve changes on Docs CSS (#47)
Browse files Browse the repository at this point in the history
* Add NodeJS package script to watch and serve changes on Docs CSS

This is to allow working on the Docs CSS source without having to run make build-docs every time you make a change, and to serve the docs locally with live-reloading CSS, for easy local development.

* Create makefile target for docs devserver
  • Loading branch information
richardwestenra committed Jun 4, 2019
1 parent 73afd4a commit 005cec8
Show file tree
Hide file tree
Showing 4 changed files with 4,171 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -147,4 +147,5 @@ kedro.db
kedro/html
docs/tmp-build-artifacts
docs/build
docs/node_modules
docs/source/04_user_guide/source/.ipynb
7 changes: 4 additions & 3 deletions Makefile
@@ -1,4 +1,4 @@
install: docs/build/html/index.html
install: build-docs
cp -r docs/build/html kedro
pip install .

Expand All @@ -7,8 +7,6 @@ clean:
find . -regex ".*/__pycache__" -exec rm -rf {} +
find . -regex ".*\.egg-info" -exec rm -rf {} +

docs/build/html/index.html: build-docs

install-pip-setuptools:
python -m pip install -U "pip>=18.0, <19.0" "setuptools>=38.0, <39.0" wheel

Expand All @@ -33,5 +31,8 @@ SPHINXPROJ = Kedro
build-docs:
./docs/build-docs.sh

devserver: build-docs
cd docs && npm install && npm start

package: clean install
python setup.py sdist bdist_wheel

0 comments on commit 005cec8

Please sign in to comment.