Skip to content

Commit ede7c67

Browse files
authored
Merge pull request #368 from yozachar/workshop
chore: documentation maintenance
2 parents faed951 + 54917a0 commit ede7c67

File tree

5 files changed

+43
-8
lines changed

5 files changed

+43
-8
lines changed

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# How to contribute to `validators`
2+
3+
Hi, to start, you need the following installed on your system.
4+
5+
1. [Git](https://git-scm.com/)
6+
2. [Python](https://www.python.org/) v3.8 or later and
7+
3. [PDM](https://pdm-project.org/en/stable/) for easy dependency management.
8+
4. (Optional/Recommended) NodeJS for type checking.
9+
5. (Optional/Recommended) [mise](https://github.com/jdx/mise) to manage multiple versions of Python, NodeJS etc.
10+
11+
12+
First [fork](https://github.com/python-validators/validators/fork) this repository. Then clone it to your system. Then install development dependencies.
13+
14+
15+
```sh
16+
# cloning repository
17+
$ git clone "https://github.com/YOUR_USERNAME/validators.git"
18+
# changing directory
19+
$ cd validators
20+
# installing development dependencies
21+
$ pdm install
22+
```
23+
24+
Activate the virtual environment and run `tox` to verify test cases.
25+
26+
```sh
27+
# activate virtual environment
28+
$ . ./.venv/bin/activate # replace `/bin/` with `/Scripts/` if you're on Windows.
29+
# run tox for linting, type checking, formatting etc.
30+
$ tox
31+
```
32+
33+
Create a git branch. You can now make changes to the source code. If needed, test your change by running `pytest`. Commit, push and create a pull request.
34+
35+
If you're in doubt feel free to start a discussion [here](https://github.com/python-validators/validators/discussions). Thanks for taking interest in this library.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ True
1818

1919
## Resources
2020

21-
<!-- Temporary documentation URL : https://yozachar.github.io/pyvalidators/ -->
21+
<!-- Backup documentation URL : https://yozachar.github.io/pyvalidators/ -->
2222
<!-- Original documentation URL : https://python-validators.github.io/validators/ -->
2323

24-
- [Documentation](https://python-validators.github.io/validators/)
24+
- [Documentation](https://yozachar.github.io/pyvalidators)
2525
- [Bugtracker](https://github.com/python-validators/validators/issues)
2626
- [Security](https://github.com/python-validators/validators/blob/master/SECURITY.md)
2727
- [Code](https://github.com/python-validators/validators/)

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ True
1818

1919
## Resources
2020

21-
<!-- Temporary documentation URL : https://yozachar.github.io/pyvalidators/ -->
21+
<!-- Backup documentation URL : https://yozachar.github.io/pyvalidators/ -->
2222
<!-- Original documentation URL : https://python-validators.github.io/validators/ -->
2323

24-
- [Documentation](https://python-validators.github.io/validators/)
24+
- [Documentation](https://yozachar.github.io/pyvalidators)
2525
- [Bugtracker](https://github.com/python-validators/validators/issues)
2626
- [Security](https://github.com/python-validators/validators/blob/master/SECURITY.md)
2727
- [Code](https://github.com/python-validators/validators/)

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Resources
2424

2525
.. raw:: html
2626

27-
<!-- Temporary documentation URL : https://yozachar.github.io/pyvalidators/ -->
27+
<!-- Backup documentation URL : https://yozachar.github.io/pyvalidators/ -->
2828

2929
.. raw:: html
3030

3131
<!-- Original documentation URL : https://python-validators.github.io/validators/ -->
3232

33-
- `Documentation <https://python-validators.github.io/validators/>`__
33+
- `Documentation <https://yozachar.github.io/pyvalidators>`__
3434
- `Bugtracker <https://github.com/python-validators/validators/issues>`__
3535
- `Security <https://github.com/python-validators/validators/blob/master/SECURITY.md>`__
3636
- `Code <https://github.com/python-validators/validators/>`__

mkdocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
site_name: "validators"
22
site_description: "Automatic documentation from sources, for MkDocs."
3-
site_url: "https://python-validators.github.io/validators/"
4-
repo_url: "https://github.com/python-validators/validators"
3+
site_url: "https://yozachar.github.io/pyvalidators/"
4+
repo_url: "https://github.com/python-validators/validators/"
55
edit_uri: "edit/master/docs/"
66
repo_name: "validators/validators"
77
site_dir: "site"

0 commit comments

Comments
 (0)