Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit b359b10

Browse files
committed
Adding skeleton for docs-as-code
1 parent 205e214 commit b359b10

24 files changed

+269
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: main-documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
jobs:
9+
build-adocs:
10+
runs-on: ubuntu-18.04
11+
name: asciidoc builder
12+
steps:
13+
- name: Checkout (main)
14+
uses: actions/checkout@v2
15+
- name: Get new doc updates
16+
run: |
17+
wget https://raw.githubusercontent.com/aws-quickstart/quickstart-documentation-base-common/main/.utils/configure_git_env.sh
18+
chmod +x configure_git_env.sh
19+
./configure_git_env.sh
20+
- name: Setup python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.x
24+
- name: Generate dynamic content.
25+
run: ./docs/boilerplate/.utils/generate_dynamic_content.sh
26+
- name: Run local actions
27+
id: adoc
28+
uses: ./docs/boilerplate/.actions/asciidoctor-action
29+
with:
30+
program: "./docs/boilerplate/.utils/build_docs.sh"
31+
- name: Stage and Push changes to gh-pages branch.
32+
run: ./docs/boilerplate/.utils/commit_and_push_to_ghpages.sh
33+
env:
34+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
35+
- name: Configure gh-pages source and trigger build if necessary.
36+
run: ./docs/boilerplate/.utils/config_and_trigger_gh-pages.sh
37+
env:
38+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs/boilerplate"]
2+
path = docs/boilerplate
3+
url = https://github.com/aws-quickstart/quickstart-documentation-base-common.git

.nojekyll

Whitespace-only changes.

docs/boilerplate

Submodule boilerplate added at 7ce4ed5
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// placeholder

docs/generated/regions/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// placeholder

docs/generated/services/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// placeholder
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// placeholder
52.5 KB
Loading
25.8 KB
Loading

0 commit comments

Comments
 (0)