From 8c95647cb6eaea7ef6e35f901ccb9a7076f3ca03 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sat, 15 Jun 2013 11:55:36 +0200 Subject: [PATCH] fix some typos --- CHANGES | 8 ++++---- docs/hooks.rst | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGES b/CHANGES index b785eca2..3adfc958 100644 --- a/CHANGES +++ b/CHANGES @@ -12,7 +12,7 @@ Changelog for Acrylamid ### What's new? -- filter configuration is now part of its internal hash and will mark the +- filter configuration is now part of the internal hash and will mark the cache object as invalid to force recompilation. Appendum to #118. - #124 – summarize and intro filter ignore img, audio & video tags by default. You can disable this feature by setting `*_IGNORE` to an empty list (`[]`). @@ -48,8 +48,8 @@ Released on February, 12th, 2013 – Almost stable. - #105 – new archive view to render yearly, monthly and/or daily archives and has replaced the article view in the themes. The article view remains in the Acrylamid core but is likely to become deprecated in the future. -- #104 – simple and advanced, multhithreaded hooks during compilation, see - http://posativ.org/acrylamid/hooks.rst for more information. +- #104 – simple and advanced, multi-threaded hooks during compilation, see + http://posativ.org/acrylamid/hooks.html for more information. - Jinja2 content filter imports macros from theme/macros.html automatically into your entry namespace. - #102 – enrich HTML metadata @@ -72,7 +72,7 @@ Released on February, 12th, 2013 – Almost stable. - #117 – fix a redirection issue where `/foo` has been resolved to `/output/foo/` instead of `/foo/` solely. - #116 – serving from non-root path has been fixed -- #111 – prevent duplicate summarize link insertion for modus 0 +- #111 – prevent duplicate summarize link insertion for mode 0 - sitemap may have included drafts unintentional if routed through `'/drafts/'` - automatically adding the index.html to any route without checking if the path has already an extension. Now, Acrylamid only appends an `index.html` diff --git a/docs/hooks.rst b/docs/hooks.rst index 49d38497..77ae3cbc 100644 --- a/docs/hooks.rst +++ b/docs/hooks.rst @@ -11,11 +11,11 @@ By default, all hooks are executed in parallel (not affected by the GIL if you run external processes/commands), you can disable this behavior by setting ``HOOKS_MT`` to ``False``. -There are two different types of hooks. The simple hook "listens" on the -create and update events and simply calls your function with the namespace [#1] of -the event and the path, in this order. Whereas the advanced hook hooks into -all available event types but requires a path translation function to -automatically determine whether the callback should be executed or not. +There are two different types of hooks. The simple hook "listens" on the create +and update events and simply calls your function with the namespace [#1]_ of the +event and the path, in this order. Whereas the advanced hook hooks into all +available event types but requires a path translation function to automatically +determine whether the callback should be executed or not. Instead of writing callbacks in Python, you can also supply a shell command with one (simple) or two (advanced) arguments. The namespace is not available