Skip to content

Commit

Permalink
Merge pull request #8 from NodeJSmith/feature/docs_cleanup
Browse files Browse the repository at this point in the history
Clean up docs
  • Loading branch information
NodeJSmith authored Jun 15, 2024
2 parents 110d78a + 0aa81f2 commit 314c683
Show file tree
Hide file tree
Showing 53 changed files with 597 additions and 198 deletions.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* otf version:
* Python version:
* Operating System:

### Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

### What I Did

```
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
```
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ updates:
groups:
python-packages:
patterns:
- "*"
- "*"
161 changes: 161 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
name: dev build CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events
push:
branches:
- "*"
pull_request:
branches:
- "*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# contains 3 jobs: test, publish_dev_build and notification
jobs:
test:
# The type of runner that the job will run on
strategy:
matrix:
python-versions: ["3.10", "3.11"]
# github action doesn't goes well with windows due to docker support
# github action doesn't goes well with macos due to `no docker command`
#os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
# map step outputs to job outputs so they can be share among jobs
outputs:
package_version: ${{ steps.variables_step.outputs.package_version }}
package_name: ${{ steps.variables_step.outputs.package_name }}
repo_name: ${{ steps.variables_step.outputs.repo_name }}
repo_owner: ${{ steps.variables_step.outputs.repo_owner }}
build_number: ${{ steps.variables_step.outputs.build_number }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions poetry
# declare package_version, repo_owner, repo_name, package_name so you may use it in web hooks.
- name: Declare variables for convenient use
id: variables_step
run: |
echo "repo_owner=${GITHUB_REPOSITORY%/*}" >> $GITHUB_OUTPUT
echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
echo "package_name=`poetry version | awk '{print $1}'`" >> $GITHUB_OUTPUT
echo "package_version=`poetry version --short`" >> $GITHUB_OUTPUT
shell: bash

- name: test with tox
run: tox

# - uses: codecov/codecov-action@v3
# with:
# fail_ci_if_error: true

publish_dev_build:
# if test failed, we should not publish
needs: test
# you may need to change os below
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry tox tox-gh-actions
- name: Build wheels and source tarball
run: |
poetry version $(poetry version --short)-dev.$GITHUB_RUN_NUMBER
poetry lock
poetry build
# - name: publish to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_API_TOKEN}}
# repository_url: https://test.pypi.org/legacy/
# skip_existing: true

# notification:
# needs: [test,publish_dev_build]
# if: always()
# runs-on: ubuntu-latest
# steps:
# - uses: martialonline/workflow-status@v2
# id: check

# - name: build success notification via email
# if: ${{ steps.check.outputs.status == 'success' }}
# uses: dawidd6/action-send-mail@v3
# with:
# server_address: ${{ secrets.BUILD_NOTIFY_MAIL_SERVER }}
# server_port: ${{ secrets.BUILD_NOTIFY_MAIL_PORT }}
# username: ${{ secrets.BUILD_NOTIFY_MAIL_FROM }}
# password: ${{ secrets.BUILD_NOTIFY_MAIL_PASSWORD }}
# from: build-bot
# to: ${{ secrets.BUILD_NOTIFY_MAIL_RCPT }}
# subject: ${{ needs.test.outputs.package_name }}.${{ needs.test.outputs.package_version}}.dev.${{ github.run_number }} build successfully
# convert_markdown: true
# html_body: |
# ## Build Success
# ${{ needs.test.outputs.package_name }}.${{ needs.test.outputs.package_version }}.dev.${{ github.run_number }} is built and published to test pypi

# ## Change Details
# ${{ github.event.head_commit.message }}

# For more information, please check change history at https://${{ needs.test.outputs.repo_owner }}.github.io/${{ needs.test.outputs.repo_name }}/${{ needs.test.outputs.package_version }}.dev/history

# ## Package Download
# The pacakge is available at: https://test.pypi.org/project/${{ needs.test.outputs.package_name }}/

# - name: build failure notification via email
# if: ${{ steps.check.outputs.status == 'failure' }}
# uses: dawidd6/action-send-mail@v3
# with:
# server_address: ${{ secrets.BUILD_NOTIFY_MAIL_SERVER }}
# server_port: ${{ secrets.BUILD_NOTIFY_MAIL_PORT }}
# username: ${{ secrets.BUILD_NOTIFY_MAIL_FROM }}
# password: ${{ secrets.BUILD_NOTIFY_MAIL_PASSWORD }}
# from: build-bot
# to: ${{ secrets.BUILD_NOTIFY_MAIL_RCPT }}
# subject: ${{ needs.test.outputs.package_name }}.${{ needs.test.outputs.package_version}}.dev.${{ github.run_number }} build failure
# convert_markdown: true
# html_body: |
# ## Change Details
# ${{ github.event.head_commit.message }}

# ## View Log
# https://github.com/${{ needs.test.outputs.repo_owner }}/${{ needs.test.outputs.repo_name }}/actions

# - name: Dingtalk Robot Notify
# if: always()
# uses: leafney/[email protected]
# env:
# DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}
# DINGTALK_SECRET: ${{ secrets.DINGTALK_SECRET }}
# with:
# msgtype: markdown
# title: CI Notification | Success
# text: |
# ### Build Success
# ${{ needs.test.outputs.package_version }}.dev.${{ github.run_number }}published to TEST pypi
# ### Change History
# Please check change history at https://${{ needs.test.outputs.repo_owner }}.github.io/${{ needs.test.outputs.repo_name }}/${{ needs.test.outputs.package_version }}.dev/history
# ### Package Download
# The pacakge is availabled at: https://test.pypi.org/project/${{ needs.test.outputs.repo_name }}/
163 changes: 163 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# # Publish package on release branch if it's tagged with 'v*'

# name: build & release

# # Controls when the action will run.
# on:
# # Triggers the workflow on push or pull request events but only for the master branch
# push:
# branch: [main, master]
# tags:
# - 'v*'

# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:

# # A workflow run is made up of one or more jobs that can run sequentially or in parallel
# jobs:
# release:
# runs-on: ubuntu-latest

# strategy:
# matrix:
# python-versions: ['3.9']

# # map step outputs to job outputs so they can be share among jobs
# outputs:
# package_version: ${{ steps.variables_step.outputs.package_version }}
# package_name: ${{ steps.variables_step.outputs.package_name }}
# repo_name: ${{ steps.variables_step.outputs.repo_name }}
# repo_owner: ${{ steps.variables_step.outputs.repo_owner }}

# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v4

# - name: build change log
# id: build_changelog
# uses: mikepenz/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-versions }}

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox-gh-actions poetry

# # declare package_version, repo_owner, repo_name, package_name so you may use it in web hooks.
# - name: Declare variables for convenient use
# id: variables_step
# run: |
# echo "repo_owner=${GITHUB_REPOSITORY%/*}" >> $GITHUB_OUTPUT
# echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
# echo "package_name=`poetry version | awk '{print $1}'`" >> $GITHUB_OUTPUT
# echo "package_version=`poetry version --short`" >> $GITHUB_OUTPUT
# shell: bash

# - name: publish documentation
# run: |
# poetry install -E doc
# mkdocs build
# git config --global user.name Docs deploy
# git config --global user.email [email protected]
# mike deploy -p -f --ignore `poetry version --short` latest
# mike set-default -p `poetry version --short`

# - name: Build wheels and source tarball
# run: |
# poetry lock
# poetry build

# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref_name }}
# release_name: Release ${{ github.ref_name }}
# body: ${{ steps.build_changelog.outputs.changelog }}
# draft: false
# prerelease: false

# - name: publish to PYPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# skip_existing: true

# notification:
# needs: release
# if: always()
# runs-on: ubuntu-latest
# steps:
# - uses: martialonline/workflow-status@v2
# id: check

# - name: build success notification via email
# if: ${{ steps.check.outputs.status == 'success' }}
# uses: dawidd6/action-send-mail@v3
# with:
# server_address: ${{ secrets.BUILD_NOTIFY_MAIL_SERVER }}
# server_port: ${{ secrets.BUILD_NOTIFY_MAIL_PORT }}
# username: ${{ secrets.BUILD_NOTIFY_MAIL_FROM }}
# password: ${{ secrets.BUILD_NOTIFY_MAIL_PASSWORD }}
# from: build-bot
# to: ${{ secrets.BUILD_NOTIFY_MAIL_RCPT }}
# subject: ${{ needs.release.outputs.package_name }}.${{ needs.release.outputs.package_version}} build successfully
# convert_markdown: true
# html_body: |
# ## Build Success
# ${{ needs.release.outputs.package_name }}.${{ needs.release.outputs.package_version }} has been published to PYPI

# ## Change Details
# ${{ github.event.head_commit.message }}

# For more information, please check change history at https://${{ needs.release.outputs.repo_owner }}.github.io/${{ needs.release.outputs.repo_name }}/${{ needs.release.outputs.package_version }}/history

# ## Package Download
# The pacakge is available at: https://pypi.org/project/${{ needs.release.outputs.package_name }}/

# - name: build failure notification via email
# if: ${{ steps.check.outputs.status == 'failure' }}
# uses: dawidd6/action-send-mail@v3
# with:
# server_address: ${{ secrets.BUILD_NOTIFY_MAIL_SERVER }}
# server_port: ${{ secrets.BUILD_NOTIFY_MAIL_PORT }}
# username: ${{ secrets.BUILD_NOTIFY_MAIL_FROM }}
# password: ${{ secrets.BUILD_NOTIFY_MAIL_PASSWORD }}
# from: build-bot
# to: ${{ secrets.BUILD_NOTIFY_MAIL_RCPT }}
# subject: ${{ needs.release.outputs.package_name }}.${{ needs.release.outputs.package_version}} build failure
# convert_markdown: true
# html_body: |
# ## Change Details
# ${{ github.event.head_commit.message }}

# ## Status: ${{ steps.check.outputs.status }}

# ## View Log
# https://github.com/${{ needs.release.outputs.repo_owner }}/${{ needs.release.outputs.repo_name }}/actions

# # - name: Dingtalk Robot Notify
# # if: always()
# # uses: leafney/[email protected]
# # env:
# # DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}
# # DINGTALK_SECRET: ${{ secrets.DINGTALK_SECRET }}
# # with:
# # msgtype: markdown
# # title: CI Notification | Success
# # text: |
# # ### ${{ needs.release.outputs.package_name }} Build Success
# # ${{ needs.release.outputs.package_version }} has been published to PYPI
# # ### Change History
# # Please check change history at https://${{ needs.release.outputs.repo_owner }}.github.io/${{ needs.release.outputs.repo_name }}/latest/history
# # ### Package Download
# # Please download the pacakge at: https://pypi.org/project/${{ needs.release.outputs.repo_name }}/
31 changes: 0 additions & 31 deletions docs/reference/SUMMARY.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/api.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/classes_api.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/dna_api.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/member_api.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/models/auth.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/models/base.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/models/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/otf_api/models/responses/bookings.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit 314c683

Please sign in to comment.