mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Update the README / CLI
This commit is contained in:
parent
4c85555d33
commit
3cbd60360d
3 changed files with 50 additions and 2 deletions
49
README.rst
49
README.rst
|
|
@ -73,6 +73,55 @@ the options you can use::
|
||||||
|
|
||||||
$ pelican --help
|
$ pelican --help
|
||||||
|
|
||||||
|
Settings
|
||||||
|
--------
|
||||||
|
|
||||||
|
Pelican try to be configurable via a configuration file, that you can pass to
|
||||||
|
the command line. Here are the settings you can use, with some basic
|
||||||
|
description.
|
||||||
|
|
||||||
|
Please note that all the settings you put in this file will be passed to the
|
||||||
|
templates as well.
|
||||||
|
|
||||||
|
* `PATH` is the path to look at for input files.
|
||||||
|
* `THEME`: the theme to use to product the output. can be the complete static
|
||||||
|
path to a theme folder, or choosed between the default pelican themes (see
|
||||||
|
below)
|
||||||
|
* `OUTPUT_PATH`: Where to output the generated files. Default to "output"
|
||||||
|
* `SITENAME`: You site name,
|
||||||
|
* `DISPLAY_PAGES_ON_MENU`: Display or not the pages on the menu of the
|
||||||
|
template. Templates can follow or not this settings.
|
||||||
|
* `PDF_PROCESSOR`: Put True if you want to have PDF outputs as well as HTML
|
||||||
|
pages,
|
||||||
|
* `DEFAULT_CATEGORY`: The default category. `misc` by default.
|
||||||
|
* `FALLBACK_ON_FS_DATE`: Choose to fallback on filesystem dates informations if
|
||||||
|
any other way to retreive the date currrently exists.,
|
||||||
|
* `MARKUP`: A list of available markup languages you want to use. At the
|
||||||
|
moment, only available values are `rst` and `md`.
|
||||||
|
* `STATIC_PATHS`: The static paths you want to copy under "static"
|
||||||
|
* `FEED`: url to output the feed.,
|
||||||
|
* `CATEGORY_FEED`: Where to put the categories feeds. default is `feeds/%s.atom.xml`
|
||||||
|
|
||||||
|
Themes
|
||||||
|
------
|
||||||
|
|
||||||
|
3 themes are available. You can specify them using the `-t` option:
|
||||||
|
|
||||||
|
* notmyidea
|
||||||
|
* default
|
||||||
|
* martylachin
|
||||||
|
|
||||||
|
You can define your own theme too, and specify it's emplacement in the same
|
||||||
|
way.
|
||||||
|
|
||||||
|
The `notmyidea` theme can make good use of the following settings:
|
||||||
|
|
||||||
|
* `GITHUB_URL` = your github URL (if you have one)
|
||||||
|
* `DISQUS_SITENAME` can handle disqus comments
|
||||||
|
* `LINKS` is a list of tuples Title, Url, for links
|
||||||
|
* `SOCIAL` (('twitter', 'yourtwitter complete url'),) and any other name/link
|
||||||
|
you want to put under "social"
|
||||||
|
|
||||||
Why the name "Pelican" ?
|
Why the name "Pelican" ?
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
|
|
||||||
1
TODO
1
TODO
|
|
@ -3,4 +3,3 @@
|
||||||
* find a better way to specify the templates. an idea is simply to install the templates in a default path, and to add a way to specify them by default under a "_themes" dir.
|
* find a better way to specify the templates. an idea is simply to install the templates in a default path, and to add a way to specify them by default under a "_themes" dir.
|
||||||
* Make the program support UTF8-encoded files as input (and later: any encoding?)
|
* Make the program support UTF8-encoded files as input (and later: any encoding?)
|
||||||
* Change the directory structure ?
|
* Change the directory structure ?
|
||||||
* update the doc
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ parser = argparse.ArgumentParser(description="""A tool to generate a
|
||||||
static blog, with restructured text input files.""")
|
static blog, with restructured text input files.""")
|
||||||
|
|
||||||
parser.add_argument(dest='path',
|
parser.add_argument(dest='path',
|
||||||
help='Path where to find the content files (default is "content").')
|
help='Path where to find the content files')
|
||||||
parser.add_argument('-t', '--theme-path', dest='theme',
|
parser.add_argument('-t', '--theme-path', dest='theme',
|
||||||
help='Path where to find the theme templates. If not specified, it will'
|
help='Path where to find the theme templates. If not specified, it will'
|
||||||
'use the default one included with pelican.')
|
'use the default one included with pelican.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue