How to use the pelican.signals.initialized 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 mosra / m.css / plugins / m / plots.py View on Github external
def register(): # for Pelican
    import pelican.signals

    pelican.signals.initialized.connect(_pelican_configure)
    pelican.signals.content_object_init.connect(new_page)
github mosra / m.css / plugins / m / code.py View on Github external
def register(): # for Pelican
    import pelican.signals

    pelican.signals.initialized.connect(_pelican_configure)
github mosra / m.css / plugins / m / dot.py View on Github external
def register(): # for Pelican
    import pelican.signals

    pelican.signals.initialized.connect(_pelican_configure)
github mosra / m.css / plugins / m / filesize.py View on Github external
def register(): # for Pelican
    import pelican.signals

    pelican.signals.initialized.connect(_pelican_configure)
github AlexJF / pelican-advthumbnailer / advthumbnailer.py View on Github external
def register():
    signals.initialized.connect(add_jinja2_ext)
    signals.finalized.connect(find_missing_images)
    signal("autostatic_path_found").connect(autostatic_path_found)
github peijunz / ipynb2pelican / reader.py View on Github external
def register():
    """
    Register the new "ipynb" reader
    """
    def add_reader(arg):
        arg.settings["READERS"]["ipynb"] = ipynbReader
    signals.initialized.connect(add_reader)
github ingwinlu / pelican-bootstrapify / bootstrapify.py View on Github external
def register():
    signals.initialized.connect(init_default_config)
    signals.content_object_init.connect(bootstrapify)
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 cmenguy / pelican-resume / pelican_resume / resume.py View on Github external
def register():
    signals.initialized.connect(init_default_config)
    signals.article_generator_finalized.connect(generate_pdf_resume)
github mosra / m.css / plugins / m / math.py View on Github external
def register():
    import pelican.signals

    pelican.signals.initialized.connect(_configure_pelican)
    pelican.signals.finalized.connect(save_cache)
    pelican.signals.content_object_init.connect(new_page)