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"
2022-06-06 08:46:29 +00:00
date = 2022-06-03T14:22:50-07:00
2021-09-12 19:44:45 +00:00
[extra]
2022-06-06 08:46:29 +00:00
created = 2022-06-03T14:22:50-07:00
updated = 2022-06-03T14:22:50-07: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" >
2022-06-06 08:46:29 +00:00
< a href = "https://github.com/kogeletey/karzok/actions" > < img src = "https://flat.badgen.net/github/checks/kogeletey/karzok" alt = "github workflows status" / > < / a >
<!-- <a href="https://github.com/kogeletey/karzok/actions"><img src="https://github.com/kogeletey/karzok/actions/workflows/badge.svg" alt="github workflows action status" /></a> -->
< a href = "https://github.com/kogeletey/karzok/blob/develop/LICENSE" > < img src = "https://flat.badgen.net/github/license/kogeletey/karzok" alt = "license a repository" / > < / a >
< 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 >
< a href = "https://framagit.org/kogeletey/nebra" > < img alt = "pipeline status re128" src = "https://framagit.org/kogeletey/nebra/badges/develop/pipeline.svg" / > < / 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
2021-09-12 19:44:45 +00:00
A theme for your documentation. Fast and secure
![screenshot ](./screenshot.png )
2022-01-23 22:39:09 +00:00
2021-09-12 19:44:45 +00:00
## Demo
2022-01-23 22:39:09 +00:00
2022-06-06 08:46:29 +00:00
[Karzok ](https://karzok.re128.org )
2021-09-12 19:44:45 +00:00
## Requirements
Karzok uses npm,zola to dependency managment,rendering, scripts and plugins.
### Install
1. [Zola ](https://www.getzola.org/documentation/getting-started/installation/ )
2. [Node.js ](https://nodejs.org/ )
2022-06-06 08:46:29 +00:00
3. [rsync ](https://rsync.samba.org )
2021-09-12 19:44:45 +00:00
for your platform.
### Optional
2022-06-06 08:46:29 +00:00
- [docker ](https://docs.docker.com/engine/install/ )
> for packaging container and production
2021-09-12 19:44:45 +00:00
## Get Started
### 1. Create a new zola site
```zsh
zola init zola_site
```
### 2. Download this theme to you themes directory:
```zsh
git clone https://git.sr.ht/~kogeletey/karzok zola_site/themes
```
or install as submodule:
```zsh
cd zola_site
git init # if your project is a git repository already, ignore this command
git submodule add https://git.sr.ht/~kogeletey/karzok zola_site/themes
```
### 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
2022-01-23 22:39:09 +00:00
# a template will appear with which you can quickly start writing
# cp ./themes/content/tmpl.md content/filename.md
2021-09-12 19:44:45 +00:00
```
how you can give freedom to your creativity
### 5. Run the project
i. development enviroment
1. Install node dependencies needed to work
```zsh
2022-06-06 08:46:29 +00:00
npm ci
npm run gen
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
2022-01-23 22:39:09 +00:00
- with docker
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
2021-09-12 19:44:45 +00:00
# Contribute
2022-01-23 22:39:09 +00:00
2022-06-06 08:46:29 +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
## Find bugs and come up with features
2022-01-23 22:39:09 +00:00
On the [todo.sr.ht ](https://todo.sr.ht/~kogeletey/karzok ) or
[github issues ](https://github.com/kogeletey/karzok/issues )
2021-09-12 19:44:45 +00:00
## Improve Code
2022-01-23 22:39:09 +00:00
2022-06-06 08:46:29 +00:00
The karzok is stored in the repository at
2022-01-23 22:39:09 +00:00
[sr.ht ](https://sr.ht/~kogeletey/karzok ) and mirror
[github ](https://github.com/kogeletey/karzok )
2021-09-12 19:44:45 +00:00
> Thank you so much for any help