Closed ankush981 closed 8 years ago
Hi @ankush981 I'm totally new to pelican but this worked for me as follows:
Add the following to pelicanconf.py
:
PLUGIN_PATHS = ['plugins']
PLUGINS = ['render_math']
So here's what the structure of my pelican project looks like now:
.
├── Makefile
├── pelicanconf.py
├── plugins
│ └── render_math -> ../../../pelican_plugin-render_math
└── publishconf.py
As an alternative to creating a "plugins" directory ourselves and populating it with plugins, it looks like we could also use https://github.com/getpelican/pelican-plugins as the "plugins" directory.
@dandavison Thanks for your answer! I was eventually able to make it work by installing the pelican plugins bundle (can't find the link now) and following their instructions. :)
Hi, I'm not able to get this work properly. Some guidance, please. :smile:
What I did was clone the repo into a directory called
plugin_render_math
so that my website directory now looks like this:Then I added this to
pelicanconf.py
:Now when I finally do
pelican content
, I get this error:ImportError: No module named 'plugin_render_math'
I tried to fix this by changing the line in
pelicanconf.py
tofrom .plugin_render_math import render_math
but this gave the following error:SystemError: Parent module '' not loaded, cannot perform relative import
I understand I'm making a silly Python mistake somewhere, but I can't figure out where. Please help a bit?