summaryrefslogtreecommitdiff
path: root/doc/src/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/index.md')
-rw-r--r--doc/src/index.md90
1 files changed, 90 insertions, 0 deletions
diff --git a/doc/src/index.md b/doc/src/index.md
new file mode 100644
index 0000000..b5ce035
--- /dev/null
+++ b/doc/src/index.md
@@ -0,0 +1,90 @@
+---
+title: Crocc
+description: Crocc is a simple and fast static-site generator based on Markdown.
+keywords:
+ - crocc
+ - markdown
+ - html
+ - go
+ - golang
+ - static
+ - site
+ - generator
+ - ssg
+ - website
+ - simple
+publication_time: 2023-04-26T19:05:00Z
+author: Nicolas Paul <n@nc0.fr>
+---
+# Crocc
+
+Crocc is a simple static-site generator based on Markdown.
+The main goal of Crocc is to offer simplicity, as opposed to other static-site
+generation tools such as Hugo or Jekyll.
+Indeed, you only need Markdown to write content in a productive manner, and
+everything else is standard scripts (JavaScript, CSS, images, etc.).
+
+![A crocodile walking](/assets/crocodile.jpg)
+
+## Installation
+
+To install Crocc from sources, you need to have Go installed on your system.
+Then, run the following command:
+
+```bash
+$ go install go.nc0.fr/crocc@latest
+```
+
+> Note: You can replace `latest` with a specific Git commit.
+
+## Usage
+
+Let's say you have a directory containing the following files:
+
+```
+src/
+├── .crocc.html
+├── index.md
+├── about.md
+├── bar.png
+└── contact.md
+```
+
+The `.crocc.html` file is the template used to generate the HTML pages.
+The `index.md`, `about.md` and `contact.md` files are Markdown documents.
+The `bar.png` file is a static file.
+
+To generate the HTML files, run the following command:
+
+```bash
+$ crocc -out=dst -url="http://example.com" src
+```
+
+The `dst` directory will contain the following files:
+
+```
+dst/
+├── index.html
+├── about.html
+├── bar.png
+└── contact.html
+```
+
+You can now upload the `dst` directory to your web server and you're done!
+
+## Documentation
+
+See the [documentation](/doc) for more information.
+
+## License
+
+The project is governed by a BSD-style license that can be found in the
+[LICENSE](https://github.com/n1c00o/crocc/blob/master/LICENSE) file.
+
+The banner image is a [photo](https://unsplash.com/photos/R3sgrDvXz3I) from
+[Unsplash](https://unsplash.com/) by
+[Thomas Couillard](https://unsplash.com/@thomascouillard).
+
+Favicons are Noto emojis and are licensed under the
+[Apache License 2.0](https://github.com/googlefonts/noto-emoji/blob/main/LICENSE)
+license.