ablog/docs/manual/ablog-commands.rst

108 lines
2.5 KiB
ReStructuredText
Raw Normal View History

.. _commands:
ABlog Commands
==============
.. post:: Feb 1, 2015
:tags: config
2015-03-01 14:13:45 -08:00
:author: Ahmet, Mehmet
:category: Manual
:location: SF
`ablog` command is designed to streamline blog operations, i.e.
building, serving, and viewing blog pages, as well as starting a new
blog.
2015-02-02 23:25:41 -08:00
::
2015-02-02 23:25:41 -08:00
$ ablog
2015-03-01 14:13:45 -08:00
usage: ablog [-h] [-v] {start,build,serve,post} ...
2015-02-02 23:25:41 -08:00
ABlog for blogging with Sphinx
2015-02-02 23:25:41 -08:00
optional arguments:
-h, --help show this help message and exit
-v, --version print ABlog version and exit
2015-02-02 23:25:41 -08:00
subcommands:
2015-03-01 14:13:45 -08:00
{start,build,serve,post}
2015-02-02 23:25:41 -08:00
start start a new blog project
build build your blog project
2015-03-01 14:13:45 -08:00
serve serve and view your project
post create a blank post
2015-02-02 23:25:41 -08:00
See 'ablog <command> -h' for more information on a specific command.
2015-03-01 14:13:45 -08:00
Start a Project
---------------
2015-02-02 23:25:41 -08:00
::
2015-02-02 23:25:41 -08:00
$ ablog start -h
usage: ablog start [-h]
2015-02-02 23:25:41 -08:00
optional arguments:
-h, --help show this help message and exit
2015-03-01 14:13:45 -08:00
Build Website
-------------
2015-03-01 14:13:45 -08:00
2015-02-02 23:25:41 -08:00
::
$ ablog build -h
2015-03-01 14:13:45 -08:00
usage: ablog build [-h] [-b BUILDER] [-d DOCTREES] [-s SOURCEDIR] [-w WEBSITE]
[-T]
2015-03-01 14:13:45 -08:00
Build options can be set in conf.py. Default values of paths are relative to
conf.py.
optional arguments:
2015-03-01 14:13:45 -08:00
-h, --help show this help message and exit
-b BUILDER builder to use, default `ablog_builder` or dirhtml
-d DOCTREES path for the cached environment and doctree files, default
`ablog_doctrees` or _doctrees
-s SOURCEDIR root path for source files, default is path to the folder that
contains conf.py
-w WEBSITE path for website, default `ablog_website` or _website
-T show full traceback on exception
Serve and View
--------------
2015-02-02 23:25:41 -08:00
::
2015-02-02 23:25:41 -08:00
$ ablog serve -h
2015-03-01 14:13:45 -08:00
usage: ablog serve [-h] [-n] [-p PORT] [-w WEBSITE]
Serve options can be set in conf.py. Default values of paths are relative to
conf.py.
optional arguments:
-h, --help show this help message and exit
-n do not open website in a new browser tab
-p PORT port number for HTTP server; default is 8000
-w WEBSITE path for website, default `ablog_website` or _website
Create a Post
-------------
::
$ ablog post -h
usage: ablog post [-h] [-t TITLE] filename
positional arguments:
filename filename, e.g. my-nth-post.rst
2015-02-02 23:25:41 -08:00
optional arguments:
2015-03-01 14:13:45 -08:00
-h, --help show this help message and exit
-t TITLE post title; default is `New Post`