Skip to content
Snippets Groups Projects
Unverified Commit ef61b713 authored by kogeletey's avatar kogeletey
Browse files

root, content: new dependencies become madatory, moved changelog. root:...

root, content: new dependencies become madatory, moved changelog.  root: package.json new step adding
parent a5c780d2
No related branches found
No related tags found
No related merge requests found
...@@ -21,17 +21,14 @@ Karzok uses npm,zola to dependency managment,rendering, scripts and plugins. ...@@ -21,17 +21,14 @@ Karzok uses npm,zola to dependency managment,rendering, scripts and plugins.
1. [Zola](https://www.getzola.org/documentation/getting-started/installation/) 1. [Zola](https://www.getzola.org/documentation/getting-started/installation/)
2. [Node.js](https://nodejs.org/) 2. [Node.js](https://nodejs.org/)
3. [rsync](https://rsync.samba.org)
for your platform. for your platform.
### Optional ### Optional
1. [yj](https://github.com/sclevine/yj) - [docker](https://docs.docker.com/engine/install/)
> for transfer toml file in yaml
2. [docker](https://docs.docker.com/engine/install/)
> for packaging container > for packaging container
3. [rsync](https://rsync.samba.org/)
> A better copy and move
## Get Started ## Get Started
...@@ -81,7 +78,8 @@ i. development enviroment ...@@ -81,7 +78,8 @@ i. development enviroment
1. Install node dependencies needed to work 1. Install node dependencies needed to work
```zsh ```zsh
npm run gen # don't use npm install before that npm ci
npm run gen
``` ```
2. Just run `zola serve` in the root path of the project 2. Just run `zola serve` in the root path of the project
...@@ -103,10 +101,10 @@ ii. production enviroment ...@@ -103,10 +101,10 @@ ii. production enviroment
docker build . docker build .
``` ```
or if installed docker-compose or if installed docker compose
```zsh ```zsh
docker-compose build docker compose build
``` ```
2. Run containers 2. Run containers
...@@ -115,7 +113,7 @@ docker-compose build ...@@ -115,7 +113,7 @@ docker-compose build
docker start -d -p 80:80 container_id docker start -d -p 80:80 container_id
``` ```
or if installed docker-compose or if installed docker compose
```zsh ```zsh
docker-compose up -d docker-compose up -d
...@@ -137,7 +135,9 @@ Open in favorite browser [https://localhost](http://localhost) ...@@ -137,7 +135,9 @@ Open in favorite browser [https://localhost](http://localhost)
6. `show_reading_time`- allowing you to show reading time 6. `show_reading_time`- allowing you to show reading time
7. `children`- for header nesting to work 7. `children`- for header nesting to work
8. `[[extra.menu]]` - the main navigation on the site 8. `[[extra.menu]]` - the main navigation on the site
9. `[[extra.header]]` - the header navigantion for the site 9. `[[extra.header_right]]`,`[[extra.header_left]]` - the header navigantion for the site
10. `theme_color` which allow tab coloring in safari
11. `relative_path` which prints in full url on the page
### Templates ### Templates
......
# [unreleased] +++
title = "Changelog"
weight = 4
+++
# [0.2.0]
## New features ## New features
...@@ -6,8 +11,9 @@ ...@@ -6,8 +11,9 @@
- alpha search - alpha search
- new settings `relative_path` which prints in full page - new settings `relative_path` which prints in full page
- new parameter `config.extra.theme_color` which allow tab coloring in safari - new parameter `config.extra.theme_color` which allow tab coloring in safari
- experimental settings `header.container` - experimental settings `header.container` activate by `devmode`
- new Dockerfile - new Dockerfile
- setup postcss and swc to compiling
## Bug fixing ## Bug fixing
......
...@@ -14,7 +14,10 @@ weight = 2 ...@@ -14,7 +14,10 @@ weight = 2
6. `show_reading_time`- allowing you to show reading time 6. `show_reading_time`- allowing you to show reading time
7. `children`- for header nesting to work 7. `children`- for header nesting to work
8. `[[extra.menu]]` - the main navigation on the site 8. `[[extra.menu]]` - the main navigation on the site
9. `[[extra.header]]` - the header navigantion for the site 9. `[[extra.header_right]]`,`[[extra.header_left]]` - the header navigantion for the site
10. `theme_color` which allow tab coloring in safari
11. `relative_path` which prints in full url on the page
12. `devmode` activate experimental features
## Templates ## Templates
......
...@@ -7,16 +7,14 @@ weight = 1 ...@@ -7,16 +7,14 @@ weight = 1
1. [Zola](https://www.getzola.org/documentation/getting-started/installation/) 1. [Zola](https://www.getzola.org/documentation/getting-started/installation/)
2. [Node.js](https://nodejs.org/) 2. [Node.js](https://nodejs.org/)
3. [rsync](https://rsync.samba.org/)
install for your platform. install for your platform.
## Optional ## Optional
1. [yj](https://github.com/sclevine/yj) - [docker](https://docs.docker.com/engine/install/)
> for transfer toml file in yaml
2. [docker](https://docs.docker.com/engine/install/)
> for packaging container > for packaging container
3. [rsync](https://rsync.samba.org/)
> A better copy and move > A better copy and move
# Get Started # Get Started
...@@ -62,20 +60,13 @@ how you can give freedom to your creativity ...@@ -62,20 +60,13 @@ how you can give freedom to your creativity
## 5. Run the project ## 5. Run the project
### With [docker-compose](https://docs.docker.com/compose) and [cargo make](https://sagiegurari.github.io/cargo-make/)
```zsh
cargo make --makefile make.toml dockerup
```
### Without
i. development enviroment i. development enviroment
1. Install node dependencies needed to work 1. Install node dependencies needed to work
```zsh ```zsh
npm run gen # don't use npm install before that npm ci
npm run gen
``` ```
2. Just run `zola serve` in the root path of the project 2. Just run `zola serve` in the root path of the project
...@@ -100,7 +91,7 @@ docker build . ...@@ -100,7 +91,7 @@ docker build .
or if installed docker-compose or if installed docker-compose
```zsh ```zsh
docker-compose build docker compose build
``` ```
2. Run containers 2. Run containers
...@@ -109,10 +100,10 @@ docker-compose build ...@@ -109,10 +100,10 @@ docker-compose build
docker start -d -p 80:80 container_id docker start -d -p 80:80 container_id
``` ```
or if installed docker-compose or if installed docker compose
```zsh ```zsh
docker-compose up -d docker compose up -d
``` ```
Open in favorite browser [https://localhost](http://localhost) Open in favorite browser [https://localhost](http://localhost)
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"link": "rsync -va node_modules/@fontsource node_modules/katex node_modules/modern-normalize/modern-normalize.css static && npm run link:assets :", "link": "rsync -va node_modules/@fontsource node_modules/katex node_modules/modern-normalize/modern-normalize.css static && npm run link:assets :",
"link:assets": "mkdir -p static && cp -r assets static || :", "link:assets": "mkdir -p static && cp -r assets static || :",
"clean": "rm -rf static node_modules", "clean": "rm -rf static node_modules",
"gen": "npm run link && zola build && npm run postcss", "gen": "npm run link && npm run compile:js && zola build && npm run postcss",
"watch": "swc helpers --only -d static --watch & zola serve -O -f" "watch": "swc helpers --only -d static --watch & zola serve -O -f"
}, },
"dependencies": { "dependencies": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment