Skip to content

Autodocs #313

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 4 commits into from
Apr 22, 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches:
- '*'
- '!main'
branches-ignore:
- 'main'
- 'docs'

env:
BUILDER_VERSION: v0.8.28
Expand Down Expand Up @@ -45,4 +45,15 @@ jobs:
chmod a+x builder
./builder build -p ${{ env.PACKAGE_NAME }}


# check that docs can still build
check-docs:
runs-on: ubuntu-20.04 # latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Check docs
run: |
python3 -m pip install sphinx
python3 -m pip install --verbose .
./make-docs.py
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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

- name: Update docs branch
run: |
python3 -m pip install sphinx
python3 -m pip install --verbose .
./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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ docs/.doctrees/
__pycache__/
*.egg-info
build/*

# docs are updated automatically by .github/workflows/docs.yml
docs/
2 changes: 1 addition & 1 deletion awsiot/greengrasscoreipc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def connect(*,
environment variable AWS_GG_NUCLEUS_DOMAIN_SOCKET_FILEPATH_FOR_COMPONENT
authtoken: Authentication token, defaults to environment variable SVCUID
lifecycle_handler: Handler for events over the course of this
network connection. See :class:`LifecycleHandler` for more info.
network connection. See :class:`awsiot.eventstreamrpc.LifecycleHandler` for more info.
Handler methods will only be invoked if the connect attempt
succeeds.
timeout: The number of seconds to wait for establishing the connection.
Expand Down
2 changes: 1 addition & 1 deletion awsiot/mqtt_connection_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def mtls_with_pkcs11(*,
The certificate must be PEM-formatted. The certificate may be
specified by other means instead (ex: `cert_bytes`)

cert_bytes (Optional[bytes-like object]):
cert_bytes (Optional[Union[str, bytes, bytearray]]):
Use this X.509 certificate (contents in memory).
The certificate must be PEM-formatted. The certificate may be
specified by other means instead (ex: `cert_filepath`)
Expand Down
Empty file removed docs/.nojekyll
Empty file.
4 changes: 0 additions & 4 deletions docs/_sources/awsiot/awsiot.rst.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sources/awsiot/eventstreamrpc.rst.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sources/awsiot/greengrass_discovery.rst.txt

This file was deleted.

10 changes: 0 additions & 10 deletions docs/_sources/awsiot/greengrasscoreipc.rst.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sources/awsiot/iotidentity.rst.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sources/awsiot/iotjobs.rst.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sources/awsiot/iotshadow.rst.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_sources/awsiot/mqtt_connection_builder.rst.txt

This file was deleted.

38 changes: 0 additions & 38 deletions docs/_sources/index.rst.txt

This file was deleted.

Binary file removed docs/_static/background_b01.png
Binary file not shown.
Loading