Skip to content

Commit 8b46941

Browse files
authored
Merge pull request #246 from joe733/workshop
maint: moving docs from `.rst` to `.md`
2 parents 084d085 + 379bb2d commit 8b46941

File tree

11 files changed

+294
-1189
lines changed

11 files changed

+294
-1189
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: PyCodeQualityAnalysis
22

33
on:
44
workflow_dispatch:
5-
pull_request:
6-
branches: [master]
75
push:
86
branches: [master]
7+
pull_request:
8+
branches: [master]
99

1010
jobs:
1111
DevOps:
@@ -20,7 +20,7 @@ jobs:
2020
#----------------------------------------------
2121
- name: Checkout repository
2222
uses: actions/checkout@v3
23-
- name: Set up Python ${{ matrix.python-version }}
23+
- name: Setup Python v${{ matrix.python-version }}
2424
# id: setup-python
2525
uses: actions/setup-python@v4
2626
with:
@@ -46,13 +46,13 @@ jobs:
4646
#----------------------------------------------
4747
# install dependencies if cache does not exist
4848
#----------------------------------------------
49-
- name: Install dependencies
49+
- name: Install test dependencies
5050
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5151
run: poetry install --no-interaction --no-root --no-ansi --only tests
5252
#----------------------------------------------
5353
# run test suite
5454
#----------------------------------------------
55-
- name: Test
55+
- name: Run tests
5656
run: |
5757
source .venv/bin/activate
5858
pytest tests/

.github/workflows/pages.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Documentation
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["master"]
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
jobs:
20+
# Single deploy job since we're just deploying
21+
deploy:
22+
environment:
23+
name: github-pages
24+
url: ${{ steps.deployment.outputs.page_url }}
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
- name: Install Poetry
30+
uses: snok/install-poetry@v1
31+
with:
32+
version: 1.3.2
33+
virtualenvs-create: true
34+
virtualenvs-in-project: true
35+
- name: Install docs dependencies
36+
run: poetry install --no-interaction --no-root --no-ansi --only docs
37+
- name: Build documentation
38+
run: |
39+
source .venv/bin/activate
40+
mkdocs build
41+
- name: Setup Pages
42+
uses: actions/configure-pages@v3
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v1
45+
with:
46+
path: "./site/"
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ venv.bak/
136136
.ropeproject
137137

138138
# mkdocs documentation
139-
/site
139+
site/
140140

141141
# mypy
142142
.mypy_cache/

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# validators - Python Data Validation for Humans™
22

3-
[![Build Status][bs-badge]][bs-link] [![Version Status][vs-badge]][vs-link] [![Downloads][dw-badge]][dw-link]
3+
[![Tests][tests-badge]][tests-link] [![Bandit][bandit-badge]][bandit-link] [![Version Status][vs-badge]][vs-link] [![Downloads][dw-badge]][dw-link]
44

55
Python has all kinds of data validation tools, but every one of them seems to
66
require defining a schema or form. I wanted to create a simple validation
77
library where validating a simple value does not require defining a form or a
88
schema.
99

10-
```py
10+
```python
1111
>>> import validators
1212

1313
>>> validators.email('[email protected]')
@@ -16,12 +16,17 @@ True
1616

1717
## Resources
1818

19-
- [Documentation](https://validators.readthedocs.io/)
20-
- [Issue Tracker](http://github.com/kvesteri/validators/issues)
21-
- [Code](http://github.com/kvesteri/validators/)
19+
- [Documentation](https://python-validators.github.io/)
20+
- [Issue Tracker](https://github.com/python-validators/validators/issues)
21+
- [Security](https://github.com/python-validators/validators/blob/master/SECURITY.md)
22+
- [Code](https://github.com/python-validators/validators/)
2223

23-
[bs-badge]: https://github.com/python-validators/validators/actions/workflows/main.yml/badge.svg
24-
[bs-link]: https://github.com/python-validators/validators/actions/workflows/main.yml
24+
[//]: #(Links)
25+
26+
[bandit-badge]: https://github.com/python-validators/validators/actions/workflows/bandit.yml/badge.svg
27+
[bandit-link]: https://github.com/python-validators/validators/actions/workflows/bandit.yml
28+
[tests-badge]: https://github.com/python-validators/validators/actions/workflows/main.yml/badge.svg
29+
[tests-link]: https://github.com/python-validators/validators/actions/workflows/main.yml
2530
[vs-badge]: https://img.shields.io/pypi/v/validators.svg
2631
[vs-link]: https://pypi.python.org/pypi/validators/
2732
[dw-badge]: https://img.shields.io/pypi/dm/validators.svg

README.rst

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/Makefile

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)