Update hiring process URL to /handbook/people/hiring-process (#1749)

* Update hiring process URL to /handbook/people/hiring-process

* Add safe redirects

* Improve existing redirect detection

* Remove existing redirect

* change hiring process URL in sidebar

* Update hiring process sidebar text to "Overview"

Co-authored-by: PostHog <hey@posthog.com>
This commit is contained in:
Phil Leggetter
2021-08-12 15:58:20 +01:00
committed by GitHub
parent 837706e200
commit 9b007dfe1e
4 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
---
title: Hiring process
sidebarTitle: Overview
sidebar: Handbook
showTitle: true
hideAnchor: true

View File

@@ -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"

View File

@@ -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 == '(.*)'

View File

@@ -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",