mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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.
7 lines
278 B
Makefile
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 ../../
|