Skip to content

Commit

Permalink
Copy docs when compiling site
Browse files Browse the repository at this point in the history
  • Loading branch information
alexklibisz committed Apr 10, 2020
1 parent 53f77ef commit 51f9c07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ publish/release/python: .mk/client-python-publish-local
&& venv/bin/pdoc3 --html elastiknn -c show_type_annotations=True -o pdoc
touch $@

.mk/jekyll-site-build: docs/**/*
cd docs \
&& bundle install \
&& bundle exec jekyll build
.mk/jekyll-site-build: docs/**/* .mk/gradle-docs .mk/client-python-docs
cd docs && bundle install && bundle exec jekyll build
mkdir -p docs/_site/docs
rsync -av --delete build/docs/scaladoc docs/_site/docs
rsync -av --delete client-python/pdoc/elastiknn/ docs/_site/docs/pdoc
touch $@

compile/docs: .mk/gradle-docs .mk/client-python-docs
Expand All @@ -143,10 +144,6 @@ publish/docs: .mk/gradle-docs .mk/client-python-docs
rsync -av --delete build/docs/scaladoc $(site_srvr):$(site_arch)/$(version)
rsync -av --delete client-python/pdoc/elastiknn/ $(site_srvr):$(site_arch)/$(version)/pdoc

ssh $(site_srvr) mkdir -p $(site_main)/docs
rsync -av --delete build/docs/scaladoc $(site_srvr):$(site_main)/docs
rsync -av --delete client-python/pdoc/elastiknn/ $(site_srvr):$(site_main)/docs/pdoc

publish/site: .mk/jekyll-site-build
rsync -av --delete docs/_site/ $(site_srvr):$(site_main)

2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-PRE14
0.1.0-PRE15

0 comments on commit 51f9c07

Please sign in to comment.