You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploy.md
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,3 +87,45 @@ When using the HTML5 router, you need to set up redirect rules that redirect all
87
87
```sh
88
88
/* /index.html 200
89
89
```
90
+
91
+
## AWS Amplify
92
+
93
+
1. Set the routerMode in the Docsify project `index.html` to *history* mode.
94
+
95
+
```html
96
+
<script>
97
+
window.$docsify = {
98
+
loadSidebar: true,
99
+
routerMode: 'history'
100
+
}
101
+
</script>
102
+
```
103
+
104
+
2. Login to your [AWS Console](https://aws.amazon.com).
105
+
3. Go to the [AWS Amplify Dashboard](https://aws.amazon.com/amplify).
106
+
4. Choose the **Deploy** route to setup your project.
107
+
5. When prompted, keep the build settings empty if you're serving your docs within the root directory. If you're serving your docs from a different directory, customise your amplify.yml
108
+
109
+
```yml
110
+
version: 0.1
111
+
frontend:
112
+
phases:
113
+
build:
114
+
commands:
115
+
- echo "Nothing to build"
116
+
artifacts:
117
+
baseDirectory: /docs
118
+
files:
119
+
- '**/*'
120
+
cache:
121
+
paths: []
122
+
123
+
```
124
+
125
+
6. Add the following Redirect rules in their displayed order.
0 commit comments