Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroCamphuijsen authored Jun 26, 2024
0 parents commit 9347bcf
Show file tree
Hide file tree
Showing 23 changed files with 304 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Clean install and build check with content (no deployment)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
deploy_with_NEBULA:
permissions:
contents: write
uses: esciencecenter-digital-skills/NEBULA/.github/workflows/[email protected]
with:
content_organization: ${{ github.repository_owner}}
content_repository: ${{ github.event.repository.name }}
content_ref: ${{ github.sha }}
nebula_ref: v1.0.0
deploy_to_ghpages: false
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy to gh-pages

on:
release:
types: [published]
workflow_dispatch:

jobs:
deploy_with_NEBULA:
permissions:
contents: write
uses: esciencecenter-digital-skills/NEBULA/.github/workflows/[email protected]
with:
content_organization: ${{ github.repository_owner}}
content_repository: ${{ github.event.repository.name }}
content_ref: ${{ github.sha }}
nebula_ref: v1.0.0
deploy_to_ghpages: true
44 changes: 44 additions & 0 deletions .github/workflows/generate_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Generate Config json File (Execute it only upon repository initialisation)

on:
push:
branches:
- '**'

permissions: write-all

jobs:
create-config:
runs-on: ubuntu-latest

steps:
- name: Checkout content
uses: actions/checkout@v4

- name: Create config.json
run: |
echo '{
"publicProps": {
"title": "Add a title for your lesson/project",
"baseURL": "${{ github.event.repository.name }}",
"repoName": "${{ github.event.repository.name }}",
"repoOwner": "esciencecenter-digital-skills",
"organization": "Netherlands eScience Center",
"categoryOrder": ["Category1", "Category2"]
}
}' > config.json
- name: Commit and push config.json
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add config.json
git commit -m "Create config.json" || exit 0 # Exits gracefully if there's nothing to commit
git push
- name: Disable this workflow once it has been run once on instantiation
shell: bash
run: |
gh workflow disable -R $GITHUB_REPOSITORY "${{ github.workflow }}"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 4 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />The content of the `modules/` folder of this project is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.

This license does not apply to any image files in the `modules` folder or its subfolders.
Image files are files with `.png`, `.jpg`, `.svg`, or `.gif` extensions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# NEBULA-content-template
This template repository can be used to create an easily maintainable, version-controllable, web-based lesson collection to be deployed with the [NEBULA framework](https://github.com/esciencecenter-digital-skills/NEBULA).

## Repo instantiation
To create a custom-made lesson repository, click the `Use this template` button located at the top right of this page.

## Configure GitHub Pages
After instantiation, you need to set up your repo's GitHub Pages. Follow these steps:
- Go to `Settings` (located on the top toolbar), and then click on `Pages`.
- Under the `Branch` option, select the `gh-pages` branch and then click `Save`. Use the `/root` folder as the default.
- Return to your main repository page.
- In the `About` section of your repository details, find the `Website` field and select `Use your GitHub Pages website`.

## Add the title of your lesson and additional sections
This can be configured through the `config.json` file. Below is an example of its contents:
```
{
"publicProps": {
"title": "Add a title for your lesson/project",
"baseURL": "NEBULA-content-template",
"repoName": "NEBULA-content-template",
"repoOwner": "esciencecenter-digital-skills",
"organization": "Netherlands eScience Center",
"categoryOrder": ["Category1", "Category2"]
}
}
```
You can modify the `"title"` field to reflect your specific topic and add new sections to your lesson under `"categoryOrder"`.

The `"repoName"` and `"baseURL"` fields are automatically updated to the name of your new repository using the [generate_config.yml](https://github.com/esciencecenter-digital-skills/NEBULA-content-template/blob/main/.github/workflows/generate_config.yml) file. The corresponding workflow is triggered only once upon repository instantiation and is subsequently disabled.

## Adding new modules
This repository includes dummy model modules as templates that you can follow to create your own modules. Please, follow the recommended formats and file extensions.
See also [NEBULA-docs](https://github.com/esciencecenter-digital-skills/NEBULA-docs) for information on how to create new modules.

## Suggestions and further info
Suggestions are always welcome.
For this and any other issues, we invite you contribute to the project by creating `Issues` and `Pull requests`.
If needed, you can also contact us directly:
- Carlos M. R. Rocha: [email protected]
- Jaro Camphuijsen: [email protected]
- Robin Richardson: [email protected]


10 changes: 10 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"publicProps": {
"title": "Add a title for your lesson/project",
"baseURL": "NEBULA-content-template",
"repoName": "NEBULA-content-template",
"repoOwner": "esciencecenter-digital-skills",
"organization": "Netherlands eScience Center",
"categoryOrder": ["Category1", "Category2"]
}
}
5 changes: 5 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Hello world

Here is some markdown content.

[Demo lesson link](/lessons/demo)
11 changes: 11 additions & 0 deletions main/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: About
---

## About this lesson/project

Provide details about the project and lesson.

## Target audience

Define target audience for this material.
7 changes: 7 additions & 0 deletions main/contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Contribute
---

## Contributing to this lesson

Add contributing guidelines for you project.
9 changes: 9 additions & 0 deletions modules/module1/exercises_module1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Exercises
type: exercise
order: 2
---

# Exercises

Add here your exercises...
9 changes: 9 additions & 0 deletions modules/module1/further_reading_module1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Reading material
type: reading
order: 3
---

# Reading material

Add here links to relevant reading material...
11 changes: 11 additions & 0 deletions modules/module1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: 0
trl: medium
category: Category1
title: Title of module 1
author: eScience Center
thumbnail: "nlesc-dummy.png"
visibility: visible
---

# Category 1
7 changes: 7 additions & 0 deletions modules/module1/info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Learning objectives
type: info
order: 0
---

Learning objectives of Module 1
Binary file added modules/module1/media/fig-dummy.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/module1/media/nlesc-dummy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions modules/module1/slides_module1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Module 1
type: slides
order: 1
---

<!-- .slide: data-state="title" -->

# Module 1

===

<!-- .slide: data-state="standard" -->

## Title of the first slide

<center>
<img src="media/fig-dummy.png" width="55%">
</center>

Note:

Add notes to the presenter...

===

<!-- .slide: data-state="keepintouch" -->


www.esciencecenter.nl

[email protected]

020 - 460 47 70
9 changes: 9 additions & 0 deletions modules/module2/exercises_module2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Exercises
type: exercise
order: 2
---

# Exercises

Add here your exercises...
9 changes: 9 additions & 0 deletions modules/module2/further_reading_module2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Reading material
type: reading
order: 3
---

# Reading material

Add here links to relevant reading material...
11 changes: 11 additions & 0 deletions modules/module2/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: 1
trl: medium
category: Category2
title: Title of module 2
author: eScience Center
thumbnail: "nlesc-dummy.png"
visibility: visible
---

# Category 2
7 changes: 7 additions & 0 deletions modules/module2/info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Learning objectives
type: info
order: 0
---

Learning objectives of Module 2
Binary file added modules/module2/media/fig-dummy.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/module2/media/nlesc-dummy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions modules/module2/slides_module2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Module 2
type: slides
order: 1
---

<!-- .slide: data-state="title" -->

# Module 2

===

<!-- .slide: data-state="standard" -->

## Title of the first slide

<center>
<img src="media/fig-dummy.png" width="55%">
</center>

Note:

Add notes to the presenter...

===

<!-- .slide: data-state="keepintouch" -->


www.esciencecenter.nl

[email protected]

020 - 460 47 70

0 comments on commit 9347bcf

Please sign in to comment.