-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into mikepaw.dynamo-db-billing
- Loading branch information
Showing
13 changed files
with
137 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Publish the mkdocs to gh-pages | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" | ||
|
||
jobs: | ||
deploy-website: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Configure JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
|
||
- name: Prep mkdocs | ||
run: .github/workflows/prepare_mkdocs.sh | ||
|
||
- name: Build mkdocs | ||
run: | | ||
pip3 install mkdocs-macros-plugin | ||
mkdocs build | ||
- name: Deploy 🚀 | ||
if: success() && github.ref == 'refs/heads/master' | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GH_CLIPPY_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: site # The folder the action should deploy. | ||
SINGLE_COMMIT: true |
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,38 @@ | ||
#!/bin/bash | ||
|
||
# The website is built using MkDocs with the Material theme. | ||
# https://squidfunk.github.io/mkdocs-material/ | ||
# It requires Python to run. | ||
# Install the packages with the following command: | ||
# pip install mkdocs mkdocs-material | ||
|
||
set -ex | ||
|
||
# Generate the API docs | ||
./gradlew dokka | ||
|
||
# Dokka filenames like `-http-url/index.md` don't work well with MkDocs <title> tags. | ||
# Assign metadata to the file's first Markdown heading. | ||
# https://www.mkdocs.org/user-guide/writing-your-docs/#meta-data | ||
title_markdown_file() { | ||
TITLE_PATTERN="s/^[#]+ *(.*)/title: \1 - Backfila/" | ||
echo "---" > "$1.fixed" | ||
cat $1 | sed -E "$TITLE_PATTERN" | grep "title: " | head -n 1 >> "$1.fixed" | ||
echo "---" >> "$1.fixed" | ||
echo >> "$1.fixed" | ||
cat $1 >> "$1.fixed" | ||
mv "$1.fixed" "$1" | ||
} | ||
|
||
set +x | ||
for MARKDOWN_FILE in $(find docs/0.x/ -name '*.md'); do | ||
echo $MARKDOWN_FILE | ||
title_markdown_file $MARKDOWN_FILE | ||
done | ||
set -x | ||
|
||
# Copy in special files that GitHub wants in the project root. | ||
cat README.md | grep -v 'project website' > docs/index.md | ||
cp CHANGELOG.md docs/changelog.md | ||
cp CONTRIBUTING.md docs/contributing.md | ||
cp RELEASING.md docs/releasing.md |
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,13 @@ | ||
# Contributing | ||
|
||
If you would like to contribute code to this project you can do so through GitHub by | ||
forking the repository and sending a pull request. | ||
|
||
When submitting code, please make every effort to follow existing conventions | ||
and style in order to keep the code as readable as possible. | ||
|
||
Before your code can be accepted into the project you must also sign the | ||
[Individual Contributor License Agreement (CLA)][1]. | ||
|
||
|
||
[1]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1 |
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
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
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