Skip to content

Commit 60e934b

Browse files
gep13arturcic
authored andcommitted
(#2664) Add redirects for pages that have moved
As a result of changes to the structure of the documentation site, the original 301 redirects from readthedocs, were resulting in 404's within GitHub pages. This PR addresses this by ensuring that a Wyam RedirectFrom attribute is added to all affected pages, so that the end result is arrive on the correct page. There may be additional changes that need to be made to capture all pages, but this commit contains all 301 redirects from the current readthedocs configuration.
1 parent 67abe09 commit 60e934b

38 files changed

+54
-0
lines changed

docs/input/docs/index.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
Title: Documentation
3+
RedirectFrom:
4+
- docs/reference/pull-requests
5+
- docs/reference/feature-branches
36
---
47

58
@{

docs/input/docs/learn/branching-strategies/contribute-examples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Order: 70
33
Title: Contribute Examples
44
Description: Contribute examples of how GitVersion works for your branching strategy
5+
RedirectFrom: docs/git-branching-strategies/creating-updating-examples
56
---
67

78
The examples are generated by GitVersion tests, there are a number of services

docs/input/docs/learn/branching-strategies/gitflow/converting-to-gitflow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Order: 60
33
Title: Converting to GitFlow
4+
RedirectFrom: docs/git-branching-strategies/converting-to-gitflow
45
---
56

67
Converting to GitFlow is simple. Whenever you need to convert, simply do the

docs/input/docs/learn/branching-strategies/gitflow/examples.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
Order: 40
33
Title: GitFlow Examples
4+
RedirectFrom:
5+
- docs/git-branching-strategies/gitflow-examples_complete
6+
- docs/git-branching-strategies/gitflow-examples
47
---
58

69
These examples are using the _default_ configuration with GitVersion. Which is

docs/input/docs/learn/branching-strategies/gitflow/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Order: 20
33
Title: Git Flow
44
Description: The Git Flow branching strategy allows for more structured releases
5+
RedirectFrom: docs/git-branching-strategies/gitflow
56
---
67

78
Git Flow allows more structured releases, and GitVersion will derive sensible

docs/input/docs/learn/branching-strategies/githubflow/examples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Order: 50
33
Title: GitHubFlow Examples
4+
RedirectFrom: docs/git-branching-strategies/githubflow-examples
45
---
56

67
## Feature branch

docs/input/docs/learn/branching-strategies/githubflow/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Order: 30
33
Title: GitHub Flow
44
Description: GitHub flow is a simpler and pull request-driven branching strategy
5+
RedirectFrom: docs/git-branching-strategies/githubflow
56
---
67

78
GitHubFlow is a simple and effective branching strategy which the folks at

docs/input/docs/learn/branching-strategies/index.cshtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Order: 4000
33
Title: Branching Strategies
44
Description: Information about the different branching strategies supported by GitVersion
5+
RedirectFrom:
6+
- docs/git-branching-strategies/overview
7+
- docs/git-branching-strategies
8+
- docs/examples
59
---
610

711
<img src="/docs/img/CommitGraph.png" alt="Commit graph">

docs/input/docs/learn/dynamic-repositories.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Order: 20
33
Title: Dynamic Repositories
4+
RedirectFrom: docs/more-info/dynamic-repositories
45
---
56

67
GitVersion.exe requires access to the Git repository in order to do / infer all

docs/input/docs/learn/faq.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Order: 50
33
Title: FAQ
4+
RedirectFrom: docs/faq
45
---
56

67
## Why is my version not incrementing?

0 commit comments

Comments
 (0)