@@ -42,57 +42,6 @@ For existing moban users, python 2 support has been dropped. Please stay with
4242versions lower than 0.7.0 if you are still using python 2.
4343
4444
45- Introduction
46- ================================================================================
47-
48- **moban ** enabled **continuous templating ** in `pyexcel <https://github.com/pyexcel/pyexcel >`_ and
49- `coala <https://github.com//coala/coala >`_ project to keep
50- documentation consistent across the documentations of individual libraries in the same
51- organisation. Here is the primary use case of moban, as of now:
52-
53- .. image :: https://github.com/moremoban/yehua/raw/dev/docs/source/_static/yehua-story.png
54- :width: 600px
55-
56-
57- And here is a list of other usages:
58-
59- #. `Django Mobans <https://github.com/django-mobans >`_, templates for django, docker etc.
60- #. `Math Sheets <https://github.com/chfw/math-sheets >`_, generate custom math sheets in pdf
61-
62- All use cases are documented `here <http://moban.readthedocs.org/en/latest/#tutorial >`_
63-
64- Support
65- ================================================================================
66-
67- If you like moban, please support me on github,
68- `patreon <https://www.patreon.com/bePatron?u=5537627 >`_
69- or `bounty source <https://salt.bountysource.com/teams/chfw-pyexcel >`_ to maintain
70- the project and develop it further.
71-
72- With your financial support, I will be able to invest
73- a little bit more time in coding, documentation and writing interesting extensions.
74-
75- Vision
76- ================================================================================
77-
78- Any template, any data in any location
79-
80- **moban ** started with bringing the high performance template engine (JINJA2) for web
81- into static text generation.
82-
83- **moban ** can use other python template engine: mako, handlebars, velocity,
84- haml, slim and tornado, can read other data format: json and yaml, and can access both
85- template file and configuration file in
86- any location: zip, git, pypi package, s3, etc.
87-
88-
89- Credit
90- ================================================================================
91-
92- `jinja2-fsloader <https://github.com/althonos/jinja2-fsloader >`_ is the key component to enable PyFilesystem2 support in moban
93- v0.6x. Please show your stars there too!
94-
95-
9645Quick start
9746================================================================================
9847
@@ -229,9 +178,63 @@ Then you can access your files in s3 bucket:
229178 $ cat moban.output
230179 world
231180
232- Where the configuration sits in a s3 bucket, the output is a file in a zip. The content of s3data.yaml is::
181+ Where the configuration sits in a s3 bucket, the output is a file in a zip. The content of s3data.yaml is:
182+
183+
184+ .. code-block:
233185
234186 hello: world
187+
188+
189+ Introduction
190+ ================================================================================
191+
192+ **moban ** enabled **continuous templating ** in `pyexcel <https://github.com/pyexcel/pyexcel >`_ and
193+ `coala <https://github.com//coala/coala >`_ project to keep
194+ documentation consistent across the documentations of individual libraries in the same
195+ organisation. Here is the primary use case of moban, as of now:
196+
197+ .. image :: https://github.com/moremoban/yehua/raw/dev/docs/source/_static/yehua-story.png
198+ :width: 600px
199+
200+
201+ And here is a list of other usages:
202+
203+ #. `Django Mobans <https://github.com/django-mobans >`_, templates for django, docker etc.
204+ #. `Math Sheets <https://github.com/chfw/math-sheets >`_, generate custom math sheets in pdf
205+
206+ All use cases are documented `here <http://moban.readthedocs.org/en/latest/#tutorial >`_
207+
208+ Support
209+ ================================================================================
210+
211+ If you like moban, please support me on github,
212+ `patreon <https://www.patreon.com/bePatron?u=5537627 >`_
213+ or `bounty source <https://salt.bountysource.com/teams/chfw-pyexcel >`_ to maintain
214+ the project and develop it further.
215+
216+ With your financial support, I will be able to invest
217+ a little bit more time in coding, documentation and writing interesting extensions.
218+
219+ Vision
220+ ================================================================================
221+
222+ Any template, any data in any location
223+
224+ **moban ** started with bringing the high performance template engine (JINJA2) for web
225+ into static text generation.
226+
227+ **moban ** can use other python template engine: mako, handlebars, velocity,
228+ haml, slim and tornado, can read other data format: json and yaml, and can access both
229+ template file and configuration file in
230+ any location: zip, git, pypi package, s3, etc.
231+
232+
233+ Credit
234+ ================================================================================
235+
236+ `jinja2-fsloader <https://github.com/althonos/jinja2-fsloader >`_ is the key component to enable PyFilesystem2 support in moban
237+ v0.6x. Please show your stars there too!
235238
236239
237240Installation
@@ -258,7 +261,8 @@ CLI documentation
258261.. code-block :: bash
259262
260263 usage: moban [-h] [-c CONFIGURATION] [-t TEMPLATE] [-o OUTPUT]
261- [-td [TEMPLATE_DIR [TEMPLATE_DIR ...]]] [-cd CONFIGURATION_DIR]
264+ [-td [TEMPLATE_DIR [TEMPLATE_DIR ...]]]
265+ [-pd [PLUGIN_DIR [PLUGIN_DIR ...]]] [-cd CONFIGURATION_DIR]
262266 [-m MOBANFILE] [-g GROUP] [--template-type TEMPLATE_TYPE]
263267 [-d DEFINE [DEFINE ...]] [-e EXTENSION [EXTENSION ...]] [-f]
264268 [--exit-code] [-V] [-v]
@@ -285,6 +289,8 @@ CLI documentation
285289 add more directories for template file lookup
286290 -c d CONFIGURATION_DIR, --configuration_dir CONFIGURATION_DIR
287291 the directory for configuration file lookup
292+ -p d [PLUGIN_DIR [PLUGIN_DIR ...]], --plugin_dir [PLUGIN_DIR [PLUGIN_DIR ...]]
293+ add more directories for plugin lookup
288294 -m MOBANFILE, --mobanfile MOBANFILE
289295 custom moban file
290296 -g GROUP, --group GROUP
@@ -302,19 +308,8 @@ CLI documentation
302308 Developer options:
303309 For debugging and development
304310
305- --exit-code tell moban to change exit code
311+ --exit-code by default, exist code 0 means no error, 1 means error
312+ occured. It tells moban to change 1 for changes, 2 for
313+ error occured
306314 -V, --version show program' s version number and exit
307315 -v show verbose, try -v, -vv, -vvv
308-
309- Exit codes
310- --------------------------------------------------------------------------------
311- By default:
312-
313- - 0 : no error
314- - 1 : error occured
315-
316- With `--exit-code`:
317-
318- - 0 : no changes
319- - 1 : has changes
320- - 2 : error occured
0 commit comments