-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
22,614 additions
and
20,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# | ||
# Update material template for the directory that was provided as a parameter. | ||
|
||
if [ $# -lt 1 ]; then | ||
echo 1>&2 "$0: not enough arguments" | ||
exit 2 | ||
elif [ $# -gt 1 ]; then | ||
echo 1>&2 "$0: too many arguments" | ||
exit 2 | ||
fi | ||
|
||
updated_repository=${1%/} | ||
|
||
BASEDIR=$(dirname "$0") | ||
BASEDIR_WITHOUT_BIN=${BASEDIR%bin} | ||
|
||
if [ -z "$BASEDIR_WITHOUT_BIN" ]; then | ||
BASEDIR_WITHOUT_BIN="." | ||
fi | ||
|
||
rm -r $updated_repository/gatsby-* | ||
rm -r $updated_repository/package* | ||
rm -r $updated_repository/plugins | ||
rm -r $updated_repository/src | ||
rm -r $updated_repository/docs | ||
rm -r $updated_repository/bin | ||
|
||
cp -r $BASEDIR_WITHOUT_BIN/gatsby-* $updated_repository | ||
cp -r $BASEDIR_WITHOUT_BIN/package* $updated_repository | ||
cp -r $BASEDIR_WITHOUT_BIN/plugins $updated_repository/plugins | ||
cp -r $BASEDIR_WITHOUT_BIN/src $updated_repository/src | ||
cp -r $BASEDIR_WITHOUT_BIN/docs $updated_repository/docs | ||
cp -r $BASEDIR_WITHOUT_BIN/bin $updated_repository/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
banner: false | ||
hidden: true | ||
hide_in_sidebar: true | ||
information_page: false | ||
overview: true | ||
path: "/frontmatter-guide" | ||
separator_after: "derp" | ||
sidebar_priority: 1337 | ||
title: "Frontmatter-guide" | ||
upcoming: "1.1." | ||
vocabulary_page: false | ||
--- | ||
|
||
### Kaikki mahdolliset frontmatter-fieldit: | ||
|
||
banner | ||
|
||
- Ei pakollinen | ||
- Boolean-tyyppinen | ||
- Lisää projektin juuresta löytyvän banner.svg -kuvan sivun yläreunaan. | ||
- HUOM! Banneri lisätään vain, jos myös information\_page on true | ||
|
||
hidden | ||
|
||
- Ei pakollinen | ||
- Boolean-tyyppinen | ||
- Sivua ei näy sivupalkissa (HUOM! käytä mieluummin hide\_in\_sidebar-kenttää, jos haluat piilottaa sivun ainoastaan sivupalkista) | ||
- Heittää 404, jos yrittää mennä sivun url:iin | ||
|
||
hide\_in\_sidebar | ||
|
||
- Ei pakollinen | ||
- Boolean-tyyppiä | ||
- Piilottaa sivun sivupalkista, jos se muuten näkyisi sivupalkissa. Sivupalkissa näkyy oletuksena kaikki index.md-nimiset tiedostot sekä kaikki data-kansion juuressa olevat markdown-tiedostot. | ||
|
||
information\_page | ||
|
||
- Ei pakollinen | ||
- Boolean-tyyppinen | ||
- Sivupalkkia varten. Tiedostot, joissa information\_page on true, ovat ensimmäisinä sivupalkissa | ||
|
||
overview | ||
|
||
- Ei pakollinen | ||
- Boolean-tyyppinen | ||
- Tarkoitettu kurssin osien indeksisivuille (esim osa-01/index.md). Piilottaa sivujen alareunassa olevan listan osan aliosista. HUOM! Nämä ovat piilotettu myös information\_page-sivuista, eli tätä ei tarvitse erikseen asettaa false:ksi information\_page-sivuilla | ||
|
||
path | ||
|
||
- Pakollinen | ||
- String-tyyppinen | ||
- Polku tiedostoon url:ssa, muodossa baseurl/path | ||
|
||
separator\_after | ||
|
||
- Ei pakollinen | ||
- String-tyyppinen | ||
- Lisää sivupalkkiin jakajan sivun linkin jälkeen. | ||
- Jos asetettu tyhjäksi tekstiksi (separator\_after: ""), pelkkä jakaja ilman otsikkoa. Jos ei tyhjä, jakajan alla on otsikkona asetettu teksti. | ||
|
||
sidebar\_priority | ||
|
||
- Ei pakollinen | ||
- Integer-tyyppinen | ||
- Tarkoitettu vain information\_page-sivuille | ||
- Tällä kentällä voi uudelleenjärjestää sivupalkin information\_page-sivujen linkkejä. Sivupalkissa on oletuksena ensin information\_page-sivut, sitten muut. Sekä information\_page-sivut että muut ovat aakkosjärjestyksessä. | ||
- sidebar\_priority-kentän omaavat sivut tulevat ennen muita, ja ne ovat suuruusjärjestyksessä suurimmasta pienimpään (`sidebar_priority: 5000` tulee ennen `sidebar_priority: 2000`) | ||
|
||
title | ||
|
||
- Pakollinen | ||
- String-tyyppinen | ||
- Sivun otsikko selaimen yläreunassa, selaimen välilehdessä, sekä itse tiedoston yläreunassa | ||
|
||
upcoming | ||
|
||
- Ei pakollinen | ||
- String-tyyppinen | ||
- Jos asetettu, sivun linkki sivupalkissa on harmaana, ei klikattavissa, ja sen vieressä lukee asetettu teksti. | ||
- Suosittelemme, että tekstiksi asetetaan sivun julkaisupäivämäärä muodossa "pv.kk.", koska kenttä on sen verran pieni ettei vuosiluku mahdu kokonaan näkyville. | ||
|
||
vocabulary\_page | ||
|
||
- Ei pakollinen | ||
- Boolean-tyyppinen | ||
- Tarkoitettu ainoastaan sanastosivua varten. Jos tämä on asetettu, sivulla on pääsy dataan sanaston sanoista. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
path: "/sanasto" | ||
title: "Sanasto" | ||
hidden: false | ||
information_page: true | ||
banner: false | ||
vocabulary_page: true | ||
hide_in_sidebar: true | ||
--- | ||
|
||
<vocabulary /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## How to update the template | ||
|
||
To update a course using this repository as a template, simply execute the script `update-material-template.sh` found in this repository's bin-directory. | ||
|
||
The script takes a single parameter, the path to the directory of the course that's updated. | ||
|
||
The script updates the following parts in the target directory: | ||
|
||
- src-directory | ||
- plugins-directory | ||
- docs-directory | ||
- all files beginning with `gatsby-` | ||
- all files beginning with `package` | ||
|
||
Note, that you might have to manually update some files (such as course-settings.js), if needed. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.