File size: 1,589 Bytes
7500ff7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/usr/bin/env python3
"""Create remaining _Index.md folder notes."""
import os
ROOT = r'C:\Users\Admin\Quillan-Ronin'
dirs = {
'Main images': 'Quillan branding, logos, diagrams, AI-generated artwork',
'Media Template': 'Content generation templates for social media, branding, marketing',
'Software Engineer': 'Development prompts, SWE orchestrator documentation',
}
for d, desc in dirs.items():
base = os.path.join(ROOT, d)
if not os.path.exists(base):
print(f'SKIP: {d}')
continue
entries = []
for f in sorted(os.listdir(base)):
fp = os.path.join(base, f)
if os.path.isdir(fp):
entries.append(f' - **{f}/**')
else:
entries.append(f' - [[{d}/{f}]]')
content = f'# {d}\n\n{desc}\n\n'
content += '- [[system prompts/Quillan-Samurai.md]]\n'
content += '- [[00 - Meta/00 - Vault Index.md]]\n'
content += '- [[00 - Meta/05 - Creative Works.md]]\n\n'
content += '\n'.join(entries) + '\n'
path = os.path.join(base, '_Index.md')
with open(path, 'w', encoding='utf-8') as fh:
fh.write(content)
print(f'Created: {d}/_Index.md ({len(entries)} entries)')
# Also note that venv_cuda1050 is now empty
venv_path = os.path.join(ROOT, 'venv_cuda1050', '_Index.md')
with open(venv_path, 'w', encoding='utf-8') as fh:
fh.write('# venv_cuda1050\n\nEmpty — virtual environment was removed during disk cleanup.\n')
fh.write('- [[system prompts/Quillan-Samurai.md]]\n')
print('Created: venv_cuda1050/_Index.md (empty, deleted)')
print('\nDone!')
|