opm-simulators/python/sphinx_docs/Makefile
Håkon Hægland a6c28ea85a Use the module sphinx-versioned-docs
Use the Python module sphinx-versioned-docs to get versioned docs.
Currently, there is only a version for the HEAD of the master branch
but release versions can be added later by specifying a release tag.
2024-05-14 09:00:58 +02:00

7 lines
278 B
Makefile

.PHONY: docs
# Build the documentation locally for the current branch
# NOTE: You need to commit your changes before running this command
docs:
@CURRENT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
sphinx-versioned -m $$CURRENT_BRANCH -b $$CURRENT_BRANCH --git-root ../../