diff --git a/Makefile b/Makefile index b88dc14..f079f1e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ -.PHONY: demo install rebuild +.PHONY: demo install rebuild release + +demo: + rm -rf demo + printf "demo\nABlog\nABlog Team\nhttp://ablog.readthedocs.org" | ablog start install: pip install -U --no-deps --force-reinstall . @@ -8,6 +12,6 @@ install: rebuild: cd docs; watchmedo shell-command --patterns='*.rst' --command='ablog build' --recursive -demo: - rm -rf demo - printf "demo\nABlog\nABlog Team\nhttp://ablog.readthedocs.org" | ablog start \ No newline at end of file +release: + python setup.py register + python setup.py sdist upload \ No newline at end of file diff --git a/README.rst b/README.rst index 6c6bf65..40cb78f 100644 --- a/README.rst +++ b/README.rst @@ -55,10 +55,10 @@ If you already have a project, enable blogging by making following changes in `` # 2. Append templates path to `ablog.templates_path()` import ablog - # 2a. `templates_path` exists + # 2a. if `templates_path` is defined templates_path.append(ablog.get_html_templates_path()) - # 2b. `templates_path` is not defined before + # 2b. if `templates_path` is not defined templates_path = [ablog.get_html_templates_path()] .. _ABlog Quick Start: http://ablog.readthedocs.org/manual/ablog-quick-start diff --git a/docs/index.rst b/docs/index.rst index 6c6bf65..40cb78f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -55,10 +55,10 @@ If you already have a project, enable blogging by making following changes in `` # 2. Append templates path to `ablog.templates_path()` import ablog - # 2a. `templates_path` exists + # 2a. if `templates_path` is defined templates_path.append(ablog.get_html_templates_path()) - # 2b. `templates_path` is not defined before + # 2b. if `templates_path` is not defined templates_path = [ablog.get_html_templates_path()] .. _ABlog Quick Start: http://ablog.readthedocs.org/manual/ablog-quick-start