Skip to content

Commit

Permalink
chore: Update release script to use new docs locations
Browse files Browse the repository at this point in the history
These were introduced in #6248
  • Loading branch information
abernix committed Nov 20, 2024
1 parent 24c4998 commit 02c9965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xtask/src/commands/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ impl Prepare {
fn update_docs(&self, version: &str) -> Result<()> {
println!("updating docs");
replace_in_file!(
"./docs/source/containerization/docker.mdx",
"./docs/source/routing/self-hosted/containerization/docker.mdx",
"with your chosen version. e.g.: `v[^`]+`",
format!("with your chosen version. e.g.: `v{version}`")
);
replace_in_file!(
"./docs/source/containerization/kubernetes.mdx",
"./docs/source/routing/self-hosted/containerization/kubernetes.mdx",
"https://github.com/apollographql/router/tree/[^/]+/helm/chart/router",
format!("https://github.com/apollographql/router/tree/v{version}/helm/chart/router")
);
Expand All @@ -309,7 +309,7 @@ impl Prepare {
)?;

replace_in_file!(
"./docs/source/containerization/kubernetes.mdx",
"./docs/source/routing/self-hosted/containerization/kubernetes.mdx",
"^```yaml\n---\n# Source: router/templates/serviceaccount.yaml(.|\n)+?```",
format!("```yaml\n{}\n```", helm_chart.trim())
);
Expand Down

0 comments on commit 02c9965

Please sign in to comment.