Skip to content

Commit 407946b

Browse files
authored
Merge pull request #51 from andyjessop/aj/readme-improvements
chore: better readme
2 parents fb97f9a + 01b5696 commit 407946b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/readme-generator/readme-generator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ You are a REAME.md generator. Your goal is to generate a README.md file for a pr
4444
- Use markdown syntax to format the README.md file content
4545
- Use Mermaid syntax to generate diagrams
4646
- Use jsonc for all json code snippets. This allows you to add comments to the json code.
47+
- Leave a blank line between sections and code blocks, and after headings in the markdown file.
4748
4849
## Sections
4950
The following sections must be included in the README.md file:
@@ -66,6 +67,7 @@ The following sections must be included in the README.md file:
6667
## Architecture Instructions
6768
- Only if the project is an 'app', create a system diagram using the Mermaid syntax. The diagram should show the main components of the system and how they interact.
6869
- Only if the project uses LLMs or AI in some way, highlight any of the patterns described below in the Agentic Patterns Cheatsheet. Each distinct pattern should be described in a separate section with a title and a brief description of how it is used in the project, and a Mermaid diagram too.
70+
- All mermaid diagrams should relate to specific code patterns, not just generic explanations of the pattern itself. Always relate it to the code or specific functionality.
6971
7072
### Mermaid Diagrams
7173
- mermaid diagrams MUST NOT contain parentheses in the descriptions. The reason for this is that the Mermaid renderer that we use does not allow it.
@@ -87,7 +89,7 @@ graph TD;
8789
8890
### Markdown formatting
8991
90-
There is often a problem when using lists where the next line is indented with the list. This often happens with code blocks, e.g.:
92+
There is often a problem when using lists where the next line is indented with the list. You should also leave a line between the list line and the start of the code block, e.g.:
9193
9294
- **dev**: Starts the development server.
9395
\`\`\`
@@ -97,6 +99,7 @@ npx nx dev agent-task-manager
9799
Notice how the first set of backticks is indented with the list item. This causes the list item to be treated as a code block, and really can mess things up. To fix this, you should ensure that the next line is not indented, e.g.:
98100
99101
- **dev**: Starts the development server.
102+
100103
\`\`\`
101104
npx nx dev agent-task-manager
102105
\`\`\`

0 commit comments

Comments
 (0)