Skip to content

Commit e1fcda2

Browse files
authored
fix: fix build by allowing README file in blog dir (#2718)
Signed-off-by: bwplotka <bwplotka@gmail.com>
1 parent 26ea1ff commit e1fcda2

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

blog-posts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ So, there are no rigid rules around style. But here a few formatting guidelines
3030
`[Prometheus documentation](https://prometheus.io/docs/introduction/overview/)`.
3131

3232
- **Images and diagrams:** Always include alt text so the content is accessible to everyone.
33-
Store images in the `assets` folder (instead of linking from external sites) and reference them in your post.
33+
Store images in the `<repo_root>/public/assets` folder (instead of linking from external sites) and reference them in your post.
3434

3535
> [!NOTE]
3636
> See the general [Markdown Documentation Formatting Guide](../markdown-guide.md) for more formatting rules.

blog-posts/assets/.gitkeep

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/blog-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const getPostFilePath = (params: {
3535
};
3636

3737
export const getAllPostFileNames = () => {
38-
return fs.readdirSync(blogPostsDir);
38+
return fs.readdirSync(blogPostsDir).filter((f) => f !== "README.md");
3939
};
4040

4141
export const getAllPostParams = () => {

0 commit comments

Comments
 (0)