Avoid overview defaults in plugin demos

This commit is contained in:
mirivlad 2026-06-27 12:46:18 +08:00
parent fca7716e75
commit 92ac1f730b
2 changed files with 4 additions and 3 deletions

View File

@ -132,7 +132,7 @@
});
var openNotesWorkbenchButton = makeWorkbenchButton('pt-open-workbench-notes', 'Open Notes Diagnostic', {
kind: 'vault-file',
path: 'Notes/Overview.md',
path: 'Notes/example.md',
extension: '.md',
context: {
sourceView: 'notes',

View File

@ -85,11 +85,12 @@ if [ "$HAS_PYTHON" -eq 1 ]; then
import os, re, sys
root = '$ROOT/plugins'
forbidden = re.compile(r\"api\\.backend\\.call|api\\.request\\.open|window(?:\\.go|\\[['\\\"]go['\\\"]\\])\")
forbidden = re.compile(r\"api\\.backend\\.call|api\\.request\\.open|window(?:\\.go|\\[['\\\"]go['\\\"]\\])|Notes/Overview\\.md\")
problems = []
for dirpath, _, filenames in os.walk(root):
if '/node_modules/' in dirpath:
normalized_dir = dirpath.replace(os.sep, '/')
if '/node_modules' in normalized_dir or '/frontend/dist' in normalized_dir:
continue
for filename in filenames:
if not filename.endswith(('.js', '.svelte', '.ts')):