Skip to content

Commit

Permalink
doc: cleaning docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Dec 11, 2023
1 parent 5841cef commit 9a21bcb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docs/3-Templates.md
@@ -1,7 +1,7 @@
<!--
description: "Working with layouts and templates."
date: 2021-05-07
updated: 2023-10-21
updated: 2023-12-11
alias: documentation/layouts
-->
# Templates
Expand Down Expand Up @@ -1261,8 +1261,8 @@ php cecil.phar util:extract
[`partials/languages.html.twig`](https://github.com/Cecilapp/Cecil/blob/master/resources/layouts/partials/languages.html.twig)
: A basic switcher between [languages](4-Configuration.md#languages).

## Custom extension
## Extend

:::tip
You can extend Cecil with [custom extension](7-Extend.md#templates-extension).
You can add custom [functions](3-Templates.md#functions) and [filters](3-Templates.md#filters) with a [_Renderer extension_](7-Extend.md#renderer-extension).
:::
6 changes: 3 additions & 3 deletions docs/4-Configuration.md
@@ -1,7 +1,7 @@
<!--
description: "Configure your website."
date: 2021-05-07
updated: 2023-10-23
updated: 2023-12-11
-->
# Configuration

Expand Down Expand Up @@ -563,7 +563,7 @@ output:
```

:::tip
You can extend Cecil with [output post processor](7-Extend.md#output-post-processor).
You can extend Cecil with [Output post processor](7-Extend.md#output-post-processor).
:::

### debug
Expand Down Expand Up @@ -681,7 +681,7 @@ pages:
```

:::tip
You can extend Cecil with [custom generator](7-Extend.md#pages-generator).
You can extend Cecil with [Pages generator](7-Extend.md#pages-generator).
:::

#### default pages
Expand Down
10 changes: 4 additions & 6 deletions docs/7-Extend.md
@@ -1,19 +1,17 @@
<!--
description: "Extend Cecil."
date: 2023-04-17
updated: 2023-04-19
updated: 2023-12-11
-->
# Extend

There is several way to extend Cecil:

1. Pages Generator
2. Template extension
3. Output post processor
[toc]

## Pages Generator

A Generator help you to create pages without Markdown files (with data from a database or an API) or alter existing pages.
A Generator help you to create pages without Markdown files (with data from a database or an API for example) or alter existing pages.

Just add your Generator to the [`pages.generators`](4-Configuration.md#generators) list, and create a new class in the `Cecil\Generator` namespace.

Expand Down Expand Up @@ -86,7 +84,7 @@ pages:
99: Cecil\Generator\DummyPage
```

## Templates extension
## Renderer extension

You can add custom [functions](3-Templates.md#functions) and [filters](3-Templates.md#filters):

Expand Down

0 comments on commit 9a21bcb

Please sign in to comment.