Skip to content

Autodocs #419

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

Merged
merged 6 commits into from
Apr 25, 2022
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'main'
- 'docs'

env:
BUILDER_VERSION: v0.8.29
Expand Down Expand Up @@ -116,6 +117,17 @@ jobs:
chmod a+x builder
./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream

# check that docs can still build
check-docs:
runs-on: ubuntu-20.04 # latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Check docs
run: |
sudo apt-get install -y doxygen
./make-docs.py

check-submodules:
runs-on: ubuntu-latest
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Update the API documentation whenever the `main` branch changes.
# This documentation lives in its own `docs` branch.
name: docs

on:
push:
branches:
- 'main'

jobs:
update-docs-branch:
runs-on: ubuntu-20.04 # latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Update docs branch
run: |
sudo apt-get install -y doxygen
./make-docs.py

- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add --force docs/
git commit --message="update docs"

- name: Push to docs branch
uses: ad-m/[email protected]
with:
github_token: ${{ github.token }}
branch: docs
# Force push so that `docs` branch always looks like `main`,
# but with 1 additional "update docs" commit.
# This seems simpler than trying to cleanly merge `main` into
# `docs` each time.
force: true
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint

on: [push]
on:
push:
branches-ignore:
- 'main'
- 'docs'

jobs:
clang-format:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
.idea
.DS_Store
.vscode

#cmake artifacts
dependencies
_build
build
_build_*
cmake-build*

# docs are updated automatically by .github/workflows/docs.yml
docs/
2 changes: 1 addition & 1 deletion crt/aws-crt-cpp
Submodule aws-crt-cpp updated 837 files
134 changes: 0 additions & 134 deletions docs/html/_api_8cpp.html

This file was deleted.

Loading