2011-01-19 16:22:15 +01:00
|
|
|
Frequently Asked Questions (FAQ)
|
|
|
|
|
################################
|
|
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
Here is a summary of the frequently asked questions for Pelican.
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
Is it mandatory to have a configuration file?
|
|
|
|
|
=============================================
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
No, it's not. Configuration files are just an easy way to configure Pelican.
|
|
|
|
|
For basic operations, it's possible to specify options while invoking Pelican
|
2012-07-01 10:52:39 -07:00
|
|
|
via the command line. See ``pelican --help`` for more information.
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
I'm creating my own theme. How do I use Pygments for syntax highlighting?
|
|
|
|
|
=========================================================================
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
Pygments adds some classes to the generated content. These classes are used by
|
|
|
|
|
themes to style code syntax highlighting via CSS. Specifically, you can
|
2012-07-01 10:52:39 -07:00
|
|
|
customize the appearance of your syntax highlighting via the ``.codehilite pre``
|
2012-03-06 06:13:17 -08:00
|
|
|
class in your theme's CSS file. To see how various styles can be used to render
|
|
|
|
|
Django code, for example, you can use the demo `on the project website
|
|
|
|
|
<http://pygments.org/demo/15101/>`_.
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
How do I create my own theme?
|
2011-01-19 16:22:15 +01:00
|
|
|
==============================
|
|
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
Please refer to :ref:`theming-pelican`.
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
How can I help?
|
2011-01-19 16:22:15 +01:00
|
|
|
================
|
|
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
There are several ways to help out. First, you can use Pelican and report any
|
|
|
|
|
suggestions or problems you might have on `the bugtracker
|
2012-07-01 10:52:39 -07:00
|
|
|
<https://github.com/ametaireau/pelican/issues>`_.
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
If you want to contribute, please fork `the git repository
|
|
|
|
|
<https://github.com/ametaireau/pelican/>`_, make your changes, and issue
|
|
|
|
|
a pull request. I'll review your changes as soon as possible.
|
2011-01-19 16:22:15 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
You can also contribute by creating themes and improving the documentation.
|
2011-11-27 18:00:29 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
I want to use Markdown, but I got an error.
|
|
|
|
|
===========================================
|
2011-11-27 18:00:29 +01:00
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
Markdown is not a hard dependency for Pelican, so you will need to explicitly
|
|
|
|
|
install it. You can do so by typing::
|
2011-11-27 18:00:29 +01:00
|
|
|
|
|
|
|
|
$ (sudo) pip install markdown
|
|
|
|
|
|
2012-03-06 06:13:17 -08:00
|
|
|
In case you don't have pip installed, consider installing it via::
|
2011-11-27 18:00:29 +01:00
|
|
|
|
|
|
|
|
$ (sudo) easy_install pip
|
2012-07-07 12:15:35 -07:00
|
|
|
|
|
|
|
|
How do I assign custom templates on a per page basis?
|
|
|
|
|
=====================================================
|
|
|
|
|
|
|
|
|
|
It's as simple as adding an extra line of metadata to any pages or articles you
|
|
|
|
|
want to have it's own template.
|
|
|
|
|
|
|
|
|
|
:template: template_name
|
|
|
|
|
|
|
|
|
|
Then just make sure to have the template installed in to your theme as
|
|
|
|
|
``template_name.html``.
|