How to use the pelican.signals.all_generators_finalized.connect function in pelican

To help you get started, we’ve selected a few pelican examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cmacmackin / scribbler / scribbler / clean_summary / clean_summary.py View on Github external
def register():
    signals.initialized.connect(init)
    try:
        signals.all_generators_finalized.connect(run_plugin)
    except AttributeError:
        # NOTE: This may result in #314 so shouldn't really be relied on
        # https://github.com/getpelican/pelican-plugins/issues/314
        signals.content_object_init.connect(clean_summary)
github JenkinsDev / pelican-readtime / readtime.py View on Github external
def register():
    signals.initialized.connect(initialize_parser)

    try:
        signals.all_generators_finalized.connect(run_read_time)
    except Exception as e:
        raise "ReadTime Plugin: Error during 'register' process: {}".format(str(e))
github mindcruzer / pelican-encrypt-content / encrypt_content / encrypt_content.py View on Github external
def register():
    signals.initialized.connect(pelican_initialized)
    signals.all_generators_finalized.connect(pelican_all_generators_finalized)
github cmacmackin / scribbler / scribbler / render_math / math.py View on Github external
def register():
    """Plugin registration"""
    signals.initialized.connect(pelican_init)
    signals.all_generators_finalized.connect(process_rst_and_summaries)
github barrysteyn / pelican_plugin-render_math / render_math.py View on Github external
def register():
    """Plugin registration"""
    signals.initialized.connect(pelican_init)
    # repeated
    signals.all_generators_finalized.connect(process_rst_and_summaries)