Skip to content
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

Doc workflow #1

Merged
merged 29 commits into from
Aug 1, 2022
Merged

Doc workflow #1

merged 29 commits into from
Aug 1, 2022

Conversation

therzka
Copy link
Owner

@therzka therzka commented Apr 26, 2022

This work is part of the epic that aims to document Amplify's API using the OpenAPI spec: OpenSourceFellows#125

other related issues:
OpenSourceFellows#131

This PR:

  • Starts documenting Amplify's existing endpoints using the OpenAPI schema (in swagger.yaml in the root directory)
  • Adds a script to locally bundle and lint the openAPI multi-file schema using Redocly-CLI
  • Adds a GitHub workflow to lint schema and comment on the PR if there are changes to openapi.yml or any file in docs/bundled_api_docs
  • Adds a GitHub workflow that:
    • uploads the openapi.yaml artifact
    • downloads the openapi.yaml artifact to be used in the next steps
    • generates the Swagger UI files from the OpenAPI spec
    • [not working yet] puts files onto the gh-pages branch and deploys that branch to GitHub Pages

To see how the API docs look so far (as of 04/26/2022), see https://therzka.github.io/amplify/

TODO:

@github-pages github-pages bot temporarily deployed to github-pages April 26, 2022 22:51 Inactive
@github-pages github-pages bot temporarily deployed to github-pages April 26, 2022 22:52 Inactive
@github-pages github-pages bot temporarily deployed to github-pages April 26, 2022 22:57 Inactive
@github-pages github-pages bot temporarily deployed to github-pages April 26, 2022 23:04 Inactive
@github-pages github-pages bot temporarily deployed to github-pages April 26, 2022 23:12 Inactive
@github-actions
Copy link

Looks like you've updated the API spec! Make sure to check the output of the Lint Open API Spec`` action and make sure you've run script/lint-and-bundle-openapi-schema.sh` and have committed any resulting changes."

@github-actions
Copy link

Looks like you've updated the OpenAPI spec! Make sure to check the output of the Lint Open API Spec`` action and make sure you've run script/lint-and-bundle-openapi-schema.sh` and have committed any resulting changes.

@github-actions
Copy link

Looks like you've updated the OpenAPI spec! Make sure to:

  • check the output of the Lint Open API Spec action
  • run script/lint-and-bundle-openapi-schema.sh and commit any resulting changes.

@therzka therzka merged commit b803205 into main Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant