diff --git a/contents/handbook/people/hiring-process/hiring-process.md b/contents/handbook/people/hiring-process/index.md similarity index 99% rename from contents/handbook/people/hiring-process/hiring-process.md rename to contents/handbook/people/hiring-process/index.md index 81a328096..d5edca818 100644 --- a/contents/handbook/people/hiring-process/hiring-process.md +++ b/contents/handbook/people/hiring-process/index.md @@ -1,5 +1,6 @@ --- title: Hiring process +sidebarTitle: Overview sidebar: Handbook showTitle: true hideAnchor: true diff --git a/netlify.toml b/netlify.toml index 2f935aed1..24082641e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -697,7 +697,12 @@ from = "/docs/data-model" to = "/docs/data-model" +# Added: 2021-08-12 +[[redirects]] + from = "/handbook/people/hiring-process/hiring-process" + to = "/handbook/people/hiring-process" + # Added: 2021-08-12 [[redirects]] from = "/docs/self-host/deploy/overview" - to = "/docs/self-host/deploy" + to = "/docs/self-host" diff --git a/scripts/safe_rename.py b/scripts/safe_rename.py index 0e67a47f5..3b213eb84 100644 --- a/scripts/safe_rename.py +++ b/scripts/safe_rename.py @@ -24,7 +24,7 @@ def md_to_mdx(from_path, to_path, new_redirect): return from_path.endswith('.md') and to_path.endswith('.mdx') def redirect_exists(from_path, to_path, new_redirect): - return new_redirect in local_netlify_config_text + return new_redirect.strip() in local_netlify_config_text def from_dot_star(from_path, to_path, new_redirect): return from_path == '(.*)' diff --git a/src/sidebars/sidebars.json b/src/sidebars/sidebars.json index b976ae2cd..38221a3f8 100644 --- a/src/sidebars/sidebars.json +++ b/src/sidebars/sidebars.json @@ -328,7 +328,7 @@ "entry": "Hiring Process", "name": "Hiring Process", "items": [ - "handbook/people/hiring-process/hiring-process", + "handbook/people/hiring-process", "handbook/people/hiring-process/design-hiring", "handbook/people/hiring-process/engineering-hiring", "handbook/people/hiring-process/exec-hiring",