From 173109d7ca9df1fb2bba252de721198c5c4f60af Mon Sep 17 00:00:00 2001 From: 6d486f49 Date: Fri, 19 Jun 2026 17:29:06 -0400 Subject: [PATCH] Respecting shouldInstallPlugins flag in front matter --- OP/Build/Program.cs | 6 ++++++ op.docs/docs/op.docs.md | 1 + 2 files changed, 7 insertions(+) diff --git a/OP/Build/Program.cs b/OP/Build/Program.cs index 1e8db2d..2704821 100644 --- a/OP/Build/Program.cs +++ b/OP/Build/Program.cs @@ -103,6 +103,12 @@ static IReadOnlyCollection ScanDocTargets(string docsRoot) { continue; } + + if (!frontMatter.TryGetValue("shouldInstallPlugins", out var shouldInstallValue) || + !string.Equals(shouldInstallValue.Trim(), "true", StringComparison.OrdinalIgnoreCase)) + { + continue; + } if (!frontMatter.TryGetValue("path", out var pathValue) || string.IsNullOrWhiteSpace(pathValue)) { diff --git a/op.docs/docs/op.docs.md b/op.docs/docs/op.docs.md index 2a41495..f0e0f1e 100644 --- a/op.docs/docs/op.docs.md +++ b/op.docs/docs/op.docs.md @@ -1,4 +1,5 @@ --- category: docs path: Obsidian-Plugins\op.docs +shouldInstallPlugins: true ---