Skip to content

Commit 8b1dda2

Browse files
authored
docs: avoid using .html extension for blog posts (#17090)
* docs: avoid using `.html` extension for blog posts * revert `pretty urls` option
1 parent f95cfbc commit 8b1dda2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/release/tests/publish-to-npm.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("publish-to-npm", () => {
4040
"[diff](https://github.com/prettier/prettier/compare/2.3.0...2.4.0)",
4141
`🔗 [Release note](https://prettier.io/blog/${getDateParts().join(
4242
"/",
43-
)}/2.4.0.html)`,
43+
)}/2.4.0)`,
4444
].join("\n\n"),
4545
}),
4646
);
@@ -57,7 +57,7 @@ describe("publish-to-npm", () => {
5757
"[diff](https://github.com/prettier/prettier/compare/2.2.0...2.3.0)",
5858
`🔗 [Release note](https://prettier.io/blog/${getDateParts().join(
5959
"/",
60-
)}/2.3.0.html)`,
60+
)}/2.3.0)`,
6161
].join("\n\n"),
6262
}),
6363
);

scripts/release/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function getBlogPostInfo(version) {
129129

130130
return {
131131
file: `website/blog/${year}-${month}-${day}-${version}.md`,
132-
path: `blog/${year}/${month}/${day}/${version}.html`,
132+
path: `blog/${year}/${month}/${day}/${version}`,
133133
};
134134
}
135135

0 commit comments

Comments
 (0)