mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Added release command, revised conf instructions.
This commit is contained in:
parent
bdaab0f015
commit
80f7dc88ae
3 changed files with 12 additions and 8 deletions
12
Makefile
12
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
|
||||
release:
|
||||
python setup.py register
|
||||
python setup.py sdist upload
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue