Β§ Command Line Interface (CLI)
freki --help
Β§ Flags
| Flag Name | Description |
|---|---|
|
The directory to build from. Defaults to the |
|
For now an additional directory to build from. In the future it might be more like a public directory. Defaults to the |
|
The directory to build to. Defaults to the |
|
Markdown flavor [ |
|
The site title. Defaults to Freki |
|
The base URL (path segment) where the documentation will be served from. |
|
HTML template. Defaults to the |
|
Configuration file. Defaults to the |
Β§ Build Site
Β§ Basic
To build the most bare bones site only the following is needed.
- A
./docsdirectory. - A
/docs/index.mdfile.
mkdir ./docs
echo "# Hello world." > ./docs/index.md
docs
βββ index.md
Running freki will generate the site to the ./html-docs directory.
html-docs
βββ index.html
<!DOCTYPE html>
<html
lang="en"
class="dark"
data-theme="dark"
>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Freki">
<title>Freki</title>
</head>
<body>
<header>
<h1>
<a href="/">
Freki
</a>
</h1>
</header>
<main>
<article>
<section>
<h1>Hello world.</h1>
</section>
</article>
</main>
</body>
</html>

Β§ Custom Build
-
In the project directory initialize a
freki-template.htmlfile. -
Create a
./custom-docs/directory and add markdown and other files (style, scripts, and images) -
Add additional assets to
./extra-assetsdirectory.project-directory βββ freki-template.html βββ custom-docs β βββ index.md β βββ cats.md β βββ cat.svg β βββ color.css βββ extra-assets βββ mermaid.js βββ prism.js -
Run
frekiwith flagsfreki --directory ./custom-docs/ --assets ./extra-assets --output ./custom-siteproject-directory βββ custom-site βββ index.html βββ cats β βββ index.html βββ cat.svg βββ color.css βββ mermaid.js βββ prism.js