···11+# Examples
22+33+This folder contains example Maudit projects that demonstrate various features and use cases. Each example is a standalone project that can be run and built independently.
···44section: "core-concepts"
55---
6677-At the core of a Maudit project is the `coronate` function. This function starts the build process and generates the output files. It is the entrypoint to your project and is where you define the pages, content and options that make up your website.
77+At the core of a Maudit project is the [`coronate`](https://docs.rs/maudit/latest/maudit/fn.coronate.html) function. This function starts the build process and generates the output files. It is the entrypoint to your project and is where you'll pass the pages, content and options that make up your website.
8899In a `main.rs` file, import the `coronate` function and call it to build your project. Here is an example of a simple Maudit project:
1010···3636See the [Routing](/docs/routing) documentation for more information on how to define routes.
37373838## Content
3939+4040+The second argument to the `coronate` function is a list of content sources. Content sources are used to load content and data from various sources, such as the filesystem (ex: a folder of markdown files), a database, or a remote API.
4141+4242+```rs
4343+use maudit::content::content_sources;
4444+4545+fn main() {
4646+ coronate(
4747+ routes![
4848+ // ...
4949+ ],
5050+ content_sources![
5151+ "source_name" => loader(...),
5252+ ],
5353+ Default::default()
5454+ );
5555+}
5656+```
5757+5858+See the [Content](/docs/content) documentation for more information on how to define content sources.
39594060## Options
6161+6262+The third argument to the `coronate` function is a `BuildOptions` struct. This struct contains various options that can be used to customize the build process.
6363+6464+```rs
6565+use maudit::BuildOptions;
6666+6767+coronate(
6868+ routes![
6969+ // ...
7070+ ],
7171+ content_sources![
7272+ // ...
7373+ ],
7474+ BuildOptions {
7575+ output_dir: "public".into(),
7676+ ..Default::default()
7777+ }
7878+);
7979+```
8080+8181+For a full list of options, see the [`BuildOptions`](https://docs.rs/maudit/latest/maudit/struct.BuildOptions.html) reference.
+1-1
website/content/docs/images.md
···6767}
6868```
69697070-Processing images in Markdown files is currently not supported.
7070+Processing images in Markdown files using the standard syntax is currently not supported, but can be achieved using a custom [shortcode](/docs/content/#shortcodes) or [component](/docs/content/#components).
+1-1
website/content/docs/library.md
···12121313## Function signature
14141515-The built-in `coronate` function takes a list of routes (which all implements the [FullRoute](https://docs.rs/maudit/latest/maudit/route/trait.FullRoute.html) trait), [content sources](/docs/content), and some build options. We'll do the same.
1515+The built-in `coronate` function takes a list of routes (which all implements the [FullRoute](https://docs.rs/maudit/latest/maudit/route/trait.FullRoute.html) trait), [content sources](/docs/content), and [build options](https://docs.rs/maudit/latest/maudit/struct.BuildOptions.html). We'll do the same.
16161717```rs
1818use maudit::{
+1-1
website/content/docs/manual-install.md
···14141515```toml
1616[dependencies]
1717-maudit = "0.1"
1717+maudit = "0.6"
1818```
19192020Voilà! You can now use Maudit in your project. Check out the rest of the [documentation](/docs) for more information on how to use Maudit, or if you prefer jumping straght into the code, take a look at the [examples](https://github.com/bruits/maudit/tree/main/examples) and the [API documentation](https://docs.rs/maudit).
+2-2
website/content/docs/templating.md
···44section: "core-concepts"
55---
6677-Maudit supports using most Rust templating libraries. In general, if a library can return a String, you can use it to generate pages with Maudit.
77+In general, if a library can return a String, you can use it to generate pages with Maudit.
8899-Through crate features, Maudit includes built-in helper methods and traits implementation for numerous popular templating libraries.
99+Through crate features, Maudit includes built-in helper methods and traits implementation for popular templating libraries.
10101111## Maud
1212