pelican-cite icon indicating copy to clipboard operation
pelican-cite copied to clipboard

Doesn't work without summary metadata

Open groundflyer opened this issue 7 years ago • 9 comments

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

groundflyer avatar Oct 19 '16 17:10 groundflyer

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?

cmacmackin avatar Oct 23 '16 11:10 cmacmackin

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)

groundflyer avatar Oct 25 '16 10:10 groundflyer

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?

cmacmackin avatar Feb 27 '17 17:02 cmacmackin

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.

groundflyer avatar Mar 01 '17 18:03 groundflyer

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

cmacmackin avatar Mar 01 '17 18:03 cmacmackin

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 avatar Aug 08 '18 10:08 dbbz

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

dbbz avatar Aug 08 '18 10:08 dbbz

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

flyaway1217 avatar Jul 19 '19 02:07 flyaway1217

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

VorpalBlade avatar Jan 28 '20 14:01 VorpalBlade