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 thebar
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.