Skip to content

Commit ab20a0e

Browse files
committed
feat: add one-click copy support for installation commands
1 parent 45ae372 commit ab20a0e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ python-mini-project/
8888

8989
#### 1. Clone the Repository
9090

91+
<div align="right">
92+
93+
<button class="copy-btn" data-copy="clone-command">📋 Copy</button>
94+
95+
</div>
96+
9197
```bash
9298
git clone https://github.com/steam-bell-92/python-mini-project.git
9399
cd python-mini-project
@@ -97,6 +103,12 @@ cd python-mini-project
97103

98104
For Linux/macOS:
99105

106+
<div align="right">
107+
108+
<button class="copy-btn" data-copy="linux-venv">📋 Copy</button>
109+
110+
</div>
111+
100112
```bash
101113
python3 -m venv venv
102114
source venv/bin/activate
@@ -118,6 +130,12 @@ venv\Scripts\Activate.ps1
118130

119131
#### 3. Install Dependencies
120132

133+
<div align="right">
134+
135+
<button class="copy-btn" data-copy="install-command">📋 Copy</button>
136+
137+
</div>
138+
121139
```bash
122140
pip install --upgrade pip
123141
pip install -r requirements.txt
@@ -161,6 +179,12 @@ The web app requires Node.js and npm:
161179

162180
#### Steps to Run Web App
163181

182+
<div align="right">
183+
184+
<button class="copy-btn" data-copy="web-command">📋 Copy</button>
185+
186+
</div>
187+
164188
```bash
165189
cd web-app
166190
npm install
@@ -173,6 +197,12 @@ The app will open at `http://localhost:3000` (or your configured port).
173197

174198
To verify that the projects work correctly, run the test suite:
175199

200+
<div align="right">
201+
202+
<button class="copy-btn" data-copy="pytest-command">📋 Copy</button>
203+
204+
</div>
205+
176206
```bash
177207
pytest tests/ -v
178208
```

0 commit comments

Comments
 (0)