Compare commits
2 commits
5c2597498d
...
50243b51fa
Author | SHA1 | Date | |
---|---|---|---|
50243b51fa | |||
4306d2447e |
3 changed files with 26 additions and 24 deletions
4
.obsidian/community-plugins.json
vendored
4
.obsidian/community-plugins.json
vendored
|
@ -4,5 +4,7 @@
|
|||
"obsidian-linter",
|
||||
"editing-toolbar",
|
||||
"obsidian-auto-link-title",
|
||||
"github-copilot"
|
||||
"github-copilot",
|
||||
"editor-width-slider",
|
||||
"emoji-shortcodes"
|
||||
]
|
|
@ -10,7 +10,7 @@ date: 2025-01-16
|
|||
docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
|
||||
```
|
||||
|
||||
This project runs **Quartz 4.4.0**, a fast, batteries-included static site generator, inside a **Docker container**. It transforms Markdown content into a fully functional website.
|
||||
This project runs **Quartz** v4.4.0, a fast, batteries-included static site generator, inside a **Docker container**. It transforms Markdown content into a fully functional website.
|
||||
|
||||
While Quartz provides [Docker support](https://quartz.jzhao.xyz/features/Docker-Support), it is not as self contained as this project.
|
||||
|
||||
|
@ -22,10 +22,23 @@ Create a data directory
|
|||
mkdir -p /srv/quartz
|
||||
```
|
||||
|
||||
|
||||
Create a `docker-compose.yml` file:
|
||||
|
||||
![[docker-compose]]
|
||||
```yaml title="docker-compose.yml"
|
||||
services:
|
||||
quartz-docker:
|
||||
container_name: quartz-docker
|
||||
image: code.modernleft.org/gravityfargo/quartz-docker:dev
|
||||
ports:
|
||||
- 80:80
|
||||
environment:
|
||||
USER_ID: 1000
|
||||
GROUP_ID: 1001
|
||||
SERVER_NAME: "docs.modernleft.org"
|
||||
ENABLE_CRON: "true"
|
||||
BUILD_SCHEDULE: "*/30 * * * *"
|
||||
CONTENT_REPO: "https://code.modernleft.org/gravityfargo/modernleft-docs.git"
|
||||
volumes:
|
||||
- /srv/quartz:/quartz
|
||||
```
|
||||
|
||||
**First Run**
|
||||
|
||||
|
@ -35,7 +48,10 @@ docker stop quartz-wiki
|
|||
```
|
||||
|
||||
On first run, the container will download the necessary dependencies, build the site, and download the content repository.
|
||||
You will also need to
|
||||
|
||||
After that, you can configure whatever you would like in `/srv/quartz/src` using the stock options found in the quartz [documentation](https://quartz.jzhao.xyz/configuration) Bare minimum should be `baseUrl` and
|
||||
|
||||
🥳 Done! 🎉
|
||||
|
||||
## ⚙️ Configuration
|
||||
|
||||
|
|
|
@ -1,17 +1 @@
|
|||
```yaml
|
||||
services:
|
||||
quartz-docker:
|
||||
container_name: quartz-docker
|
||||
image: code.modernleft.org/gravityfargo/quartz-docker:dev
|
||||
ports:
|
||||
- 80:80
|
||||
environment:
|
||||
USER_ID: 1000
|
||||
GROUP_ID: 1001
|
||||
SERVER_NAME: "docs.modernleft.org"
|
||||
ENABLE_CRON: "true"
|
||||
BUILD_SCHEDULE: "*/30 * * * *"
|
||||
CONTENT_REPO: "https://code.modernleft.org/gravityfargo/modernleft-docs.git"
|
||||
volumes:
|
||||
- /srv/quartz:/quartz
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue