Check a new v0.2.9 release features in a changelog

Configure

Options in config.toml under the [extra]

[extra]
favicon = "favicon.ico"
header.name = "Home"
theme_color = "#000"

math = false
show_word_count = false
show_reading_time = false
relative_path = false
localcdn = false

repo = "path/to/you/repo"
repo_branch = "you_branch"

cdnurl = "https://cdn.jsdelivr.net/npm"

math

Rendering math formulas throught katex

favicon

Set path to favicon icon import

localcdn

If you want to store all assets on your domain, then enable this setting

cdnurl

You can customize your url to store assets

show_word_count

Allowing you to show number of words

show_reading_time

Allowing you to show reading time

theme_color

Which allow tab coloring in safari

repo and repo_branch

Repository and branch where it content is stored

relative_path

Which prints in full url on the page

header.name

You site name instead of an icon

extra.header_right,extra.header_left

Set up global links to resources that will be displayed at the top of the page.

Example all parameters:

[[extra.header_left]]
lang = "en"
text = "link"
svg = 'svg_icon'
link = "@/example"
target = "_blank"

lang

The parameter is needed for multilingual titles

text

It's titles of links

svg

It's icons of links with svg format

target

Open the links of rules a target, specifying _blank an arrow is added on link

Link to an external or internal resource.

Since version 0.2.9 `$base_url` for internal links replacements to `@`.

That is internal link in new versions

link = "@/internal_resource"

but in old

link = "$base_url/internal_resource"

announcement_file

The path to announcement file

header_file

The path to file header options

other

  1. children- for header nesting to work

  2. [[extra.menu]] - the main navigation on the site

Options of announcement_file

File for announcement that are at the very top of the page.

Specify a file with the extension toml.

The name can be anything.

text = "text"
bg_color = "#FFF"
text_color = "#111"

[[translations]]
lang = "en"
text = "text"

text

Describe your announcement message

bg_color

You can specify the background color

text_color

You can specify the text color

dismissable

Adds the ability to close the bar permanently

translations

lang

The parameter is needed for multilingual titles

text

Describe your announcement message in the language from the parameter above

Options of header_file

Available in extra, just put in a separate file

name

Similarly #header.name

name = "Home"
[[ left ]] # or right [[ right ]]
lang = "en"
text = "link"
svg = 'svg_icon'
link = "@/example"
target = "_blank"

left, right

Similarly #extra.header_left

Options in config.toml under the languages

Terms from translations into various languages

[languages.en]
build_search_index = true

[languages.en.translations]
description = "The theme for launching fast documentation sites"
toc_etp = "Edit this page"
toc_ita = "In this article"
date = "Date"
authors = "Authors"
updated = "Updated"
words = "words"

description

Main description of the project

toc_eta

Term edit this page for table of contents

toc_ita

Term in this article for table of contents

date

Term date for page or section

authors

Term authors for page or section

updated

Term updated for page or section

words

Term words for page or section

Templates

All pages are extend to the base.html, and you can customize them as need.