Digital Garden is a Obsidian extension about publishing. Publish your notes to a digital garden for others to enjoy.

Setup note publishing

Troubleshooting

Some notes are not reachable via links or didn’t apply frontmatter modifications

Open all corrupt notes in Obsidian to repair their cache

Set-Location "D:\DEV\digitalgarden\"
git pull
Set-Location "D:\DEV\digitalgarden\src\site\notes"
Get-ChildItem -Filter "*.md" -Recurse | where {
    Select-String -Path $_ -Pattern "dg-publish: true" 
} | foreach {
    $corruptNote = Resolve-Path $_.FullName -Relative
    explorer "`"obsidian:///D:\Notes\$corruptNote`""
    Start-Sleep 1
}
explorer "`"obsidian://advanced-uri?commandname=Reload app without saving`""

Open all published notes in Obsidian to repair their cache

Get-ChildItem -Path "D:\Notes" -Filter "*.md" -Recurse | where {
    Select-String -Path $_ -Pattern "dg-publish: true" 
} | foreach {
    explorer "obsidian:///$($_.FullName)"
    Start-Sleep 1
}

What is a digital garden


Sources:

Related:

Tags: