Skip to content

Commit 2c83a58

Browse files
committed
Updates
1 parent 86033fe commit 2c83a58

File tree

4 files changed

+41
-5
lines changed

4 files changed

+41
-5
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docs/** linguist-documentation
2+
docs.ps1 linguist-vendored
3+
build.ps1 linguist-vendored

.github/workflows/dev.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
timeout-minutes: 5
2121
steps:
2222
- name: "Zensical Action"
23-
uses: cssnr/zensical-action@v1
23+
uses: cssnr/zensical-action@scripts
2424
with:
2525
upload: "artifact"
26+
prepare: 'sed "s/>Zensical</>Zensical ${ZENSICAL_VERSION}</" test'
2627

2728
deploy:
2829
name: "Deploy"

docs.ps1

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
param (
2+
[switch]$c,
3+
[switch]$b
4+
)
5+
6+
$ErrorActionPreference = "Stop"
7+
8+
write-output "Clean: $c"
9+
write-output "Build: $b"
10+
11+
if ($c) {
12+
Write-Host -ForegroundColor Yellow "Cleaning Docs..."
13+
$site_dir = ".\site"
14+
if (Test-Path $site_dir) {
15+
Write-Host -ForegroundColor Cyan "Removing: $site_dir"
16+
Remove-Item -Force -Recurse $site_dir
17+
}
18+
$cache_dir = ".\.cache"
19+
if (Test-Path $cache_dir) {
20+
Write-Host -ForegroundColor Cyan "Removing: $cache_dir"
21+
Remove-Item -Force -Recurse $cache_dir
22+
}
23+
}
24+
25+
zensical --version
26+
27+
if ($b) {
28+
Write-Host -ForegroundColor Green "Building Docs..."
29+
zensical build
30+
} else {
31+
zensical serve
32+
}

zensical.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,17 @@ icon = "simple/python"
183183
link = "https://actions-tools.cssnr.com/"
184184
name = "Actions Tools"
185185
[[project.extra.social]]
186-
icon = "simple/linux"
187-
link = "https://cssnr.github.io/"
188-
name = "Website"
189-
[[project.extra.social]]
190186
icon = "fontawesome/brands/discord"
191187
link = "https://discord.gg/wXy6m2X8wY"
192188
name = "Discord"
193189
[[project.extra.social]]
194190
icon = "simple/kofi"
195191
link = "https://ko-fi.com/cssnr"
196192
name = "Ko-fi"
193+
[[project.extra.social]]
194+
icon = "fontawesome/solid/house-laptop"
195+
link = "https://cssnr.github.io/"
196+
name = "Website"
197197

198198
[project.extra]
199199
generator = false

0 commit comments

Comments
 (0)