VorpalBlade / pelican-cite

Allows the use of BibTeX citations within a Pelican site
GNU General Public License v3.0
24 stars 11 forks source link

Doesn't work without summary metadata #4

Open groundflyer opened 8 years ago

groundflyer commented 8 years ago

If summary metadata for article is not defined, bibliography and references are not rendered.

cmacmackin commented 8 years ago

I use this plugin routinely on articles without any summary metadata, so I'm not sure what the issue could be. Could you post the output from Pelican?

groundflyer commented 8 years ago

Disabling render_math plugin solves the problem. Here is debug info, it has only one warning:

Starting up Pelican and HTTP server
DEBUG: Adding current directory to system path
DEBUG: Temporarily adding PLUGIN_PATHS to system path
DEBUG: Loading plugin `pelican-cite`
DEBUG: Registering plugin `pelican-cite`
DEBUG: Loading plugin `pelican_gist`
DEBUG: Registering plugin `pelican_gist`
DEBUG: Loading plugin `pelican_vimeo`
DEBUG: Registering plugin `pelican_vimeo`
DEBUG: Loading plugin `representative_image`
DEBUG: Registering plugin `representative_image`
DEBUG: Restoring system path
  --- AutoReload Mode: Monitoring `content`, `theme` and `settings` for changes. ---

-> Modified: content, [static]images, settings, theme, [static]pdfs. re-generating...
DEBUG: Template list: ['!simple/archives.html', '!simple/article.html', '!simple/author.html', '!simple/authors.html', '!simple/base.html', '!simple/categories.html', '!simple/category.html', '!simple/gosquared.html', '!simple/index.html', '!simple/page.html', '!simple/pagination.html', '!simple/period_archives.html', '!simple/tag.html', '!simple/tags.html', '!simple/translations.html', 'analytics.html', 'archives.html', 'article.html', 'article_infos.html', 'author.html', 'authors.html', 'base.html', 'categories.html', 'category.html', 'comments.html', 'disqus_script.html', 'github.html', 'gosquared.html', 'index.html', 'page.html', 'pagination.html', 'period_archives.html', 'tag.html', 'taglist.html', 'tags.html', 'translations.html', 'twitter.html']
DEBUG: Read file cite-test.md -> Article
DEBUG: Signal article_generator_preread.send(ArticlesGenerator)
DEBUG: Successfuly imported extension module "markdown.extensions.codehilite".
DEBUG: Successfully loaded extension "markdown.extensions.codehilite.CodeHiliteExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.extra".
DEBUG: Successfuly imported extension module "markdown.extensions.smart_strong".
DEBUG: Successfully loaded extension "markdown.extensions.smart_strong.SmartEmphasisExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.fenced_code".
DEBUG: Successfully loaded extension "markdown.extensions.fenced_code.FencedCodeExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.footnotes".
DEBUG: Successfully loaded extension "markdown.extensions.footnotes.FootnoteExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.attr_list".
DEBUG: Successfully loaded extension "markdown.extensions.attr_list.AttrListExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.def_list".
DEBUG: Successfully loaded extension "markdown.extensions.def_list.DefListExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.tables".
DEBUG: Successfully loaded extension "markdown.extensions.tables.TableExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.abbr".
DEBUG: Successfully loaded extension "markdown.extensions.abbr.AbbrExtension".
DEBUG: Successfully loaded extension "markdown.extensions.extra.ExtraExtension".
DEBUG: Successfuly imported extension module "markdown.extensions.meta".
DEBUG: Successfully loaded extension "markdown.extensions.meta.MetaExtension".
DEBUG: Signal article_generator_context.send(ArticlesGenerator, <metadata>)
DEBUG: Signal page_generator_preread.send(PagesGenerator)
DEBUG: Signal page_generator_context.send(PagesGenerator, <metadata>)
DEBUG: Read file pages/about.md -> Page
DEBUG: Signal static_generator_preread.send(StaticGenerator)
DEBUG: Signal static_generator_context.send(StaticGenerator, <metadata>)
/home/toster/.local/lib64/python3.4/site-packages/pybtex/database/__init__.py:808: UserWarning: Person.get_part(abbr=True) is deprecated since 0.19: use pybtex.textutils.abbreviate()
  return self.get_part('prelast', abbr)
cmacmackin commented 7 years ago

I notice you are using this with the Pelican HTTP server. I haven't tested it with that function before. Could you please test if it works when simply generating a site as usual?

groundflyer commented 7 years ago

Regardless of generating method result the same. I'm sure that's because of conflict with render_math plugin.

Here the testpage and settings https://gist.github.com/groundflyer/3802ba746de7241e15ede7c4c8064321 Comment out the render_math to get valid page.

cmacmackin commented 7 years ago

That's also odd, as I've used it successfully with that plugin too. Could you post the output of pip freeze?

dbbz commented 6 years ago

I've also noticed the conflict render_math/pelican-cite. Unfortunately could not find exactly why. Note: the order of plugins matters and some configurations are bug-free.

dbbz commented 6 years ago

PS: RELATIVE_URLS=True and drafts seem to escape the bug somehow.

flyaway1217 commented 5 years ago

I encountered the same problem. However, I find that putting pelican-cite before render_mathcan solve the problem.

VorpalBlade commented 4 years ago

Is this issue still reproducible with the latest version? I personally use pelican_jsmath instead of render_math, and I have not observered this.