From: Oleg Broytman Date: Fri, 28 Apr 2017 20:49:03 +0000 (+0300) Subject: Use htdocs.path instead of absolute path X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=commitdiff_plain;h=91b93d9d010f6d34943a0e4aeffd3c9f0ee2879c;hp=b2027c2ae3aa07681bd9881b9f3afc173fcd9782 Use htdocs.path instead of absolute path --- diff --git a/cookiecutter b/cookiecutter index 4923b8e..ffb815e 100755 --- a/cookiecutter +++ b/cookiecutter @@ -22,6 +22,7 @@ sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \ git init && git add . && git commit --message "Initial commit - created the project" && +git config htdocs.path "$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/"$project_name"/docs && cp -p "$HOME"/current/projects/m_lib/update-remotes . && echo /update-remotes >>.git/info/exclude && exec ./mk-git-aliases diff --git a/project_template/publish-docs b/project_template/publish-docs index bca4083..77c9336 100755 --- a/project_template/publish-docs +++ b/project_template/publish-docs @@ -1,8 +1,8 @@ #! /bin/sh -web="$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/{project}/docs +web="`git config --get --path htdocs.path`" && cd "`dirname \"$0\"`"/docs/_build/html && -rsync -ahP --del * --exclude=objects.inv "$web" && +rsync -ahP --del * --exclude=/objects.inv "$web" && exec chmod -R u=rwX,go=rX "$web"