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 ---