Skip to content

Commit

Permalink
CF pages docs build (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Apr 26, 2024
1 parent 5260625 commit 8627bc6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
.DEFAULT_GOAL := all
sources = pydantic tests docs/plugins

.PHONY: .rye ## Check that Rye is installed
.PHONY: .rye # Check that Rye is installed
.rye:
@rye --version || echo 'Please install Rye: https://rye-up.com/guide/installation/'

.PHONY: .pre-commit ## Check that pre-commit is installed
.PHONY: .pre-commit # Check that pre-commit is installed
.pre-commit:
@pre-commit -V || echo 'Please install pre-commit: https://pre-commit.com/'

.PHONY: install ## Install the package, dependencies, and pre-commit for local development
.PHONY: install # Install the package, dependencies, and pre-commit for local development
install: .rye .pre-commit
rye show
rye sync
pre-commit install --install-hooks

.PHONY: format ## Format the code
.PHONY: format # Format the code
format:
rye format
rye lint --fix

.PHONY: lint ## Lint the code
.PHONY: lint # Lint the code
lint:
rye lint
rye format --check

.PHONY: test ## Run the tests
.PHONY: test # Run the tests
test:
rye test

.PHONY: docs ## Build the documentation
.PHONY: docs # Build the documentation
docs:
rye run docs

.PHONY: docs-serve ## Build the documentation
.PHONY: docs-serve # Build and serve the documentation
docs-serve:
rye run docs-serve

.PHONY: all
all: format lint test

.PHONY: cf-pages-build
.PHONY: cf-pages-build # Build the docs for GitHub Pages
cf-pages-build:
python3 -V
python3 -m pip install --user uv
uv pip install --system -r requirements.lock -r requirements-dev.lock
uv pip install --system -U mkdocs-material mkdocstrings-python
mkdocs build
python3 -m pip install uv
python3 -m uv pip install --system -r requirements.lock -r requirements-dev.lock
python3 -m uv pip install --system --extra-index-url $(PPPR_URL) -U mkdocs-material mkdocstrings-python
python3 -m mkdocs build

0 comments on commit 8627bc6

Please sign in to comment.