Skip to content

Commit

Permalink
Merge pull request #72 from SPARC-X/joss-paper
Browse files Browse the repository at this point in the history
Merge JOSS paper to master branch
  • Loading branch information
alchem0x2A authored Nov 18, 2024
2 parents a5c0684 + 88d1c4e commit 4ed83af
Show file tree
Hide file tree
Showing 7 changed files with 5,161 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/joss_paper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Draft Paper for JOSS
on:
push:
paths:
- paper/**
- .github/workflows/joss_paper.yml
pull_request:
paths:
- paper/**
- .github/workflows/joss_paper.yml
workflow_dispatch:

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
path: paper/paper.pdf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,6 @@ examples/ex1-ase/
/test-2/
*.pt
/README.html
/paper/paper.pdf
/paper/jats/
/doc/_build/
32 changes: 32 additions & 0 deletions paper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Folder for JOSS submission

This folder contains the `paper.md`, `paper.bib` and supporting
figures for the JOSS submission of the SPARC-X-API. Please do not add
SPARC doc in this directory. While most of the writings should be done
in Markdown, please use either of the following methods for rendering
the draft into pdf format.

## Building Locally

Follow the instructions in the [JOSS
manual](https://joss.readthedocs.io/en/latest/paper.html#docker), use
docker (or equivalent) to build the paper locally:

```bash
# At the paper/ subfolder of the SPARC-X-API repository
docker run --rm \
--volume $PWD:/data \
--user $(id -u):$(id -g) \
--env JOURNAL=joss \
openjournals/inara
```
This command will create the `paper.pdf` under the `paper/` subfolder.

## Use Github Actions

The draft pdf will be rendered after any changes are pushed the
`paper/` under the `joss_paper` branch. Please check the [status
page](https://github.com/SPARC-X/SPARC-X-API/actions/workflows/joss_paper.yml)
for the latest build action. Once the compilation is finished, the zip
archive containing the rendered `paper.pdf` can be downloaded via the
link in the "Artifacts" section of the action status.
1,639 changes: 1,639 additions & 0 deletions paper/fig/fig_socket_hetero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,319 changes: 2,319 additions & 0 deletions paper/fig/fig_sparc_api_overview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4ed83af

Please sign in to comment.