docs: avoid using .html extension for blog posts (#17090)

* docs: avoid using `.html` extension for blog posts

* revert `pretty urls` option
This commit is contained in:
Lehoczky Zoltán authored and GitHub committed 2025-02-10 02:16:50 +00:00
1 parent f95cfbca7d
commit 8b1dda294a
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ describe("publish-to-npm", () => {
"[diff](https://github.com/prettier/prettier/compare/2.3.0...2.4.0)", "[diff](https://github.com/prettier/prettier/compare/2.3.0...2.4.0)",
`🔗 [Release note](https://prettier.io/blog/${getDateParts().join( `🔗 [Release note](https://prettier.io/blog/${getDateParts().join(
"/", "/",
)}/2.4.0.html)`, )}/2.4.0)`,
].join("\n\n"), ].join("\n\n"),
}), }),
); );
@@ -57,7 +57,7 @@ describe("publish-to-npm", () => {
"[diff](https://github.com/prettier/prettier/compare/2.2.0...2.3.0)", "[diff](https://github.com/prettier/prettier/compare/2.2.0...2.3.0)",
`🔗 [Release note](https://prettier.io/blog/${getDateParts().join( `🔗 [Release note](https://prettier.io/blog/${getDateParts().join(
"/", "/",
)}/2.3.0.html)`, )}/2.3.0)`,
].join("\n\n"), ].join("\n\n"),
}), }),
); );
+1 -1
View File
@@ -129,7 +129,7 @@ function getBlogPostInfo(version) {
return { return {
file: `website/blog/${year}-${month}-${day}-${version}.md`, file: `website/blog/${year}-${month}-${day}-${version}.md`,
path: `blog/${year}/${month}/${day}/${version}.html`, path: `blog/${year}/${month}/${day}/${version}`,
}; };
} }