Finally a way to solve the Obsidian Publish problem!

Basic flow:

Once set you just add the following YAML front matter to things you want to publish.

---
dg-publish: true
---

Want an index? Add this to a published note:

dg-home: true

Then click on your happy little 🌱 icon to choose to publish new & updated notes.

Enjoy Hive-DG-Index!


analytics

You can add analytics if you wanted. See this Github disucssion


Local rendering? Check out DavidKopp's answer for local deployment

Dockerfile.export

FROM node:18 as base
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .

FROM base as builder
WORKDIR /usr/src/app
RUN npm run build

FROM scratch AS export
COPY --from=builder /usr/src/app/dist /

podman build -f Dockerfile.export --output dist .