This commit is contained in:
Struchkov Mark 2024-09-02 21:35:14 +03:00
parent 8097362e50
commit 511a12bf13
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C
4 changed files with 60 additions and 18 deletions

View File

@ -8,16 +8,38 @@ trigger:
- main - main
steps: steps:
- name: build ru garden - name: build site
# https://hub.docker.com/r/library/docker # https://hub.docker.com/r/library/docker
image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20 image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20
commands: commands:
- cd garden/ru - docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./public:/usr/src/app/public --rm docker.struchkov.dev/quartz:latest build
- docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./garden_ru:/usr/src/app/public --rm docker.struchkov.dev/quartz:local build - name: publish to server
image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20
environment:
SSH_DEPLOY_KEY:
from_secret: SSH_DEPLOY_KEY
SSH_DEPLOY_HOST:
from_secret: SSH_DEPLOY_HOST
SSH_DEPLOY_PORT:
from_secret: SSH_DEPLOY_PORT
SSH_DEPLOY_PATH:
from_secret: SSH_DEPLOY_PATH
SSH_DEPLOY_USER:
from_secret: SSH_DEPLOY_USER
commands:
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- echo "$SSH_DEPLOY_KEY" >> ~/.ssh/id_rsa
- chmod 700 ~/.ssh
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- scp -r -P $SSH_DEPLOY_PORT ./* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
# drone sign --save DockerFiles/quartz
# drone sign --save upagge/digital-garden
--- ---
kind: signature kind: signature
hmac: cf0faf7e69ed98a6c0191b3578f874c41d6a297645bcf5c8cc1994c540f207ba hmac: b7f8b00f7df64952e737ae78232a8fa40e89c10ab5ea6f3d2adcb1ba6da564b8
... ...

View File

@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
*/ */
const config: QuartzConfig = { const config: QuartzConfig = {
configuration: { configuration: {
pageTitle: "🪴 Struchkov's Garden", pageTitle: "Struchkov's Garden 🪴",
enableSPA: false, enableSPA: false,
enablePopovers: true, enablePopovers: true,
analytics: { analytics: {
@ -68,9 +68,8 @@ const config: QuartzConfig = {
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(), Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(), Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({ markdownLinkResolution: "relative" }),
Plugin.Description(), Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
], ],
filters: [Plugin.RemoveDrafts()], filters: [Plugin.RemoveDrafts()],
emitters: [ emitters: [
@ -78,7 +77,6 @@ const config: QuartzConfig = {
Plugin.ComponentResources(), Plugin.ComponentResources(),
Plugin.ContentPage(), Plugin.ContentPage(),
Plugin.FolderPage(), Plugin.FolderPage(),
Plugin.TagPage(),
Plugin.ContentIndex({ Plugin.ContentIndex({
enableSiteMap: true, enableSiteMap: true,
enableRSS: true, enableRSS: true,

View File

@ -19,7 +19,6 @@ export const defaultContentPageLayout: PageLayout = {
Component.Breadcrumbs(), Component.Breadcrumbs(),
Component.ArticleTitle(), Component.ArticleTitle(),
Component.ContentMeta(), Component.ContentMeta(),
Component.TagList(),
], ],
left: [ left: [
Component.PageTitle(), Component.PageTitle(),
@ -34,27 +33,27 @@ export const defaultContentPageLayout: PageLayout = {
drag: true, // whether to allow panning the view around drag: true, // whether to allow panning the view around
zoom: true, // whether to allow zooming in and out zoom: true, // whether to allow zooming in and out
depth: 1, // how many hops of notes to display depth: 1, // how many hops of notes to display
scale: 1.1, // default view scale scale: 2, // default view scale
repelForce: 0.5, // how much nodes should repel each other repelForce: 0.5, // how much nodes should repel each other
centerForce: 0.3, // how much force to use when trying to center the nodes centerForce: 0.3, // how much force to use when trying to center the nodes
linkDistance: 30, // how long should the links be by default? linkDistance: 30, // how long should the links be by default?
fontSize: 0.3, // what size should the node labels be? fontSize: 0.5, // what size should the node labels be?
opacityScale: 1, // how quickly do we fade out the labels when zooming out? opacityScale: 2, // how quickly do we fade out the labels when zooming out?
removeTags: [], // what tags to remove from the graph removeTags: [], // what tags to remove from the graph
showTags: true, // whether to show tags in the graph showTags: false, // whether to show tags in the graph
}, },
globalGraph: { globalGraph: {
drag: true, drag: true,
zoom: true, zoom: true,
depth: -1, depth: -1,
scale: 0.9, scale: 2,
repelForce: 0.5, repelForce: 0.5,
centerForce: 0.3, centerForce: 0.3,
linkDistance: 30, linkDistance: 30,
fontSize: 0.3, fontSize: 0.5,
opacityScale: 1, opacityScale: 1,
removeTags: [], // what tags to remove from the graph removeTags: [], // what tags to remove from the graph
showTags: true, // whether to show tags in the graph showTags: false, // whether to show tags in the graph
}, },
}), }),
Component.DesktopOnly(Component.TableOfContents()), Component.DesktopOnly(Component.TableOfContents()),

23
Garbage Collector Normal file
View File

@ -0,0 +1,23 @@
---
kind: pipeline
type: docker
name: docker-build-and-push
trigger:
branch:
- main
steps:
- name: build ru garden
# https://hub.docker.com/r/library/docker
image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20
commands:
- cd garden/ru
- docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./garden_ru:/usr/src/app/public --rm docker.struchkov.dev/quartz:local build
# drone sign --save DockerFiles/quartz
---
kind: signature
hmac: cf0faf7e69ed98a6c0191b3578f874c41d6a297645bcf5c8cc1994c540f207ba
...