Skip to content

Commit 9593386

Browse files
authored
Merge pull request #54 from computorg/guidelines-authors
Update guidelines for authors.
2 parents 39f4ea4 + 437e201 commit 9593386

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

site/guidelines-authors.qmd

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ These templates provide a starting point for authors to format their contributio
103103

104104
### Setup a git repository {#sec-git}
105105

106+
::: {.callout-note title="Git and GitHub"}
107+
Git is a versioning tool and GitHub is an online platform owned by Microsoft which provides the service of hosting repositories with all the capabilities of versioning offered by Git.
108+
109+
Computo requires authors to submit their contribution as a GitHub repository. Hence, authors are expected to have basic knowledge of Git. We refer authors to the following online book which is particularly well written: <https://happygitwithr.com>.
110+
:::
111+
106112
Create a new GitHub repository by navigating to the [R](https://github.com/computorg/template-computo-R), [Python](https://github.com/computorg/template-computo-python), or [Julia](https://github.com/computorg/template-computo-julia) template repository and clicking the **"Use this template"** button at the top of the page, as shown in @fig-template.
107113

108114
![Screenshot of the R Computo template GitHub page.](/assets/img/computo-template-screenshot.png){#fig-template width="100%"}
@@ -111,7 +117,7 @@ Create a new GitHub repository by navigating to the [R](https://github.com/compu
111117
When you fork a GitHub repository – whether it is a classic repository or a template – GitHub will ask if you want to include all branches (there is a box labeled *Include all branches*). You only need to fork the main branch, so you do not need to check that box.
112118
:::
113119

114-
::: {.callout-caution title="Public repository"}
120+
::: {.callout-caution title="Public/private repository"}
115121
The paper will be automatically published online using GitHub pages. This is possible only with public repositories (which is the default behavior when you initialize your repository from this template, see @fig-clone-template). If your prefer, it is fine to keep your repository private during the writing phase. However, we ask you to set it public at the submission stage; so that the paper can be rendered and published online for the reviewers.
116122
:::
117123

@@ -145,7 +151,21 @@ quarto add computorg/computo-quarto-extension
145151
If you are collaborating with others when writing your contributions, **each collaborator** needs to perform these same three steps (clone the repository, install Quarto and install the Computo Quarto extension).
146152
:::
147153

148-
::: {.callout-important title="Local compilation"}
154+
### Write your contribution {#sec-writing}
155+
156+
There are mainly two files you are expected to modify in your repository for writing your contribution: `template-computo-LANG.qmd` (where LANG is to be replaced with either R, Python or Julia) and `_quarto.yml`.
157+
158+
#### Main content of your contribution
159+
160+
The main body of your paper (starting with the *Introduction* section) should be written in the `template-computo-LANG.qmd` following the formatting suggestions therein.
161+
162+
::: {.callout-tip title="Multiple languages"}
163+
Quarto relies on a specific engine to compile your document. By default, that engine detects code blocks, executes them and paste the result below the code block in the rendered document.
164+
165+
It is possible to use multiple languages within the same document (e.g. R and Python or Python and Julia, etc.) provided that you use the **knitr** engine. Indeed, [**knitr**](https://yihui.org/knitr/) is an R package that is able to parse code blocks from many languages. This can be achieved by specifying `engine: knitr` in your document metadata. The default engine binding that Quarto uses is detailed here: <https://quarto.org/docs/computations/execution-options.html#engine-binding>.
166+
:::
167+
168+
::: {.callout-caution title="Local compilation"}
149169
Before proceeding to the next step, make sure that you are able to build your manuscript as a standard notebook on your system by running the following command in a terminal:
150170

151171
```bash
@@ -248,32 +268,7 @@ Now that you have written your contribution in the correct template and set up i
248268

249269
#### Use Computo's built-in GitHub Action workflow
250270

251-
Computo has a built-in workflow for just that purpose which comes in the form of a YAML file describing a GitHub Action. It should have been automatically added to your repository when you cloned one of our templates. It is located under `.github/workflows/build.yml` and its content should exactly match the following:
252-
253-
```yml
254-
name: Main Workflows
255-
256-
on:
257-
push:
258-
branches: ["main","master"]
259-
repository_dispatch:
260-
types: [custom-event]
261-
workflow_dispatch:
262-
pull_request:
263-
branches: ["main","master"]
264-
265-
266-
jobs:
267-
call_env_workflow:
268-
uses: computorg/workflows/.github/workflows/global-env.yml@main
269-
call_quartopublish_workflow:
270-
permissions:
271-
id-token: write
272-
contents: write
273-
pages: write
274-
uses: computorg/workflows/.github/workflows/publish-render.yml@main
275-
needs: call_env_workflow
276-
```
271+
Computo has a built-in workflow for just that purpose which comes in the form of a YAML file describing a GitHub Action. It should have been automatically added to your repository when you cloned one of our templates. It is located under `.github/workflows/build.yml`.
277272

278273
::: {.callout-important title="Content of `build.yml`"}
279274
Authors should **under no circumstances** modify this file. If you encounter a problem (such as the CI not completing successfully), please get in touch with us at <contact@computo-journal.org>.

0 commit comments

Comments
 (0)