Skip to content

Commit 556da0b

Browse files
committed
docs: add changelog and contributing.md
1 parent 7d2a401 commit 556da0b

6 files changed

Lines changed: 88 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "p3g"
8-
version = "1.6.0"
8+
version = "1.7.0"
99
description = "Python Packages Project Generator"
1010
readme = "README.md"
1111
authors = ["Zeeland <zeeland4work@gmail.com>"]

{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/docs/.vitepress/config.mts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default withPwa(
1111
logo: "/logo.png",
1212
nav: [
1313
{ text: "Home", link: "/" },
14-
{ text: "Guide", link: "/guide/" },
14+
{ text: "Guide", link: "/guide/introduction" },
1515
{ text: "API", link: "/api/" },
1616
{
1717
text: "GitHub",
@@ -22,8 +22,8 @@ export default withPwa(
2222
{
2323
text: "Introduction",
2424
items: [
25-
{ text: "Getting Started", link: "/guide/" },
26-
{ text: "Installation", link: "/guide/installation" },
25+
{ text: "Introduction", link: "/guide/introduction" },
26+
{ text: "Quick Start", link: "/guide/quick-start" },
2727
],
2828
},
2929
{
@@ -33,6 +33,13 @@ export default withPwa(
3333
{ text: "Examples", link: "/api/examples" },
3434
],
3535
},
36+
{
37+
text: "Other",
38+
items: [
39+
{ text: "Changelog", link: "/other/changelog" },
40+
{ text: "Contributing", link: "/other/contributing" },
41+
],
42+
},
3643
],
3744
socialLinks: [
3845
{

{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/docs/guide/index.md renamed to {{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/docs/guide/introduction.md

File renamed without changes.

{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/docs/guide/installation.md renamed to {{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/docs/guide/quick-start.md

File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
You can see the changelog in the [releases page](https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}/releases).
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributing to {{ cookiecutter.project_name }}
2+
3+
We welcome contributions to {{ cookiecutter.project_name }}! This document provides guidelines for contributing to the project.
4+
5+
## Getting Started
6+
7+
1. Click [here](https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}/fork) to fork the repository on GitHub.
8+
2. Clone your fork locally:
9+
10+
```bash
11+
git clone https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}.git
12+
cd {{ cookiecutter.project_name }}
13+
```
14+
15+
3. Create a virtual environment and install dependencies:
16+
17+
```bash
18+
conda create -n {{ cookiecutter.project_name }} python==3.10
19+
conda activate {{ cookiecutter.project_name }}
20+
21+
pip install poetry
22+
poetry install
23+
```
24+
25+
## Development Workflow
26+
27+
Here are the steps to contribute to the project and make a pull request on GitHub:
28+
29+
1. Create a new branch for your feature or bugfix:
30+
31+
```bash
32+
git checkout -b feature-or-fix-name
33+
```
34+
35+
2. Make your changes and commit them after testing:
36+
37+
```bash
38+
make test
39+
git commit -m "Your detailed commit message"
40+
```
41+
42+
3. Push your changes to your fork:
43+
44+
```bash
45+
git push origin feature-or-fix-name
46+
```
47+
48+
4. Submit a pull request through the GitHub website.
49+
50+
## Coding Standards
51+
52+
- We use `ruff` for code formatting, run `make format` and `make lint before committing.
53+
- Use pytest for testing, run `make test` before committing.
54+
- Write clear, commented code.
55+
- Include unit tests and related documentation for new features.
56+
57+
## Run Tests
58+
59+
Run the test suite using:
60+
61+
```bash
62+
make test
63+
```
64+
{% if cookiecutter.create_docs == 'yes' %}
65+
66+
## Run Documentation
67+
68+
Run the documentation server locally, you can edit them in `./docs`
69+
70+
```bash
71+
make install-docs
72+
make start-docs
73+
```
74+
{% endif %}

0 commit comments

Comments
 (0)