Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various redirects and aliases #52

Merged
merged 8 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 61 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
from = "/conduct"
to = "https://github.com/cucumber/.github/tree/main?tab=coc-ov-file"
status = 302
[[redirects]]
from = "/school"
to = "https://school.cucumber.io"
status = 301
[[redirects]]
from = "/school/*"
to = "https://school.cucumber.io"
status = 301

# Blog posts with parens in the slug
[[redirects]]
Expand Down Expand Up @@ -68,19 +76,69 @@
to = "/blog/bdd/keep-your-scenarios-brief"
status = 301

# Relocated docs
# Blog tags
[[redirects]]
from = "/docs/guides/overview"
to = "/docs"
from = "/blog/news"
to = "/blog"
status = 301
[[redirects]]
from = "/blog/bdd"
to = "/blog/tags/bdd"
status = 301
[[redirects]]
from = "/blog/open-source"
to = "/blog/tags/open-source"
status = 301

# Community aliases
[[redirects]]
from = "/docs/community/get-in-touch"
to = "/docs/community"
status = 301
[[redirects]]
from = "/support"
to = "/community"
status = 301
[[redirects]]
from = "/contact-us"
to = "/community"
status = 301
[[redirects]]
from = "/team"
to = "/community"
status = 302

# Events aliases
[[redirects]]
from = "/resources/events"
to = "/events"
status = 301
[[redirects]]
from = "/speakers"
to = "/events"
status = 301
[[redirects]]
from = "/cukenfest"
to = "/events"
status = 301

# Relocated docs
[[redirects]]
from = "/docs/guides/overview"
to = "/docs"
status = 301
[[redirects]]
from = "/docs/community/contributing"
to = "/docs/contributing"
status = 301
[[redirects]]
from = "/tools/cucumber-open/contribute"
to = "/docs/contributing"
status = 301
[[redirects]]
from = "/contribute"
to = "/docs/contributing"
status = 301
[[redirects]]
from = "/docs/community/contributing-to-documentation"
to = "https://github.com/cucumber/website/blob/main/CONTRIBUTING.md"
Expand Down
20 changes: 20 additions & 0 deletions src/pages/events.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Subscribe } from '@site/src/components/Newsletter'
import React from 'react'
import Layout from '@theme/Layout'

export default function Events() {
return (
<Layout>
<main>
<div className="container readable-blurb text--center padding-vert--lg">
<h1>Events</h1>
<p>
We don't currently have any Cucumber events lined up. If/when that changes, newsletter
subscribers will be among the first to know.
</p>
<Subscribe />
</div>
</main>
</Layout>
)
}
16 changes: 16 additions & 0 deletions src/theme/NotFound/Content/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { ReactNode } from 'react'
import Link from '@docusaurus/Link'

export default function NotFoundContent(): ReactNode {
return (
<main>
<div className="container readable-blurb text--center padding-vert--lg">
<h1>Not found</h1>
<p>There's nothing at this path. Sorry about that.</p>
<Link className="button button--secondary" to="/">
Start Again
</Link>
</div>
</main>
)
}
Loading