Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates from project type #20

Merged
merged 1 commit into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is auto-generated, changes will be overwritten
_commit: v0.0.12
_src_path: /task/b9fd4019-f2ce-11ed-8b1b-dae315becaa1/projecttype
_commit: v0.0.13
_src_path: /task/cef6ced7-f9a1-11ed-8bca-cae66981e6ca/projecttype
starting_version: v0.0.0
version_file: VERSION

15 changes: 15 additions & 0 deletions .project_automation/publication/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
FROM public.ecr.aws/codebuild/amazonlinux2-x86_64-standard:4.0
RUN yum install -y yum-utils && yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo && yum install -y gh
RUN pip install taskcat

# https://github.com/gohugoio/hugo/releases
ENV HUGO_VERSION=0.111.3

RUN yum install -y yum-utils && \
yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo && \
yum install -y gh && \
pip3 install --upgrade pip && \
go env -w GOPROXY=direct && \
pushd /tmp && \
wget -q -nv https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.tar.gz && \
tar -xzf hugo_${HUGO_VERSION}_linux-amd64.tar.gz && \
mv ./hugo /usr/bin/ && \
popd && \
gem install asciidoctor
29 changes: 29 additions & 0 deletions .project_automation/publication/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,35 @@
PROJECT_PATH=${BASE_PATH}/project
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype

BRANCH=main
EXISTING_GIT_VERSION="$(git tag -l)"
HUGO_VERSION=$(hugo version)
PUBLIC_PATH=./public
# ABP clones with HTTPS URL remotes
REPO_NAME=$(git config --get remote.origin.url | cut -d '/' -f5 | cut -d '.' -f1)
VERSION=$(cat VERSION)

BASE_URL="this would be the path to s3 bucket/${REPO_NAME}/"
S3_URI="s3://aws-abi-pilot/guide/${REPO_NAME}/"

print_header() {
printf "\n\n%s\n" "$*"
}

print_header 'Building site...'
cd ${PROJECT_PATH}/guide
hugo --verbose --debug

print_header 'Publishing...'
aws s3 sync --delete "${PUBLIC_PATH}" "${S3_URI}" --acl public-read

print_header 'Listing uploaded content...'
aws s3 ls --recursive --human-readable --summarize "${S3_URI}"

printf "\nPublished at ${BASE_URL}\n"

# Publish code to S3 bucket

cd ${PROJECT_PATH}

taskcat upload --bucket-name aws-abi-pilot --object-acl public-read
Expand Down
Empty file added guide/.hugo_build.lock
Empty file.
296 changes: 296 additions & 0 deletions guide/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_Bd.eot");
src:
url("../fonts/AmazonEmber_W_Bd.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_Bd.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_Lt.woff") format("woff");
font-style: normal;
font-weight: bold;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_BdIt.eot");
src:
url("../fonts/AmazonEmber_W_BdIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_BdIt.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_BdIt.woff") format("woff");
font-style: italic;
font-weight: bold;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_He.eot");
src:
url("../fonts/AmazonEmber_W_He.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_He.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_He.woff") format("woff");
font-style: normal;
font-weight: bolder;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_HeIt.eot");
src:
url("../fonts/AmazonEmber_W_HeIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_HeIt.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_HeIt.woff") format("woff");
font-style: italic;
font-weight: bolder;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_Lt.eot");
src:
url("../fonts/AmazonEmber_W_Lt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_Lt.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_Lt.woff") format("woff");
font-style: normal;
font-weight: lighter;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_LtIt.eot");
src:
url("../fonts/AmazonEmber_W_LtIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_LtIt.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_LtIt.woff") format("woff");
font-style: italic;
font-weight: lighter;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_Rg.eot");
src:
url("../fonts/AmazonEmber_W_Rg.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_Rg.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_Rg.woff") format("woff");
font-style: normal;
font-weight: normal;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_RgIt.eot");
src:
url("../fonts/AmazonEmber_W_RgIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_RgIt.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_RgIt.woff") format("woff");
font-style: italic;
font-weight: normal;
}

@font-face {
font-family: 'Amazon Ember';
src: url("../fonts/AmazonEmber_W_RgIt.eot");
src:
url("../fonts/AmazonEmber_W_RgIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmber_W_RgIt.woff2") format("woff2"),
url("../fonts/AmazonEmber_W_RgIt.woff") format("woff");
font-style: italic;
font-weight: normal;
}

@font-face {
font-family: 'Amazon Ember Mono';
src: url("../fonts/AmazonEmberMono_W_Bd.eot");
src:
url("../fonts/AmazonEmberMono_W_Bd.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberMono_W_Bd.woff2") format("woff2"),
url("../fonts/AmazonEmberMono_W_Bd.woff") format("woff");
font-style: normal;
font-weight: bold;
}

@font-face {
font-family: 'Amazon Ember Mono';
src: url("../fonts/AmazonEmberMono_W_Rg.eot");
src:
url("../fonts/AmazonEmberMono_W_Rg.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberMono_W_Rg.woff2") format("woff2"),
url("../fonts/AmazonEmberMono_W_Rg.woff") format("woff");
font-style: normal;
font-weight: normal;
}

@font-face {
font-family: 'Amazon Ember Cd RC';
src: url("../fonts/AmazonEmberCd_W_Bd.eot");
src:
url("../fonts/AmazonEmberCd_W_Bd.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberCd_W_Bd.woff2") format("woff2"),
url("../fonts/AmazonEmberCd_W_Bd.woff") format("woff");
font-style: normal;
font-weight: bold;
}

