|
1 | 1 | # Amazon DynamoDB Labs |
| 2 | +The repo for https://catalog.workshops.aws/dynamodb-labs/en-US , formerly https://amazon-dynamodb-labs.com |
2 | 3 |
|
3 | | -### Setup: |
| 4 | +### Dev: |
4 | 5 |
|
5 | | -#### Install Hugo: |
6 | | -On a mac: |
7 | | - |
8 | | -`brew install hugo` |
9 | | - |
10 | | -On Linux: |
11 | | - - Download from the releases page: https://github.com/gohugoio/hugo/releases/tag/v0.102.3 |
12 | | - - Extract and save the hugo executable to `/usr/local/bin/` |
13 | | - |
14 | | -Note: This workshop is built with [hugo v0.102.3](https://github.com/gohugoio/hugo/releases/tag/v0.102.3). Older versions may produce errors due to the aws theme we use. |
| 6 | +#### Local development |
| 7 | +You can make code changes and markdown changes, but in order to test the build you need to be an Amazon employee with access to preview_build to compile the documentation and run the site locally. [Amazon employees click here for instructions](https://tiny.amazon.com/16x21plc5). |
15 | 8 |
|
16 | 9 | #### Clone this repo: |
17 | | -From wherever you checkout repos: |
| 10 | +We suggest you make a fork. From wherever you are you can checkout the repo: |
18 | 11 | `git clone git@github.com:aws-samples/amazon-dynamodb-labs.git` (or your fork) |
19 | 12 |
|
20 | | -#### Clone the theme submodule: |
21 | | -`cd amazon-dynamodb-labs` |
22 | | - |
23 | | -`git submodule init; git submodule update` |
24 | | - |
25 | | - |
26 | | -#### Run Hugo locally: |
27 | | -To run hugo in development: |
28 | | -`hugo serve -D` |
29 | | - |
30 | | -`hugo` will build your content locally and output to `./public/` |
31 | | - |
32 | | - |
33 | | -#### View Hugo locally: |
34 | | -Visit http://localhost:1313/ to see the site. |
35 | | - |
36 | | -#### Making Edits: |
37 | | -As you save edits to a page, the site will live-reload to show your changes. |
| 13 | +#### Making edits: |
| 14 | +Amazon employees only: Make changes, run preview_build, check localhost:8080 to see the site locally |
| 15 | +Everyone else: make changes, make a pull request, and wait for the automations to run. They will tell you if you have errors in your changes. |
38 | 16 |
|
39 | | -#### Auto deploy: |
| 17 | +#### Pull requests |
| 18 | +Make a pull request with changes. PRs will be automatically checked to make sure their markdown and other files are correct and without error using an automatic GitHub action. With each commit in a PR, the action will run to verify. |
40 | 19 |
|
41 | | -Within minutes of a commit to the master branch, a build and deploy using the default hugo grav learn theme will kick off. You can review your change at the following address. |
| 20 | +#### On merge to master |
42 | 21 |
|
43 | | -https://master.amazon-dynamodb-labs.com |
| 22 | +On merge to master, a GitHub action will deploy the assets to amazon-dynamodb-labs.com and verify the build to ensure the markdown and other files are correctly formatted. From there, a maintainer must manually pull the changes and push to https://catalog.workshops.aws/dynamodb-labs/en-US |
44 | 23 |
|
45 | 24 | ## License |
46 | 25 | This project is licensed under the Apache-2.0 License. |
0 commit comments