mirror of
https://github.com/prometheus/docs.git
synced 2026-02-05 15:45:27 +01:00
[blog] moved blog files to posts sub dir (#2720)
* moved blog files to posts sub dir Signed-off-by: Victoria Nduka <ndukavictoria7@gmail.com> * Update blog-helpers.ts point blogPostsDir to blog-posts/posts to restore build Signed-off-by: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> * rename blog-posts to blog and update blog-helpers.ts Signed-off-by: Victoria Nduka <ndukavictoria7@gmail.com> --------- Signed-off-by: Victoria Nduka <ndukavictoria7@gmail.com> Signed-off-by: Victoria Nduka <122698422+nwanduka@users.noreply.github.com>
This commit is contained in:
@@ -246,7 +246,7 @@ In order to allow mentees to share the knowledge they learned and allow them to
|
||||
|
||||
* Encourage the mentee to speak (or even co-speak with them!) at the next relevant conference or meetup (e.g. PromCon, KubeCon, local meetup), etc!
|
||||
* See the post-mentorship talks by [Arthur](https://www.youtube.com/watch?v=nWf0BfQ5EEA&t=1s) and [M Viswanath Sai and S Ashwin](https://www.youtube.com/watch?v=wkkXh8X0N8s) at PromCon conferences.
|
||||
* Encourage the mentee to write a blog post on the [Prometheus blog](https://github.com/prometheus/docs/tree/main/blog-posts) or on their personal blog!
|
||||
* Encourage the mentee to write a blog post on the [Prometheus blog](https://github.com/prometheus/docs/tree/main/blog) or on their personal blog!
|
||||
* A virtual "Mentees Meetup", if we have enough content, is also an option.
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
@@ -2,7 +2,7 @@ import fs from "fs";
|
||||
import path from "path";
|
||||
import matter from "gray-matter";
|
||||
|
||||
const blogPostsDir = "blog-posts";
|
||||
const blogPostsDir = "blog/posts";
|
||||
|
||||
export const postFileNameToParams = (fileName: string) => {
|
||||
const [year, month, day, ...slug] = fileName.replace(/\.md$/, "").split("-");
|
||||
@@ -35,7 +35,7 @@ export const getPostFilePath = (params: {
|
||||
};
|
||||
|
||||
export const getAllPostFileNames = () => {
|
||||
return fs.readdirSync(blogPostsDir).filter((f) => f !== "README.md");
|
||||
return fs.readdirSync(blogPostsDir);
|
||||
};
|
||||
|
||||
export const getAllPostParams = () => {
|
||||
|
||||
Reference in New Issue
Block a user