DSS_VERSION=14

doc:
	rm -rf man
	R --slave --no-restore -e "roxygen2::roxygenize()"

build-html-doc:
	rm -rf html-doc && mkdir -p html-doc
	echo 'library(pkgdown); build_site(".", override = list(destination = "html-doc"), examples=FALSE)'|R --no-save

upload-prod-html-doc: build-html-doc
	rsync -az html-doc/ dtkdevadm@dev.dataiku.com:www/doc.dataiku.com/htdocs/dss/api/${DSS_VERSION}/R/dataiku/

upload-head-html-doc: build-html-doc
	rsync -az html-doc/ dtkdevadm@dev.dataiku.com:www/doc-head.dataiku.com/htdocs/dss/api/${DSS_VERSION}/R/dataiku/
