Compare commits

..

No commits in common. "50243b51fa144844c071a16426a3540364f82e3a" and "5c2597498dd272fc0ba78234687141d15749dcb3" have entirely different histories.

3 changed files with 24 additions and 26 deletions

View file

@ -4,7 +4,5 @@
"obsidian-linter", "obsidian-linter",
"editing-toolbar", "editing-toolbar",
"obsidian-auto-link-title", "obsidian-auto-link-title",
"github-copilot", "github-copilot"
"editor-width-slider",
"emoji-shortcodes"
] ]

View file

@ -10,7 +10,7 @@ date: 2025-01-16
docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0 docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
``` ```
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. 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.
While Quartz provides [Docker support](https://quartz.jzhao.xyz/features/Docker-Support), it is not as self contained as this project. While Quartz provides [Docker support](https://quartz.jzhao.xyz/features/Docker-Support), it is not as self contained as this project.
@ -22,23 +22,10 @@ Create a data directory
mkdir -p /srv/quartz mkdir -p /srv/quartz
``` ```
```yaml title="docker-compose.yml"
services: Create a `docker-compose.yml` file:
quartz-docker:
container_name: quartz-docker ![[docker-compose]]
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** **First Run**
@ -48,10 +35,7 @@ docker stop quartz-wiki
``` ```
On first run, the container will download the necessary dependencies, build the site, and download the content repository. 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 ## ⚙️ Configuration

View file

@ -1 +1,17 @@
```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
```