Compare commits

..

No commits in common. "67d8d1b81a454bc6cb19762c3344e4f7bb7511c3" and "dc391856b5b9ba66808ca7db9e5639c4db937b00" have entirely different histories.

View file

@ -4,12 +4,12 @@ draft: false
date: 2025-01-16 date: 2025-01-16
--- ---
| | | | | |
| ----------------------- | ---------------------------------------------------------------------------------------------- | | ----------------------- | --------------------------------------------------------------------------------------------------------- |
| Image on Forgejo | [Forgejo](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0) | | Image on Forgejo | [quartz-docker image](https://code.modernleft.org/gravityfargo/-/packages/container/quartz-docker/v4.4.0) |
| Official quartz project | [GitHub - jackyzha0/quartz](https://github.com/jackyzha0/quartz) | | Official quartz project | [quartz docs](https://quartz.jzhao.xyz/) |
| Image Source | [Forgejo - gravityfargo/quartz-docker](https://code.modernleft.org/gravityfargo/quartz-docker) | | Image Source | [gravityfargo/quartz-dockerl](https://code.modernleft.org/gravityfargo/quartz-docker) |
| Issue Tracker | | | Issue Tracker | [GitHub - gravityfargo/bluesky-pds-docker](https://github.com/gravityfargo/bluesky-pds-docker) |
```bash ```bash
docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0 docker pull code.modernleft.org/gravityfargo/quartz-docker:v4.4.0
@ -17,11 +17,11 @@ 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** 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. While Quartz provides [Docker support](https://quartz.jzhao.xyz/features/Docker-Support), it is not as self contained as this project.
There is no support for SSL or any other features that are not directly related to building the site. I run everything behind traefik, so I don't need it. There is no support for SSL or any other features that are not directly related to building the site. I run everything behind traeffik, so I don't need it.
## 🐳 Docker Compose Setup ## 🐳 Docker Compose Setup
@ -68,7 +68,6 @@ If you don't use the cron job, and don't feel like restarting the container, you
```bash ```bash
docker exec -it quartz-wiki bash docker exec -it quartz-wiki bash
#
cd /quartz/content/ && git restore . && git pull cd /quartz/content/ && git restore . && git pull
cd /quartz/src/ && npx quartz build cd /quartz/src/ && npx quartz build
``` ```
@ -101,13 +100,13 @@ environment:
### Environment Variables ### Environment Variables
| Variable | Description | Default Value | | Variable | Description | Default Value |
| -------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | -------------------- | -------------------------------------------- | ---------------------------------------------------- |
| `USER_ID`/`GROUP_ID` | UID/GID that` /quartz` will be chown'd to on startup | `1000`:`1000` | | `USER_ID`/`GROUP_ID` | UID/GID that` /quartz` will be chown'd to. | `1000`:`1000` |
| `NGINX_PORT` | Port for the Nginx server | `80` | | `NGINX_PORT` | Port for the Nginx server | `80` |
| `SERVER_NAME` | NGINX server name | `quartz.zhao.xyz` | | `SERVER_NAME` | NGINX server name | `quartz.zhao.xyz` |
| `ENABLE_CRON` | Enables scheduled builds (`true` or `false`) | `false` | | `ENABLE_CRON` | Enables scheduled builds (`true` or `false`) | `false` |
| `BUILD_SCHEDULE` | Cron expression for scheduling site builds | `"*/10 * * * *"` every 10 min | | `BUILD_SCHEDULE` | Cron expression for scheduling site builds | `"*/10 * * * *"` every 10 min |
| `CONTENT_REPO` | URL of the content repository | `https://code.modernleft.org/gravityfargo/empty.git` | | `CONTENT_REPO` | URL of the content repository | `https://code.modernleft.org/gravityfargo/empty.git` |
> [!NOTE] > `CONTENT_REPO` Must use https, not git. > [!NOTE] > `CONTENT_REPO` Must use https, not git.