Obsidian Workflow and Repository Variables
Full setup of one-click content updates via Obsidian Git.
This option gives authors a native flow: edit in Obsidian, commit, push, auto-deploy.
Recommended architecture
- Site repo: theme, templates, workflow, rules.
- Content repo: markdown files only.
- Obsidian vault points to content repository root.
Content repository setup
Repository variable:
NP_SITE_REPO=owner/repo(target site repository)
Repository secret:
NP_DEPLOY_TOKENwith permission to callrepository_dispatchinNP_SITE_REPO
Content repository workflow sends content-updated event to site repository.
Site repository setup for content_repo mode
Repository variables:
CONTENT_SOURCE=content_repoCONTENT_REPO=owner/repo(your content repository)CONTENT_REF=main(optional)
Obsidian Git flow
- Open content repository as vault.
- Edit markdown.
- Run "Commit-and-sync" in Obsidian Git.
- Content repository workflow automatically triggers site deploy.
Obsidian handling in current engine
Recent engine versions handle Obsidian markdown syntax natively during index/serve/build.
Pre-build markdown normalization scripts are optional and usually kept only for legacy pipelines.
For hub relationships in frontmatter, keep values consistent with your template rules:
- direct slug-like value (
product) - or repository conventions documented by your template (if wikilink frontmatter is normalized in that project)
Token guidance
- Public repo: fine-grained PAT with target repo access, usually repository contents read/write is enough.
- Private repo: same, but target repository must be explicitly included in token access.
Use a dedicated token per project, not one shared token for all projects.