Skip to content

Commit 303f3fe

Browse files
committed
chore: streamline Python dependency management and plugin verification in workflows
1 parent 1456cda commit 303f3fe

3 files changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,10 @@ jobs:
5050
- name: Install Python dependencies via Task
5151
run: task setup
5252

53-
- name: Verify and reinstall plugins
53+
- name: Verify critical plugins
5454
run: |
55-
pip install --force-reinstall mkdocs-minify-plugin
56-
pip install --force-reinstall mkdocs-mermaid2-plugin
57-
pip install --force-reinstall mkdocs-git-revision-date-localized-plugin
5855
python -c "import mkdocs_minify_plugin; print('✅ mkdocs-minify-plugin installed')"
59-
echo "✅ All MkDocs plugins verified and reinstalled"
60-
61-
- name: Verify plugin installation
62-
run: |
63-
python -c "import mkdocs_minify_plugin; print('✅ mkdocs-minify-plugin installed')"
64-
python -c "import mermaid; print('✅ mkdocs-mermaid2-plugin installed')"
65-
python -c "import mkdocs_git_revision_date_localized_plugin; print('✅ git-revision-date-localized-plugin installed')"
66-
echo "All MkDocs plugins verified"
56+
echo "✅ All MkDocs plugins verified"
6757
6858
- name: Setup Node.js (for Lighthouse)
6959
uses: actions/setup-node@v4

Taskfile.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ tasks:
1717
desc: Set up the development environment
1818
cmds:
1919
- pip install --upgrade pip
20-
- pip install mkdocs-material>=9.0.0
21-
- pip install mkdocs-git-revision-date-localized-plugin
22-
- pip install mkdocs-multirepo-plugin
23-
- pip install mkdocs-mermaid2-plugin
24-
- pip install mkdocs-minify-plugin
25-
- pip install pymdown-extensions
26-
- echo "✅ Python dependencies installed"
20+
- pip install -r requirements.txt
21+
- echo "✅ Python dependencies installed from requirements.txt"
2722
- echo "Note - For linting install markdownlint-cli globally"
2823
- python -c "import mkdocs_minify_plugin; print('✅ Minify plugin verified')" || echo "⚠️ Minify plugin not found"
2924
- echo "Setup complete!"

requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Python dependencies for Codebase Interface landing page
2+
# Install with: pip install -r requirements.txt
3+
4+
mkdocs-material>=9.0.0
5+
mkdocs-git-revision-date-localized-plugin
6+
mkdocs-multirepo-plugin
7+
mkdocs-mermaid2-plugin
8+
mkdocs-minify-plugin
9+
pymdown-extensions

0 commit comments

Comments
 (0)