marp | title | theme | author | paginate | date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
true |
Contribution to DataPLANT |
marp-theme_dataplant-ceplas-ccby |
|
true |
2023-07-25 |
Contribution to DataPLANT July 25th, 2023
Dominik Brilhaus
Create, share, reuse, collaborate on
- articles
- guides
- images
- slides
- ...
DataPLANT Knowledge Base: https://nfdi4plants.org/nfdi4plants.knowledgebase/
- How to contribute to the DataPLANT Knowledge Base
- ... and DataPLANT projects in general
Contents shown here are (in part) already somewhere in the Knowledge Base or at least in the GitHub repo. However,
☑️ a GitHub account :ballot_box_with_check: Git installed and configured
- git synchronization
- pull requests
- manage (local and remote) branches
- all-in-one: text editor + file explorer + command line + git + ...
- code highlighting and linting
- many extensions available
- Markdown all in one
- Creating a TOC, use of shortcuts, creating a table, copy/pasting a table from excel
- markdownlint
- markdown linting and style checking
- Structuring and formatting
- Code Spell Checker
- basic spell checker that works well with code and documents
- Markdown Shortcuts
- Markdown PDF
- Converting a markdown to PDF
- 💡 this does not follow any style / layout, e.g. linked in the YAML heading
- general idea: WYSIWYG
- add YAML metadata
💡 See the Markdown tutorial and references therein
- add
marp: true
to YAML metadata
💡 See the Marp slide decks tutorial
The DataPLANT GitHub organization (https://github.com/nfdi4plants) and repositories are the place where most of the magic (tool development) happens.
💡 Most repositories are public and open for (user) feedback
- Project-related task (lists)
- Communicate needs
- Example: Swate issues
💡 See also: https://docs.github.com/en/issues/tracking-your-work-with-issues/quickstart
- Navigate to the Knowledge Base or another DataPLANT repo
- Raise an issue, e.g.
- raise a question
- report a bug
- request a feature
- Fork = same project, different place
- Good routine to propose changes (contribute)
- Knowledge Base Forks
💡 See also: https://docs.github.com/en/get-started/quickstart/fork-a-repo
- Navigate to the Knowledge Base
- Fork the repo (i.e. create a copy under your user name)
- Clone your fork locally (to your machine)
- Open your local "Knowledge Base" clone (File explorer or VS Code)
- In
src/docs/_ignored
, create a new text file<YourInitials>_dsc.md
- Add the following YAML header:
---
title: <YourTitle>
author: <YourName>
date: 2023-07-25
---
- add some text below the YAML header
- Save your local changes
- Sync to your fork
- via command line (add, commit, push) or
- via VS Code or
- via GitHub Desktop
- Contribute / open a PR (follow instructions on GitHub)
💡 Both required for local testing of Knowledge Base
💡 See nfdi4plants web components docs
- Clone the repo.
- Run
dotnet tool restore
in root directory. - Run
dotnet paket install
in root directory. - Run
npm install
in root directory.
💡 This needs to be done only once after cloning the repo.
- Run
npm run fornax
. - Open the page in your browser http://127.0.0.1:8080/.
<style scoped> .row { display: flex; } .column { /* flex: 50%; */ padding: 10px; } </style>
- MUST start and end with
---
. - MUST contain ` - This triggers fornax parsing to html.
- MUST contain
title: xxxx
.- added as "# xxxx" to the html
- used to name the generated webpage.
- MUST contain
date: yyyy-MM-dd
- MAY contain author: xxxx.
- MAY contain ` - If true, adds automated table of contents from all found headers in content.
- MAY contain ` - If true adds DataPlant support component at the bottom.
- MAY contain `- MAY contain any other metadata. The information will be read but will not affect the generated html.
- Keys (
layout
,author
, etc.) are NOT case sensitive. - Fields MAY be in any order.
---
title: Metadata
date: 2022-05-09
author: FirstName LastName
---
💡 For details, check
- Fornax currently does not auto-convert
marp.md
tomarp.html
- Slides are mostly stored in
src/docs/teaching-materials
- based on the concept presented before
- Naming convention and YAML header are up for discussion
💡 Feel free to create slide decks how and where you need them!
- Read and use the knowledge base
- Raise issues
- Open pull-requests to
- suggest changes
- create or edit articles, guides, tutorials