Skip to content

Commit

Permalink
Merge pull request #168 from open-sausages/pulls/update-5
Browse files Browse the repository at this point in the history
Add master back as 5, mark 4.0 as stable
  • Loading branch information
robbieaverill authored Nov 8, 2017
2 parents 554070a + 4bb55a5 commit ef80e6d
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 59 deletions.
5 changes: 4 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ErrorDocument 500 /assets/error-500.html
RewriteCond %{HTTP_HOST} ^(docs?.silverstripe.com|doc.silverstripe.org|beta.docs.silverstripe.org)$ [NC]
RewriteRule ^(.*)$ https://docs.silverstripe.org/$1 [L,R=301]

# Home page redirect
RewriteRule ^(/)?$ /en/4/ [R=302,NC,QSA,L]

# Legacy rewrite from sapphire/ to framework/ namespace
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^framework/main\.php
Expand All @@ -52,7 +55,7 @@ ErrorDocument 500 /assets/error-500.html
RewriteRule ^en/3\.[5-9]/(.*)?$ /en/3/$1 [R=301,L]

# Redirect old index links to the current version
RewriteRule ^en/(all|results)\/?$ /en/3/$1 [R=301,L]
RewriteRule ^en/(all|results)\/?$ /en/4/$1 [R=301,L]

# DokuWiki rewrite rules: Need to happen before other rules in order to redirect /doku.php?id=<pagename>
# to /pagename, which can then be matched by the legacy rewrite rules further down
Expand Down
4 changes: 4 additions & 0 deletions app/_config/docs-repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ After:
---
RefreshMarkdownTask:
documentation_repositories:
-
- silverstripe/silverstripe-framework
- framework
- "master"
-
- silverstripe/silverstripe-framework
- framework
Expand Down
8 changes: 8 additions & 0 deletions app/_config/docsviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ DocumentationSearch:
DocumentationManifest:
automatic_registration: false
register_entities:
-
Path: "assets/src/framework_master/docs/"
Title: "Framework"
VersionTitle: "5.x"
Version: "5"
Branch: "master"
DefaultEntity: true
-
Path: "assets/src/framework_4/docs/"
Title: "Framework"
VersionTitle: "4.x"
Version: "4"
Branch: "4"
Stable: true
DefaultEntity: true
-
Path: "assets/src/framework_3/docs/"
Expand Down
Loading

0 comments on commit ef80e6d

Please sign in to comment.