From 91b93d9d010f6d34943a0e4aeffd3c9f0ee2879c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 28 Apr 2017 23:49:03 +0300 Subject: [PATCH 1/1] Use htdocs.path instead of absolute path --- cookiecutter | 1 + project_template/publish-docs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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" -- 2.39.2