Skip to content

Commit 0213a61

Browse files
committed
Initial commit
0 parents  commit 0213a61

22 files changed

+3266
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: Bug Report
3+
description: Create a Report to Help us Improve
4+
labels:
5+
- bug
6+
body:
7+
- id: describe
8+
type: textarea
9+
attributes:
10+
label: Describe the Bug
11+
description: A clear and concise description of what the bug is.
12+
validations:
13+
required: true
14+
- id: reproduce
15+
type: textarea
16+
attributes:
17+
label: To Reproduce
18+
description: >-
19+
A minimal working example of code to reproduce the unexpected behaviour,
20+
this will render as `Python` code so no need for backticks.
21+
value: |-
22+
import docs_deploy_test
23+
24+
...
25+
render: Python
26+
validations:
27+
required: true
28+
- id: expected
29+
type: textarea
30+
attributes:
31+
label: Expected Behaviour
32+
description: >-
33+
A clear and concise description of what you expected to happen.
34+
validations:
35+
required: true
36+
- id: actual
37+
type: textarea
38+
attributes:
39+
label: Actual Behaviour
40+
description: >-
41+
Be a specific and detailed as you can. Paste any output or stack traces
42+
of errors you receive.
43+
validations:
44+
required: true
45+
- id: version
46+
type: input
47+
attributes:
48+
label: Version In Use
49+
description: |-
50+
Can be found by
51+
```sh
52+
python -c "import docs_deploy_test; print(docs_deploy_test.__version__)"
53+
```
54+
validations:
55+
required: true
56+
- id: additional
57+
type: textarea
58+
attributes:
59+
label: Additional Context
60+
value: |-
61+
- Python version:
62+
- Operating system:
63+
render: Markdown

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
blank_issues_enabled: false
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Documentation
3+
description: How Can We Improve the Documentation
4+
labels:
5+
- documentation
6+
body:
7+
- id: section
8+
type: textarea
9+
attributes:
10+
label: Which Section of the Documentation Needs Improving?
11+
description: Please provide a link (if it is a specific page).
12+
validations:
13+
required: true
14+
- id: problem
15+
type: textarea
16+
attributes:
17+
label: What Can be Improved About This Section
18+
description: Is it incomplete, incorrect or difficult to understand?
19+
validations:
20+
required: true
21+
- id: suggestions
22+
type: textarea
23+
attributes:
24+
label: How to Improve This Section
25+
description: >-
26+
Do you have any specific suggestions we could take to improve the
27+
documentation?
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Feature Request
3+
description: Suggest a Way to Improve This Project
4+
labels:
5+
- enhancement
6+
body:
7+
- id: problem
8+
type: textarea
9+
attributes:
10+
label: Is Your Feature Request Related to a Problem? Please Describe
11+
description: A clear and concise description of what the problem is.
12+
placeholder: I'm always frustrated when [...]
13+
validations:
14+
required: true
15+
- id: solution
16+
type: textarea
17+
attributes:
18+
label: Describe the Solution You'd Like
19+
description: A clear and concise description of what you want to happen.
20+
validations:
21+
required: true
22+
- id: alternatives
23+
type: textarea
24+
attributes:
25+
label: Describe Alternatives You've Considered
26+
description: >-
27+
A clear and concise description of any alternative solutions or features
28+
you've considered.
29+
- id: additional
30+
type: textarea
31+
attributes:
32+
label: Additional Context
33+
description: >-
34+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Question
3+
description: General Questions About Using Docs deploy test
4+
labels:
5+
- question
6+
body:
7+
- id: topic
8+
type: dropdown
9+
attributes:
10+
label: What is the Topic of Your Question
11+
description: Please indicate the topic in the title of your question.
12+
options:
13+
- Documentation
14+
- Installation
15+
- Usage
16+
- Other
17+
validations:
18+
required: true
19+
- id: question
20+
type: textarea
21+
attributes:
22+
label: Add Your Question Below
23+
validations:
24+
required: true

.github/workflows/docs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15+
16+
- name: Cache tox
17+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
18+
with:
19+
path: .tox
20+
key: tox-${{ hashFiles('pyproject.toml') }}
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
24+
with:
25+
python-version: "3.x"
26+
cache: "pip"
27+
cache-dependency-path: "pyproject.toml"
28+
29+
- name: Install tox
30+
run: python -m pip install tox
31+
32+
- name: Build HTML documentation with tox
33+
run: tox -e docs
34+
35+
- name: Upload built docs as artifact
36+
id: deployment
37+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
38+
with:
39+
path: site
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
permissions:
46+
pages: write
47+
id-token: write
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/linting.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
linting:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15+
16+
- name: Cache pre-commit
17+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
18+
with:
19+
path: ~/.cache/pre-commit
20+
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
21+
22+
- name: Set up python
23+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
24+
with:
25+
python-version: "3.x"
26+
cache: pip
27+
cache-dependency-path: pyproject.toml
28+
29+
- name: Install dependencies
30+
run: python -m pip install pre-commit
31+
32+
- name: Run pre-commit
33+
run: pre-commit run --all-files --color always --verbose

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
paths-ignore:
9+
- "**.md"
10+
11+
jobs:
12+
tests:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version:
17+
- "3.11"
18+
- "3.12"
19+
- "3.13"
20+
21+
steps:
22+
- name: Checkout source
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24+
25+
- name: Cache tox
26+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
27+
with:
28+
path: .tox
29+
key: tox-${{hashFiles('pyproject.toml') }}
30+
31+
- name: Set up python
32+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
cache: pip
36+
cache-dependency-path: pyproject.toml
37+
38+
- name: Install dependencies
39+
run: python -m pip install tox tox-gh
40+
41+
- name: Test with tox
42+
run: tox run

0 commit comments

Comments
 (0)