-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration to Workshop Studio guide format (#98)
Complete re-format of all doc pages to remove references to hugo and format for Workshop Studio.
- Loading branch information
Showing
125 changed files
with
572 additions
and
758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ValidatePR | ||
|
||
permissions: | ||
id-token: write | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
buildAndVerify: | ||
runs-on: ubuntu-latest | ||
env: | ||
STEP_S3_BUCKET: 'test.amazon-dynamodb-labs.com' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: '0' | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
- name: Pull preview build | ||
run: aws s3 sync s3://amazon-dynamodb-labs-static/build/ . && chmod +x preview_build | ||
- name: Build Assets | ||
run: python3 ./.github/scripts/build-assets.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "themes/learn"] | ||
path = themes/learn | ||
url = https://github.com/switch180/hugo-theme-learn.git | ||
branch = aws | ||
branch = aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,25 @@ | ||
# Amazon DynamoDB Labs | ||
The repo for https://catalog.workshops.aws/dynamodb-labs/en-US , formerly https://amazon-dynamodb-labs.com | ||
|
||
### Setup: | ||
### Dev: | ||
|
||
#### Install Hugo: | ||
On a mac: | ||
|
||
`brew install hugo` | ||
|
||
On Linux: | ||
- Download from the releases page: https://github.com/gohugoio/hugo/releases/tag/v0.102.3 | ||
- Extract and save the hugo executable to `/usr/local/bin/` | ||
|
||
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. | ||
#### Local development | ||
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). | ||
|
||
#### Clone this repo: | ||
From wherever you checkout repos: | ||
We suggest you make a fork. From wherever you are you can checkout the repo: | ||
`git clone [email protected]:aws-samples/amazon-dynamodb-labs.git` (or your fork) | ||
|
||
#### Clone the theme submodule: | ||
`cd amazon-dynamodb-labs` | ||
|
||
`git submodule init; git submodule update` | ||
|
||
|
||
#### Run Hugo locally: | ||
To run hugo in development: | ||
`hugo serve -D` | ||
|
||
`hugo` will build your content locally and output to `./public/` | ||
|
||
|
||
#### View Hugo locally: | ||
Visit http://localhost:1313/ to see the site. | ||
|
||
#### Making Edits: | ||
As you save edits to a page, the site will live-reload to show your changes. | ||
#### Making edits: | ||
Amazon employees only: Make changes, run preview_build, check localhost:8080 to see the site locally | ||
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. | ||
|
||
#### Auto deploy: | ||
#### Pull requests | ||
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. | ||
|
||
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. | ||
#### On merge to master | ||
|
||
https://master.amazon-dynamodb-labs.com | ||
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 | ||
|
||
## License | ||
This project is licensed under the Apache-2.0 License. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.