diff --git a/Makefile b/Makefile index 050f7767..20fb30a3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ .PHONY: tests docs build +VERSION := $(shell git for-each-ref refs/tags --format='%(refname:short)' | grep -E "^v?[0-9]+\..*" | tail -n1) install: pip install -U pip poetry -q @@ -17,16 +18,16 @@ serve: poetry run mkdocs serve --clean docs: - poetry run mkdocs build + poetry run poetry version $(VERSION) && mkdocs build pushdocs: - poetry run mkdocs gh-deploy --force + poetry run poetry version $(VERSION) && mkdocs gh-deploy --force build: - poetry version $$(git describe --tags --abbrev=0) && poetry publish --build --dry-run + rm -rf dist; poetry version $(VERSION) && poetry publish --build --dry-run publish: - poetry config pypi-token.pypi $PYPI_TOKEN && poetry version $$(git describe --tags --abbrev=0) && poetry publish --build + rm -rf dist; poetry config pypi-token.pypi $PYPI_TOKEN && poetry version $(VERSION) && poetry publish --build -y tests: test diff --git a/mkdocs.yml b/mkdocs.yml index 3c996c19..19cadd8a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,4 +1,11 @@ site_name: ChainConsumer +site_url: https://samreay.github.io/chainconsumer/ +site_author: Samuel Hinton + +edit_uri: "" +repo_name: samreay/chainconsumer +repo_url: https://github.com/samreay/chainconsumer + theme: name: material icon: @@ -25,10 +32,9 @@ theme: toggle: icon: material/weather-night name: Switch to dark mode -repo_name: chainconsumer -repo_url: https://github.com/samreay/chainconsumer + plugins: - # autorefs: {} + autorefs: {} mkdocstrings: handlers: python: diff --git a/pyproject.toml b/pyproject.toml index f23893e6..7f2554e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ description = "ChainConsumer: Consumer your MCMC chains" name = "ChainConsumer" packages = [{include = "chainconsumer", from = "src"}] readme = "README.md" -version = "0.0.0" +version = "v0.34.0" [tool.poetry-version-plugin] source = "git-tag"