This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a Notion specific file to register redirections as part of …
…the migration process (#8922) We already have some code handling redirections, but for simplifying the contribution process for teammates not too familiar with code, we instead introduce a specific YAML file. The format is dead simple, and should not pose any problems for anyone to contribute. ```yaml # data/notion_migration.yaml redirections: - source: /departments/engineering/teams/devinfra destination: https://sourcegraph.notion.site/Developer-Infrastructure-Team-a46433b93bb2445abc1966c93a570a26 ``` Additionally, the deprecation banner also recommend to teammates to submit pull requests if they know the Notion equivalent of a given page: <img width="873" alt="image" src="https://github.com/sourcegraph/handbook/assets/10151/294e4093-6043-465d-b788-035133755570"> The separate file is practical for at a later stage, turning the redirections in Cloudflare page rules, once we make handbook.sourcegraph.com point at Notion instead of the legacy handbook app. --------- Co-authored-by: jhchabran <[email protected]> Co-authored-by: Robert Lin <[email protected]>
- Loading branch information
1 parent
a9586b3
commit 057cc0b
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Add your desired redirections here! | ||
# - 'source': URL path to redirect, as currently visible on handbook.sourcegraph.com | ||
# - 'destination': New URL top direct to. If a public 'sourcegraph.notion.site' page is available, prefer that instead of the internal Notion URL. | ||
redirections: | ||
- source: /departments/engineering/teams/devinfra | ||
destination: https://sourcegraph.notion.site/Developer-Infrastructure-Team-a46433b93bb2445abc1966c93a570a26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters