Skip to content

Commit

Permalink
Merge commit 'acf58ead944279b82efc538bdfacec731706a9fa' into viola-cwl
Browse files Browse the repository at this point in the history
  • Loading branch information
Brilator committed Nov 14, 2024
2 parents 1ac42b3 + acf58ea commit 93f91b5
Show file tree
Hide file tree
Showing 47 changed files with 634 additions and 1,240 deletions.
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/article-add.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Add article
description: Add an article. This is just a low-barrier entrypoint. Please consider opening a PR for contributions.
title: "[Add article]: "
labels:
- new-content
body:
- type: input
id: section
attributes:
label: Section
description: Please name the section where this article should be added
validations:
required: false
- type: input
id: title
attributes:
label: Title
validations:
required: true
- type: textarea
id: authors
attributes:
label: Authors
description: Please add the article author(s)
value: |
name: <FirstName LastName>
# Optionally add socials and affiliation
socials:
- icon: simple-icons:github
href: https://github.com/<AuthorGitHubAccount>
- icon: simple-icons:orcid
href: https://orcid.org/<AuthorORCID>
affiliation: <AuthorAffiliation>
# Optionally add author image. Can be uploaded via comment below this issue.
image: "@images/authors/<AuthorImage>"
render: markdown
validations:
required: true
- type: textarea
id: content
attributes:
label: Content
value: |
# First level heading
## Second level heading
<Steps>
1. Install ...
2. Open ...
2. Click ...
</Steps>
render: markdown
validations:
required: true
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/article-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Request an article
description: If you're missing a guide about a tool, software or concept, please let us know.
title: "[Add article]: "
labels:
- missing-content
body:
- type: dropdown
id: type
attributes:
label: Type
description: What type of article are you looking for?
multiple: true
options:
- guide
- tool tutorial
- introduction to concept
- use-case
- type: textarea
id: description
attributes:
label: Description
description: Please describe the article you'd like to see with a few bullet points
value: |
-
-
-
render: markdown
validations:
required: true
- type: textarea
id: related
attributes:
label: Related to
description: Please link related knowledge base content or sections here.
validations:
required: false
- type: textarea
id: resources
attributes:
label: Resources
description: If you have suitable resources on a similar topic, please share them.
validations:
required: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Report a bug
title: "[bug]"
description: If you found a bug, error, inconsistency, please let us know.
labels:
- bug
body:
- type: input
id: url
attributes:
label: Article URL
description: Please paste the URL of the buggy article
validations:
required: true
- type: textarea
id: description
attributes:
label: Bug
description: Please describe the bug.
validations:
required: true
104 changes: 88 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,63 @@

Your contribution to the DataPLANT Knowledge Base is highly appreciated. This guide is intended to show you how to contribute new articles and tutorials or review and adapt parts of existing ones. For changes and suggestions, feel free to open a GitHub issue or pull request.

The DataPLANT Knowledge Base is built on [astro starlight](https://starlight.astro.build). Many features not covered here specifically, may be found in their docs.

- [Setup](#setup)
- [Installation](#installation)
- [Create content and watch locally](#create-content-and-watch-locally)
- [Check for dead links](#check-for-dead-links)
- [Markdown](#markdown)
- [VSCode](#vscode)
- [Where should I place my content?](#where-should-i-place-my-content)
- [Start here](#start-here)
- [Guides](#guides)
- [`<specific-tool>`](#specific-tool)
- [Core concepts](#core-concepts)
- [Style Guide](#style-guide)
- [Use Starlight components](#use-starlight-components)
- [General file information](#general-file-information)
- [Authors](#authors)
- [Images](#images)
- [html](#html)
- [Tables](#tables)
- [Lists](#lists)
- [Article cross-references](#article-cross-references)

## Setup

The DataPLANT Knowledge Base is built on [astro starlight](https://starlight.astro.build). Many features not covered here specifically may be found in their docs.

Starlight itself builds on [Astro](https://astro.build). Please check out [their website](https://docs.astro.build/en/install-and-setup/) for detailed installation instructions.

### Installation

1. Install [Node JS](https://nodejs.org/)
2. Clone the Knowledge Base repository via `git clone https://github.com/nfdi4plants/nfdi4plants.knowledgebase`

### Create content and watch locally

1. Install package dependencies via `npm install`
2. Start the knowledge base in watch mode via `npm run dev`

### Check for dead links

Especially when moving or cross-linking files (other articles or images), make sure to test-build the site via `npm run build`! This validates all links.

### Markdown

All articles are written in markdown (.md or .mdx).
See https://starlight.astro.build/guides/authoring-content/ for a short introduction.

### VSCode

We recommend working with VSCode to generate content.

Recommended VSCode extensions:

- Astro Build: https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode
- MDX: https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx

💡 The mdx files cannot be previewed in VSCode. Please use `npm run dev` as described above.

## Where should I place my content?

Expand All @@ -14,7 +70,7 @@ This is a place for content required for the recommended way to work with an ARC

Here you can place content for a specific topic or task. Do not place specific tools documentation here.

### <specific-tool>
### `<specific-tool>`

If you have a tool that is used in the context of an ARC, you can place the documentation here.

Expand Down Expand Up @@ -46,6 +102,31 @@ Always follow **DRY (Don't Repeat Yourself)** principle. If you have the same co

In `.mdx` you can not only link to other content, but also directly insert other content in the current file.

### Authors

Authors listed via a file in [`src/content/authors`](src/content/authors) can easily be mentioned in the yaml header of articles.

For example `src/content/authors/kevin-frey.yml`:

```yaml
name: Kevin Frey
image: "@images/authors/kevin-frey.jpg"
socials:
- icon: simple-icons:github
href: https://github.com/Freymaurer
- icon: simple-icons:orcid
href: https://orcid.org/0000-0002-8510-6810
affiliation: DataPLANT
styling:
text: KFR
```
The author is linked simply via yaml article metadata
```yaml
authors:
- kevin-frey
```
### Images
Expand Down Expand Up @@ -83,9 +164,12 @@ import MacOSSecurity from "@images/arcitect/macos-security.png"
<img src={MacOSSecurity.src} style="width:50%;display: block; margin: 20px" />
```

### `<br />`
### html

Try to avoid html as it will usually override the consistent page design.
**Don't use `<br />`!**

Don't!
If you really need some special design or styling, raise an issue or contact the main contributors to discuss.

### Tables

Expand Down Expand Up @@ -134,15 +218,3 @@ Instead, use references starting from the `docs` folder as root and add `/nfdi4p
```md
[wiki associated to the ARC](/nfdi4plants.knowledgebase/datahub/datahub-arc-wiki)
```

### Test-build locally

On a fresh clone of this repository, run

1. `npm install` to install the latest package dependencies
2. `npm run dev` to render the knowledge base in watch mode

#### Check for dead links

Especially when editing / adding / moving files, make sure to test build the site via `npm run build`.
This validates all links (cross-references between articles and image links).
35 changes: 31 additions & 4 deletions astro.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig({
Footer: '@components/starlight/Footer.astro',
},
editLink: {
baseUrl: 'https://github.com/nfdi4plants/nfdi4plants.knowledgebase/edit/main/docs/'
baseUrl: 'https://github.com/nfdi4plants/nfdi4plants.knowledgebase/edit/main/'
},
social: {
github: 'https://github.com/nfdi4plants/nfdi4plants.knowledgebase',
Expand Down Expand Up @@ -88,10 +88,37 @@ export default defineConfig({
},
{
label: 'DataHUB',
// Collapse the group by default.
collapsed: true,
autogenerate: { directory: 'datahub' },
},
// autogenerate: { directory: 'datahub' },
items:[
'datahub',
{
label: 'DataPLANT Account',
collapsed: false,
autogenerate: { directory: 'datahub/account'},
},
{
label: 'Navigation & Settings',
autogenerate: { directory: 'datahub/navigation-settings'},
},
{
label: 'Working together',
autogenerate: { directory: 'datahub/working-together'},
},
{
label: 'ARC files',
autogenerate: { directory: 'datahub/arc-files'},
},
{
label: 'ARC features',
autogenerate: { directory: 'datahub/arc-features'},
},
{
label: 'Data Publications',
autogenerate: { directory: 'datahub/data-publications'},
},
]
},
{
label: 'ARC Commander',
// Collapse the group by default.
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/cwl/cwl-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: "CWL Examples"
lastUpdated: 2024-02-05
authors:
- caro-ott
sidebar:
order: 4
---

# CWL Examples
Expand Down
4 changes: 3 additions & 1 deletion src/content/docs/cwl/cwl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ title: "CWL Introduction"
lastUpdated: 2024-01-18
authors:
- caro-ott
sidebar:
order: 1
---

# What is CWL?

CWL is short for Common Workflow Language.
CWL is short for **Common Workflow Language**.
It is an open standard for describing how to run command line tools and connect them to create
workflows, which can then be incorporated in other workflows if needed (nested workflows).
Descriptions in CWL are portable across a variety of platforms that support the CWL
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/cwl/cwl-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: "CWL Metadata"
lastUpdated: 2024-02-05
authors:
- caro-ott
sidebar:
order: 3
---

# CWL Metadata
Expand Down
48 changes: 0 additions & 48 deletions src/content/docs/cwl/cwl-runner-installation.md

This file was deleted.

Loading

0 comments on commit 93f91b5

Please sign in to comment.