Skip to content

Commit 3a24dc7

Browse files
committed
add make joss
1 parent 1276a58 commit 3a24dc7

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# .PHONY is used to declare that the targets are not files
2-
.PHONY: install-dev clean clean-build clean-pyc clean-test clean-doc release build update-version sync-webapp-readme build-docs deploy-docs
2+
.PHONY: install-dev clean clean-build clean-pyc clean-test clean-doc release build update-version sync-webapp-readme build-docs deploy-docs joss
33

44
help:
55
@echo "Available commands to 'make':"
@@ -14,6 +14,7 @@ help:
1414
@echo " build-docs : build documentation for local development"
1515
@echo " deploy-docs : deploy documentation to GitHub Pages"
1616
@echo " update-version: update NPLinker version (e.g. make update-version CURRENT_VERSION=0.1.0 NEW_VERSION=0.2.0)"
17+
@echo " joss : compile JOSS paper from markdown to PDF for previewing"
1718

1819
install-dev:
1920
pip install -e ".[dev]"
@@ -93,4 +94,12 @@ deploy-docs: sync-webapp-readme
9394
ifndef version
9495
$(error version is not set. Usage: make deploy-docs version=YOUR_VERSION)
9596
endif
96-
mike deploy -p -u $(version) latest
97+
mike deploy -p -u $(version) latest
98+
99+
joss:
100+
@docker info > /dev/null 2>&1 || { echo >&2 "Docker is not running. Please start Docker and try again."; exit 1; }
101+
docker run --rm \
102+
--volume ${PWD}/joss:/data \
103+
--user $(id -u):$(id -g) \
104+
--env JOURNAL=joss \
105+
openjournals/inara

README.dev.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,20 @@ After creating a new release, you can publish the docs for the new version with
242242
make deploy-docs version=2.0.3
243243
```
244244

245-
this will deploy the docs for the new version and mark it as the latest version. You can check the [docs page](https://nplinker.github.io/nplinker/) to see the new version of the docs.
245+
this will deploy the docs for the new version and mark it as the latest version. You can check the [docs page](https://nplinker.github.io/nplinker/) to see the new version of the docs.
246+
247+
248+
## Preview the JOSS (Journal of Open Source Software) paper
249+
250+
You can preview the JOSS PDF paper with the following command:
251+
252+
```shell
253+
cd path-to-nplinker-repo
254+
255+
# ensure docker is running before executing the command
256+
make joss
257+
```
258+
259+
This command will convert the JOSS paper from [markdown](./joss/paper.md) to a PDF. Preview the PDF to make sure everything looks good before committing the changes of the markdown file.
260+
261+
After you push the changes of the markdown file to the remote repository, a Github action will automatically generate the PDF from the markdown file and commit it to the `joss` directory.

0 commit comments

Comments
 (0)