Skip to content

Commit

Permalink
Use hatch-mkdocs and hatch-pip-compile for docs deps
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Nov 24, 2023
1 parent 2756a90 commit e6f5102
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.11'
- name: Install dependencies
run: pip install --no-deps -r docs/requirements.txt
run: pip install --no-deps -r requirements/requirements-docs.txt
- name: Build site
run: LINT=true mkdocs build --strict
- name: Upload to GitHub Pages
Expand Down
10 changes: 0 additions & 10 deletions docs/requirements.in

This file was deleted.

10 changes: 10 additions & 0 deletions hatch.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[env]
requires = [
"hatch-mkdocs",
"hatch-pip-compile",
]

[env.collectors.mkdocs.docs]
[envs.docs]
type = "pip-compile"
pip-compile-hashes = false
15 changes: 12 additions & 3 deletions docs/requirements.txt → requirements/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
# This file is autogenerated by hatch-pip-compile with Python 3.11
#
# pip-compile docs/requirements.in
# - markdown-callouts
# - mkdocs
# - mkdocs-code-validator
# - mkdocs-gen-files
# - mkdocs-literate-nav
# - mkdocs-material
# - mkdocs-section-index
# - mkdocstrings
# - mkdocstrings-crystal
# - pymdown-extensions
#

babel==2.13.1
# via mkdocs-material
certifi==2023.7.22
Expand Down

0 comments on commit e6f5102

Please sign in to comment.