2021-09-12 19:44:45 +00:00
+++
title = "karzok"
2022-06-06 08:46:29 +00:00
description = "The theme for launching fast documentation sites"
2021-09-12 19:44:45 +00:00
template = "theme.html"
2024-06-14 21:03:49 +00:00
date = 2024-06-13T08:07:01-05:00
2021-09-12 19:44:45 +00:00
[extra]
2024-06-14 21:03:49 +00:00
created = 2024-06-13T08:07:01-05:00
updated = 2024-06-13T08:07:01-05:00
2022-04-20 12:53:48 +00:00
repository = "https://github.com/kogeletey/karzok.git"
2022-01-23 22:39:09 +00:00
homepage = "https://github.com/kogeletey/karzok"
2022-06-06 08:46:29 +00:00
minimum_version = "0.15.0"
license = "MIT"
demo = "https://karzok.re128.org"
2021-09-12 19:44:45 +00:00
[extra.author]
name = "Konrad Geletey"
homepage = ""
+++
2022-01-23 22:39:09 +00:00
< p align = "center" >
2023-08-21 15:31:33 +00:00
< a href = "https://ci.codeberg.org/kogeletey/karzok" target = "_blank" > < img src = "https://ci.codeberg.org/api/badges/kogeletey/karzok/status.svg" alt = "status-badge" / > < / a >
< a href = "https://codeberg.org/kogeletey/karzok/blob/develop/LICENSE" > < img src = "https://flat.badgen.net/github/license/kogeletey/karzok" alt = "license a repository, MIT" / > < / a >
2022-06-06 08:46:29 +00:00
< a href = "https://github.com/kogeletey/karzok/releases" > < img src = "https://flat.badgen.net/github/release/kogeletey/karzok" alt = "latest release as a repository" / > < / a >
2023-08-21 15:31:33 +00:00
< / p >
< p align = "center" >
< a href = "https://karzok.re128.org" > Documentation < / a >
2022-01-23 22:39:09 +00:00
< / p >
2021-09-12 19:44:45 +00:00
# Karzok
2022-01-23 22:39:09 +00:00
2023-08-21 15:31:33 +00:00
- classless and frameworkless
- Jinja-like templates
- javascript is optional, needed only for search,math,alerts and dark mode
- no roundings and other strange design trends
2021-09-12 19:44:45 +00:00
![screenshot ](./screenshot.png )
2022-01-23 22:39:09 +00:00
2023-08-21 15:31:33 +00:00
## Get Started
2022-01-23 22:39:09 +00:00
2023-08-21 15:31:33 +00:00
- [find out more ](https://karzok.re128.org/install/ )
2021-09-12 19:44:45 +00:00
2023-08-21 15:31:33 +00:00
### Requirements
2021-09-12 19:44:45 +00:00
2023-04-30 20:03:30 +00:00
- [Node.js ](https://nodejs.org/ )
2021-09-12 19:44:45 +00:00
### 1. Create a new zola site
2023-08-21 15:31:33 +00:00
```sh
2021-09-12 19:44:45 +00:00
zola init zola_site
```
### 2. Download this theme to you themes directory:
2023-08-21 15:31:33 +00:00
```sh
git clone https://codeberg.org/kogeletey/karzok zola_site/themes
2021-09-12 19:44:45 +00:00
```
or install as submodule:
2023-08-21 15:31:33 +00:00
```sh
2021-09-12 19:44:45 +00:00
cd zola_site
git init # if your project is a git repository already, ignore this command
2023-08-21 15:31:33 +00:00
git submodule add https://codeberg.org/kogeletey/karzok zola_site/themes
2021-09-12 19:44:45 +00:00
```
### 3. Configuration. Open in favorite editor `config.toml`
```toml
base_url = "https://karzok.example.net" # set-up for production
theme = "karzok"
```
2022-06-06 08:46:29 +00:00
See more in [configuration ](https://karzok.re128.org/configure/ )
2021-09-12 19:44:45 +00:00
### 4. Added new content
```zsh
cp ./themes/content/_index.md content/_index.md
```
how you can give freedom to your creativity
### 5. Run the project
i. development enviroment
1. Install node dependencies needed to work
```zsh
2023-08-21 15:31:33 +00:00
pnpm ci
pnpm run build
2021-09-12 19:44:45 +00:00
```
2. Just run `zola serve` in the root path of the project
```zsh
zola serve
```
Open in favorite browser [http://127.0.0.1:1111 ](http://127.0.0.1:1111 ). Saved
changes live reolad.
ii. production enviroment
2023-08-21 15:31:33 +00:00
- with conainers
2021-09-12 19:44:45 +00:00
2022-06-06 08:46:29 +00:00
1. Write file for container
2021-09-12 19:44:45 +00:00
2022-06-06 08:46:29 +00:00
```Dockerfile
FROM ghcr.io/kogeletey/karzok:latest AS build-stage
# or your path to image
ADD . /www
WORKDIR /www
RUN sh /www/build.sh
2021-09-12 19:44:45 +00:00
2022-06-06 08:46:29 +00:00
FROM nginx:stable-alpine
2021-09-12 19:44:45 +00:00
2022-06-06 08:46:29 +00:00
COPY --from=build-stage /www/public /usr/share/nginx/html
2021-09-12 19:44:45 +00:00
2022-06-06 08:46:29 +00:00
EXPOSE 80
2021-09-12 19:44:45 +00:00
```
2022-06-06 08:46:29 +00:00
2. Run the your container
2021-09-12 19:44:45 +00:00
```zsh
2022-06-06 08:46:29 +00:00
docker build -t < your_name_image > . & & \
docker run -d -p 8080:8080 < your_name_image >
```
- using gitlab-ci and gitlab-pages
```yml
image: ghcr.io/kogeletey/karzok:latest # or change use your registry
pages:
script:
- sh /www/build.sh
- mv /www/public public
artifacts:
paths:
- public/
2021-09-12 19:44:45 +00:00
```
2022-06-06 08:46:29 +00:00
Open in favorite browser [https://localhost:8080 ](http://localhost:8080 )
2021-09-12 19:44:45 +00:00
## License
This program is Free Software: You can use, study share and improve it at your
will. Specifically you can redistribute and/or modify it under the terms of the
2022-06-06 08:46:29 +00:00
[MIT ](https://mit-license.org/ )
2022-01-23 22:39:09 +00:00
2023-08-21 15:31:33 +00:00
## Contribute
2022-01-23 22:39:09 +00:00
2023-04-30 20:03:30 +00:00
Make sure to read the [Code of Conduct ](https://karzok.re128.org/reference/code_of_conduct/ )
2021-09-12 19:44:45 +00:00
2023-08-21 15:31:33 +00:00
### Find bugs and come up with features
2022-01-23 22:39:09 +00:00
2023-08-21 15:31:33 +00:00
On the [codeberg issues ](https://codeberg.org/kogeletey/karzok/issues ) or
2022-01-23 22:39:09 +00:00
[github issues ](https://github.com/kogeletey/karzok/issues )
2021-09-12 19:44:45 +00:00