From 778a322969a854dabc1f743766f2600acfea467b Mon Sep 17 00:00:00 2001 From: Lektor Bot Date: Sat, 19 Mar 2022 23:39:05 +0000 Subject: [PATCH] Synchronized build --- docs/api/plugins/plugin/config-filename/index.html | 2 +- docs/api/plugins/plugin/emit/index.html | 2 +- docs/api/plugins/plugin/get-config/index.html | 2 +- index.html | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/plugins/plugin/config-filename/index.html b/docs/api/plugins/plugin/config-filename/index.html index 78ee73cb..af2085d8 100644 --- a/docs/api/plugins/plugin/config-filename/index.html +++ b/docs/api/plugins/plugin/config-filename/index.html @@ -197,7 +197,7 @@ use of this property is to track dependencies.

class MyPlugin(Plugin): - def on_env_setup(self, **extra): + def on_setup_env(self, **extra): color = self.get_config().get('color') def get_css(artifact_name='/static/demo.css'): ctx = get_ctx() diff --git a/docs/api/plugins/plugin/emit/index.html b/docs/api/plugins/plugin/emit/index.html index 8ec633dc..3bd014f0 100644 --- a/docs/api/plugins/plugin/emit/index.html +++ b/docs/api/plugins/plugin/emit/index.html @@ -193,7 +193,7 @@ event name is prefixed with the plugin ID.

class MyPlugin(Plugin): - def on_env_setup(self, **extra): + def on_setup_env(self, **extra): self.emit('setup', foo=42)

Another plugin can then hook this:

diff --git a/docs/api/plugins/plugin/get-config/index.html b/docs/api/plugins/plugin/get-config/index.html index db15b805..8966b54a 100644 --- a/docs/api/plugins/plugin/get-config/index.html +++ b/docs/api/plugins/plugin/get-config/index.html @@ -194,7 +194,7 @@ navigate to the bar key in the [foo] section.

class MyPlugin(Plugin): - def on_env_setup(self, **extra): + def on_setup_env(self, **extra): color = self.get_config().get('color') self.env.jinja_env.globals['my_color'] = color diff --git a/index.html b/index.html index 9b74a1a7..3fed52c2 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ speak multiple languages and allow you to easily create localized websites.
-