Skip to content

Commit

Permalink
[docs] Add redirect for installation page + update link in Home
Browse files Browse the repository at this point in the history
The link https://docs.expo.io/versions/latest/introduction/installation.html no longer exists but is linked to from the Expo client. This commit changes that link in Home to be https://docs.expo.io/versions/latest/introduction/installation/ and adds a redirect on the docs site so that this old link still works for now.
  • Loading branch information
ide committed Mar 4, 2019
1 parent 8d82732 commit 9ec8e6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,20 @@ jobs:
- docs-site-{{ .Revision }}
- deploy:
command: |
aws s3 sync docs/out s3://docs.expo.io --delete
- run: |
aws s3 cp \
--recursive \
--metadata-directive REPLACE \
--cache-control "public,max-age=31536000,immutable" \
s3://docs.expo.io/_next/static/ \
s3://docs.expo.io/_next/static/
touch docs/out/versions/latest/introduction/installation.html && \
aws s3 sync docs/out s3://docs.expo.io --delete && \
aws s3 cp \
--recursive \
--metadata-directive REPLACE \
--cache-control "public,max-age=31536000,immutable" \
s3://docs.expo.io/_next/static/ \
s3://docs.expo.io/_next/static/ && \
# Temporarily create a redirect for a page that Home links to
aws s3 cp installation.html \
--metadata-directive REPLACE
--website-redirect /versions/latest/introduction/installation/ \
s3://docs.expo.io/versions/latest/introduction/installation.html \
s3://docs.expo.io/versions/latest/introduction/installation.html
test_suite_publish:
executor: nix
Expand Down
2 changes: 1 addition & 1 deletion home/components/NoProjectTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class QRCodeButton extends React.Component {
}

_handlePressAsync = async () => {
Linking.openURL('https://docs.expo.io/versions/latest/introduction/installation.html');
Linking.openURL('https://docs.expo.io/versions/latest/introduction/installation/');
};
}

Expand Down

0 comments on commit 9ec8e6d

Please sign in to comment.