Config example

Demonstrate cusomization

Config Example

This whole document was generated using the a config file to specify content and the menu.

It uses Highligh.js to enhance code examples. Some TOML example:

# This is a TOML document.

title = "TOML Example"

[owner]
name = "Author"
dob = 1979-05-27T07:32:00-08:00 # First class dates

[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
connection_max = 5000
enabled = true

[servers]

  # Indentation is allowed but not required
  [servers.alpha]
  ip = "10.0.0.1"
  dc = "eqdc10"

  [servers.beta]
  ip = "10.0.0.2"
  dc = "eqdc10"

[clients]
data = [ ["gamma", "delta"], [1, 2] ]

# Line breaks are OK when inside arrays
hosts = [
  "alpha",
  "omega"
]

Page 1

Page 1 content.

If the "label" property is not set in the config file it will be infered from the heading of the content within this file.

We only bring in TOML language support so the following Rust code is not highlighted:

#[derive(Debug)]
struct Person<'a> {
    name: &'a str,
    age: u8
}

fn main() {
    let name = "Peter";
    let age = 27;
    let peter = Person { name, age };

    // Pretty print
    println!("{:#?}", peter);
}

Page 1

Page 1 content.

If the "label" property is not set in the config file it will be infered from the heading of the content within this file.

We only bring in TOML language support so the following Rust code is not highlighted:

#[derive(Debug)]
struct Person<'a> {
    name: &'a str,
    age: u8
}

fn main() {
    let name = "Peter";
    let age = 27;
    let peter = Person { name, age };

    // Pretty print
    println!("{:#?}", peter);
}

HTML Page

Just some HTML content.

Raw content

We can specify markdown content like this.

Some HTML Content

Some content.



This is paragraph of raw HTML content.