Skip to content

Commit

Permalink
propagate version to all docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iandennismiller committed Jul 2, 2023
1 parent a81ca45 commit c69e63e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/_static/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version: "3.3"
services:
gthnk-server:
image: iandennismiller/gthnk:0.8
image: iandennismiller/gthnk:0.8.1
container_name: gthnk-server
volumes:
- ~/Work/gthnk/var/gthnk:/opt/gthnk/var
Expand Down
2 changes: 1 addition & 1 deletion docs/intro/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Use Docker to run **Gthnk** with all files stored locally in ``~/.gthnk``.
-p 1620:1620 \
-e TZ=America/Toronto \
-v ~/.gthnk:/opt/gthnk/var \
iandennismiller/gthnk:0.8
iandennismiller/gthnk:0.8.1

The default text file where you will record journal entries is ``~/.gthnk/journal.txt``.

Expand Down
2 changes: 1 addition & 1 deletion docs/intro/quick-start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The simplest installation method is to use Docker.
-p 1620:1620 \
-e TZ=America/Toronto \
-v ~/.gthnk:/opt/gthnk/var \
iandennismiller/gthnk:0.8
iandennismiller/gthnk:0.8.1

However, advanced methods are also available to install **Gthnk** as a Python package.
Read :doc:`installation` for more installation options.
Expand Down
10 changes: 7 additions & 3 deletions src/dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

-include ./src/test-one.mk

REPLACE_VERSION_CMD=sed -I .bak -E 's/iandennismiller\/gthnk:.+$$/iandennismiller\/gthnk:$(GTHNK_VER)/g'

requirements:
pip install -U pip
pip install -e ./src[dev]
Expand All @@ -26,9 +28,11 @@ docs:
pip install -r docs/requirements.txt
sphinx-build -b html docs var/sphinx

readme:
sed -I .bak -E 's/iandennismiller\/gthnk:.+$$/iandennismiller\/gthnk:$(GTHNK_VER)/g' Readme.rst
rm Readme.rst.bak
version-propagate:
$(REPLACE_VERSION_CMD) Readme.rst && rm Readme.rst.bak
$(REPLACE_VERSION_CMD) docs/intro/quick-start.rst && rm docs/intro/quick-start.rst.bak
$(REPLACE_VERSION_CMD) docs/intro/installation.rst && rm docs/intro/installation.rst.bak
$(REPLACE_VERSION_CMD) docs/_static/docker-compose.yaml && rm docs/_static/docker-compose.yaml.bak

release: clean readme
cd src && python setup.py sdist bdist_wheel
Expand Down

0 comments on commit c69e63e

Please sign in to comment.