Skip to content

Commit

Permalink
Merge pull request #268 from EasyPost/ci_docs
Browse files Browse the repository at this point in the history
chore: generate docs on CI
  • Loading branch information
Justintime50 authored May 1, 2023
2 parents 0f3a2ef + 7ef8e79 commit bf2f9bb
Show file tree
Hide file tree
Showing 42 changed files with 24 additions and 17,599 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI"
name: 'CI'

on:
push:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: '3.11'
- name: Install Dependencies
run: make install
- name: Check format
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-20.04 # TODO: Python 3.6 doesn't have a binary for 22.04, switch to `latest` once we drop support for Python 3.6
strategy:
matrix:
pythonversion: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
pythonversion: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: set up python
Expand All @@ -41,3 +41,22 @@ jobs:
run: venv/bin/coveralls --service=github
- name: Run security analysis
run: make scan
docs:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: make install
- name: Generate Docs
run: make docs
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*.sublime-*
/MANIFEST
dist
docs/build/
docs
Icon
test
venv
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ print(shipment)

API documentation can be found at: <https://easypost.com/docs/api>.

Library documentation can be found on the web at: <https://easypost.github.io/easypost-python/> or locally in the `docs` directory.
Library documentation can be found on the web at: <https://easypost.github.io/easypost-python/> or by building them locally via the `make docs` command.

Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).

Expand Down
318 changes: 0 additions & 318 deletions docs/easypost.html

This file was deleted.

492 changes: 0 additions & 492 deletions docs/easypost/address.html

This file was deleted.

295 changes: 0 additions & 295 deletions docs/easypost/api_key.html

This file was deleted.

583 changes: 0 additions & 583 deletions docs/easypost/batch.html

This file was deleted.

243 changes: 0 additions & 243 deletions docs/easypost/beta.html

This file was deleted.

1,063 changes: 0 additions & 1,063 deletions docs/easypost/beta/referral.html

This file was deleted.

530 changes: 0 additions & 530 deletions docs/easypost/billing.html

This file was deleted.

295 changes: 0 additions & 295 deletions docs/easypost/brand.html

This file was deleted.

440 changes: 0 additions & 440 deletions docs/easypost/carrier_account.html

This file was deleted.

248 changes: 0 additions & 248 deletions docs/easypost/constant.html

This file was deleted.

299 changes: 0 additions & 299 deletions docs/easypost/customs_info.html

This file was deleted.

299 changes: 0 additions & 299 deletions docs/easypost/customs_item.html

This file was deleted.

1,048 changes: 0 additions & 1,048 deletions docs/easypost/easypost_object.html

This file was deleted.

434 changes: 0 additions & 434 deletions docs/easypost/endshipper.html

This file was deleted.

381 changes: 0 additions & 381 deletions docs/easypost/error.html

This file was deleted.

437 changes: 0 additions & 437 deletions docs/easypost/event.html

This file was deleted.

306 changes: 0 additions & 306 deletions docs/easypost/insurance.html

This file was deleted.

431 changes: 0 additions & 431 deletions docs/easypost/order.html

This file was deleted.

299 changes: 0 additions & 299 deletions docs/easypost/parcel.html

This file was deleted.

283 changes: 0 additions & 283 deletions docs/easypost/payload.html

This file was deleted.

438 changes: 0 additions & 438 deletions docs/easypost/pickup.html

This file was deleted.

295 changes: 0 additions & 295 deletions docs/easypost/pickup_rate.html

This file was deleted.

295 changes: 0 additions & 295 deletions docs/easypost/postage_label.html

This file was deleted.

295 changes: 0 additions & 295 deletions docs/easypost/rate.html

This file was deleted.

809 changes: 0 additions & 809 deletions docs/easypost/referral.html

This file was deleted.

306 changes: 0 additions & 306 deletions docs/easypost/refund.html

This file was deleted.

390 changes: 0 additions & 390 deletions docs/easypost/report.html

This file was deleted.

1,463 changes: 0 additions & 1,463 deletions docs/easypost/requestor.html

This file was deleted.

922 changes: 0 additions & 922 deletions docs/easypost/resource.html

This file was deleted.

348 changes: 0 additions & 348 deletions docs/easypost/scanform.html

This file was deleted.

906 changes: 0 additions & 906 deletions docs/easypost/shipment.html

This file was deleted.

295 changes: 0 additions & 295 deletions docs/easypost/tax_identifier.html

This file was deleted.

362 changes: 0 additions & 362 deletions docs/easypost/tracker.html

This file was deleted.

642 changes: 0 additions & 642 deletions docs/easypost/user.html

This file was deleted.

319 changes: 0 additions & 319 deletions docs/easypost/util.html

This file was deleted.

245 changes: 0 additions & 245 deletions docs/easypost/version.html

This file was deleted.

487 changes: 0 additions & 487 deletions docs/easypost/webhook.html

This file was deleted.

7 changes: 0 additions & 7 deletions docs/index.html

This file was deleted.

46 changes: 0 additions & 46 deletions docs/search.js

This file was deleted.

0 comments on commit bf2f9bb

Please sign in to comment.