|
1 | | - |
| 1 | + |
2 | 2 |
|
3 | 3 | --- |
4 | 4 |
|
@@ -40,121 +40,9 @@ copier copy --trust /path/to/copier-astral my-project |
40 | 40 |
|
41 | 41 | > **Note:** The `--trust` flag is required because this template uses custom Jinja2 extensions for features like auto-detecting git user info and generating slugified package names. These extensions are safe to use but Copier warns about them by default. |
42 | 42 |
|
43 | | -## Getting Started with Your Generated Project |
| 43 | +## Documentation |
44 | 44 |
|
45 | | -### 1. Initialize the repository and install dependencies |
46 | | - |
47 | | -```bash |
48 | | -cd my-project |
49 | | -git init -b main |
50 | | -make install |
51 | | -``` |
52 | | - |
53 | | -### 2. Run the pre-commit hooks |
54 | | - |
55 | | -If you enabled pre-commit, install the hooks and run them to resolve any initial formatting issues: |
56 | | - |
57 | | -```bash |
58 | | -pre-commit install |
59 | | -uv run pre-commit run -a |
60 | | -``` |
61 | | - |
62 | | -### 3. Verify everything works |
63 | | - |
64 | | -```bash |
65 | | -make verify |
66 | | -make test |
67 | | -``` |
68 | | - |
69 | | -### 4. Create your GitHub repository and push |
70 | | - |
71 | | -```bash |
72 | | -git add . |
73 | | -git commit -m "init: generate project from copier-astral" |
74 | | -git remote add origin git@github.com:YOUR_USERNAME/my-project.git |
75 | | -git push -u origin main |
76 | | -``` |
77 | | - |
78 | | -> **Important:** If you enabled docs during setup, you must manually enable GitHub Pages in your repository. Go to **Settings → Pages → Source** and select **GitHub Actions**. Without this, the docs workflow will fail. |
79 | | -
|
80 | | -### 5. Set up external services (optional) |
81 | | - |
82 | | -- **Codecov**: Add your `CODECOV_TOKEN` as a [repository secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) |
83 | | -- **PyPI**: Add your `PYPI_TOKEN` as a repository secret. See the [PyPI docs](https://pypi.org/help/#apitoken) for creating a token |
84 | | - |
85 | | -## Development Commands |
86 | | - |
87 | | -All commands are available via `make`: |
88 | | - |
89 | | -| Command | Description | |
90 | | -|---------|-------------| |
91 | | -| `make install` | Install all dependencies | |
92 | | -| `make verify` | Run all checks (lint, format, type-check) | |
93 | | -| `make fix` | Auto-fix lint and format issues | |
94 | | -| `make test` | Run tests | |
95 | | -| `make test-cov` | Run tests with coverage | |
96 | | -| `make test-matrix` | Run tests across all Python versions | |
97 | | -| `make test-matrix-cov` | Run tests with coverage across all versions | |
98 | | -| `make docs` | Build documentation | |
99 | | -| `make docs-serve` | Serve documentation locally | |
100 | | - |
101 | | -## Releasing a New Version |
102 | | - |
103 | | -1. Create a new version tag: |
104 | | - |
105 | | - ```bash |
106 | | - git tag v0.1.0 |
107 | | - git push --tags |
108 | | - ``` |
109 | | - |
110 | | -2. The `release.yml` workflow will automatically: |
111 | | - - Build the distribution |
112 | | - - Publish to PyPI (if configured) |
113 | | - - Create a GitHub release with changelog |
114 | | - |
115 | | -## Generated Project Structure |
116 | | - |
117 | | -``` |
118 | | -my-project/ |
119 | | -├── src/ |
120 | | -│ └── my_project/ |
121 | | -│ ├── __init__.py |
122 | | -│ ├── py.typed |
123 | | -│ └── cli.py # If CLI enabled |
124 | | -├── tests/ |
125 | | -│ ├── __init__.py |
126 | | -│ ├── conftest.py |
127 | | -│ └── test_my_project.py |
128 | | -├── docs/ # If docs enabled |
129 | | -│ ├── index.md |
130 | | -│ ├── api.md |
131 | | -│ └── contributing.md |
132 | | -├── .github/ |
133 | | -│ └── workflows/ # If GitHub Actions enabled |
134 | | -│ ├── ci.yml |
135 | | -│ ├── release.yml |
136 | | -│ └── docs.yml |
137 | | -├── Makefile # Development commands |
138 | | -├── pyproject.toml # Single source of truth |
139 | | -├── mkdocs.yml # If docs enabled |
140 | | -├── cliff.toml # Changelog config |
141 | | -├── .pre-commit-config.yaml # If pre-commit enabled |
142 | | -├── Dockerfile # If Docker enabled |
143 | | -├── .dockerignore # If Docker enabled |
144 | | -├── README.md |
145 | | -├── CHANGELOG.md |
146 | | -├── LICENSE |
147 | | -└── .gitignore |
148 | | -``` |
149 | | - |
150 | | -## Updating Existing Projects |
151 | | - |
152 | | -Copier supports updating projects to newer template versions: |
153 | | - |
154 | | -```bash |
155 | | -cd my-project |
156 | | -copier update --trust |
157 | | -``` |
| 45 | +For the full user guide, template options, and contributing instructions, see the [documentation site](https://YOUR_USERNAME.github.io/copier-astral/). |
158 | 46 |
|
159 | 47 | ## License |
160 | 48 |
|
|
0 commit comments