@font-face {
font-family: 'Amazon Ember Cd RC';
src: url("../fonts/AmazonEmberCd_W_BdIt.eot");
src:
url("../fonts/AmazonEmberCd_W_BdIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberCd_W_BdIt.woff2") format("woff2"),
url("../fonts/AmazonEmberCd_W_BdIt.woff") format("woff");
font-style: italic;
font-weight: bold;
}

@font-face {
font-family: 'Amazon Ember Cd RC';
src: url("../fonts/AmazonEmberCd_W_Lt.eot");
src:
url("../fonts/AmazonEmberCd_W_Lt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberCd_W_Lt.woff2") format("woff2"),
url("../fonts/AmazonEmberCd_W_Lt.woff") format("woff");
font-style: normal;
font-weight: lighter;
}

@font-face {
font-family: 'Amazon Ember Cd RC';
src: url("../fonts/AmazonEmberCd_W_LtIt.eot");
src:
url("../fonts/AmazonEmberCd_W_LtIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberCd_W_LtIt.woff2") format("woff2"),
url("../fonts/AmazonEmberCd_W_LtIt.woff") format("woff");
font-style: italic;
font-weight: lighter;
}

@font-face {
font-family: 'Amazon Ember Cd RC';
src: url("../fonts/AmazonEmberCd_W_Rg.eot");
src:
url("../fonts/AmazonEmberCd_W_Rg.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberCd_W_Rg.woff2") format("woff2"),
url("../fonts/AmazonEmberCd_W_Rg.woff") format("woff");
font-style: normal;
font-weight: normal;
}

@font-face {
font-family: 'Amazon Ember Cd RC';
src: url("../fonts/AmazonEmberCd_W_RgIt.eot");
src:
url("../fonts/AmazonEmberCd_W_RgIt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberCd_W_RgIt.woff2") format("woff2"),
url("../fonts/AmazonEmberCd_W_RgIt.woff") format("woff");
font-style: italic;
font-weight: normal;
}

@font-face {
font-family: 'Amazon Ember Display';
src: url("../fonts/AmazonEmberDisplay_W_Bd.eot");
src:
url("../fonts/AmazonEmberDisplay_W_Bd.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberDisplay_W_Bd.woff2") format("woff2"),
url("../fonts/AmazonEmberDisplay_W_Bd.woff") format("woff");
font-style: normal;
font-weight: bold;
}

@font-face {
font-family: 'Amazon Ember Display';
src: url("../fonts/AmazonEmberDisplay_W_He.eot");
src:
url("../fonts/AmazonEmberDisplay_W_He.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberDisplay_W_He.woff2") format("woff2"),
url("../fonts/AmazonEmberDisplay_W_He.woff") format("woff");
font-style: normal;
font-weight: bolder;
}

@font-face {
font-family: 'Amazon Ember Display';
src: url("../fonts/AmazonEmberDisplay_W_Lt.eot");
src:
url("../fonts/AmazonEmberDisplay_W_Lt.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberDisplay_W_Lt.woff2") format("woff2"),
url("../fonts/AmazonEmberDisplay_W_Lt.woff") format("woff");
font-style: normal;
font-weight: lighter;
}

@font-face {
font-family: 'Amazon Ember Display';
src: url("../fonts/AmazonEmberDisplay_W_Rg.eot");
src:
url("../fonts/AmazonEmberDisplay_W_Rg.eot?#iefix") format("embedded-opentype"),
url("../fonts/AmazonEmberDisplay_W_Rg.woff2") format("woff2"),
url("../fonts/AmazonEmberDisplay_W_Rg.woff") format("woff");
font-style: normal;
font-weight: normal;
}

@media screen and (min-width: 1430px) {
#body .flex-block-wrapper {
min-width: calc( 1430px - 300px - 2 * 3.25rem );
width: calc( 1430px - 300px - 2 * 3.25rem );
max-width: calc( 1430px - 300px - 2 * 3.25rem );
}
}

#sidebar #footer > div {
font-size: .8125rem;
margin: 0 auto;
max-width: 18.75rem;
min-width: 14.375rem;
padding: 0 1rem;
text-align: center;
}

#sidebar #footer p {
margin: 0;
}

#sidebar #footer ul {
list-style: none;
margin-top: 8px;
padding: 0;
}

#sidebar #footer ul > li {
display: inline;
padding-left: 8px;
padding-right: 4px;
}

#sidebar #footer ul > li:not(:first-child) {
border-left: 1px solid var(--MENU-SECTION-HR-color);
}

#sidebar #footer ul > li > a {
color: var(--MENU-SECTIONS-LINK-color);
cursor: pointer;
display: inline;
text-decoration: none;
}

#sidebar #footer ul > li > a:hover {
color: var(--MENU-SECTIONS-LINK-HOVER-color);
cursor: pointer;
}

#sidebar #shortcuts > div {
color: var(--INTERNAL-MENU-SECTIONS-LINK-color);
font-size: 1.1rem;
font-weight: 300;
text-rendering: auto;
text-transform: none;
}

article {
background-color: var(--MAIN-ARTICLE-BG-color);
padding: 0 1rem 1rem 1rem;
}

article > h1 {
text-transform: none !important;
}
25 changes: 25 additions & 0 deletions guide/assets/images/error_pages_illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions guide/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading