Adding PostgreSQL DBA chatmode

Fixed updater script to handle whitespace filenames

Fixed a previously added instruction file that was hand-updated in the readme
This commit is contained in:
Aaron Powell
2025-07-01 12:40:41 +10:00
parent 9c916043ab
commit fcfb4ccf02
4 changed files with 21 additions and 4 deletions

View File

@@ -177,7 +177,7 @@ function generateReadme() {
for (const file of instructionFiles) {
const filePath = path.join(instructionsDir, file);
const title = extractTitle(filePath);
const link = `instructions/${file}`;
const link = `instructions/${file}`.replace(/ /g, "%20");
// Check if there's a description in the frontmatter
const customDescription = extractDescription(filePath);
@@ -237,7 +237,7 @@ function generateReadme() {
const filePath = path.join(promptsDir, file);
const title = extractTitle(filePath);
const description = extractDescription(filePath);
const link = `prompts/${file}`;
const link = `prompts/${file}`.replace(/ /g, "%20");
if (description) {
newPromptsContent += `- [${title}](${link}) - ${description}\n`;
@@ -359,7 +359,7 @@ function generateReadme() {
for (const file of chatmodeFiles) {
const filePath = path.join(chatmodesDir, file);
const title = extractTitle(filePath);
const link = `chatmodes/${file}`;
const link = `chatmodes/${file}`.replace(/ /g, "%20");
// Check if there's a description in the frontmatter
const customDescription = extractDescription(filePath);