Stop hiding private/ and templates/ from the notes editor
Deploy with Docker Compose / deploy (push) Successful in 9s

SB_SPACE_IGNORE was set to quartz's ignorePatterns, which was the wrong thing
to copy. The two settings answer different questions: quartz hides private/
because it must never be published, whereas SilverBullet is the editor, behind
the admin gate, and hiding notes from it only stops them being edited.

Now ignores .obsidian alone, which is editor config and plugin JS rather than
notes. Quartz keeps its own ignorePatterns, so /notes/ publishes exactly what
it did before; these files were already tracked in the notes repo, so nothing
becomes newly reachable.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BCQFvkvorAw1xwhd5gL2qZ
This commit is contained in:
2026-09-22 13:44:48 +01:00
co-authored by Claude Opus 5
parent 507bdb5939
commit fea22871cf
+11 -5
View File
@@ -342,12 +342,18 @@ services:
# The app builds its service-worker scope and asset URLs from this, which
# is why nginx must NOT strip the /sb/ prefix. See nginx.conf.template.
SB_URL_PREFIX: /sb
# Mirrors quartz.config.ts.template's ignorePatterns so the editor hides
# what the published site hides. MUST be newline separated: a comma
# separated list is accepted silently and does nothing.
# Only .obsidian: it is editor config and plugin JS, not notes.
#
# Deliberately NOT quartz's ignorePatterns, which also lists private/ and
# templates/. Those two settings answer different questions: quartz hides
# private/ because it must never be PUBLISHED, whereas this is the editor,
# reachable only through the admin gate, and hiding notes from it just
# stops you editing them. Quartz keeps its own ignorePatterns, so nothing
# here changes what /notes/ publishes.
#
# MUST be newline separated: a comma separated list is accepted silently
# and does nothing.
SB_SPACE_IGNORE: |
private
templates
.obsidian
# Pinned rather than inferred from the mount's owner, so the files it
# writes match the vault's ownership on the host.