Skip to content

Commit a1fe888

Browse files
authored
Refactor: use uv (#32)
* Refactor code structure for improved readability and maintainability * fix tags
1 parent 358ad6c commit a1fe888

File tree

10 files changed

+911
-153
lines changed

10 files changed

+911
-153
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,26 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: ✅ Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0 # needed for git committers
2323

2424
- name: 🐍 Install Python
25-
uses: actions/setup-python@v4
26-
with:
27-
python-version: "3.x"
25+
uses: astral-sh/setup-uv@v6
2826

2927
- name: 🔗 Check Links
3028
run: |
3129
npm install markdown-link-check@"<3.11.1"
3230
npx markdown-link-check docs/**/*.md --progress -q
3331
3432
- name: 📚 Build Docs
35-
run: |
36-
pip install -U pip
37-
pip install -r requirements.txt
38-
mkdocs build --strict
33+
run: uv run mkdocs build --strict
3934
env:
4035
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }}
4136
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
4237

4338
- name: ⬆️ Upload Pages Artifact
44-
uses: actions/upload-pages-artifact@v3
39+
uses: actions/upload-pages-artifact@v4
4540
with:
4641
path: "site/"
4742

@@ -55,4 +50,4 @@ jobs:
5550
steps:
5651
- name: 🚀 Deploy to GitHub Pages
5752
id: deployment
58-
uses: actions/deploy-pages@v1
53+
uses: actions/deploy-pages@v4

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ repos:
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
7+
- repo: https://github.com/rhysd/actionlint
8+
rev: v1.7.7
9+
hooks:
10+
- id: actionlint
711
- repo: https://github.com/igorshubovych/markdownlint-cli
812
rev: v0.43.0
913
hooks:

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
To run the dev site locally
1111

1212
```bash
13-
pip install -r requirements.txt
14-
mkdocs serve
13+
uv run mkdocs serve
1514
```

docs/.overrides/partials/nav-item.html

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

docs/tags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Tags
22

3-
[TAGS]
3+
<!-- material/tags -->

mkdocs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,16 @@ markdown_extensions:
121121
line_spans: __span
122122
pygments_lang_class: true
123123
- pymdownx.emoji:
124-
emoji_index: !!python/name:materialx.emoji.twemoji
125-
emoji_generator: !!python/name:materialx.emoji.to_svg
124+
emoji_index: !!python/name:material.extensions.emoji.twemoji
125+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
126126
- pymdownx.tabbed:
127127
alternate_style: true
128128
- toc:
129129
permalink: "#"
130130

131131
plugins:
132132
- search
133-
- tags:
134-
tags_file: tags.md
133+
- tags
135134
- git-revision-date-localized:
136135
enable_creation_date: true
137136
type: timeago

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[project]
2+
name = "pydev-guide-github-io"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"mkdocs-git-committers-plugin>=0.2.3",
9+
"mkdocs-git-revision-date-localized-plugin>=1.4.7",
10+
"mkdocs-material>=9.6.20",
11+
"mkdocs-minify-plugin>=0.8.0",
12+
"mkdocs-spellcheck[all]>=1.1.2",
13+
]
14+
15+
[dependency-groups]
16+
dev = ["pre-commit-uv>=4.1.5"]

requirements.txt

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

0 commit comments

Comments
 (0)