Skip to content

Commit aad7b19

Browse files
committed
Merge branch 'master' into density
2 parents e09be23 + 6fdd707 commit aad7b19

575 files changed

Lines changed: 66802 additions & 45308 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,61 @@
1-
.DS_Store
2-
3-
# R
4-
.Rproj.user
1+
# History files
52
.Rhistory
3+
.Rapp.history
4+
5+
# Session Data files
66
.RData
7-
.Ruserdata
7+
8+
# Example code in package build process
9+
*-Ex.R
10+
11+
# Output files from R CMD build
12+
/*.tar.gz
13+
14+
# Output files from R CMD check
15+
/*.Rcheck/
16+
17+
# RStudio files
18+
.Rproj.user/
19+
.Rproj.user
820
*.Rproj
9-
*R_cache/
1021

11-
# Ignore tokens
12-
*.rds
22+
# produced vignettes
23+
vignettes/*.html
24+
vignettes/*.pdf
25+
26+
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
1327
.httr-oauth
14-
token
1528

16-
# ignore temporary download files
29+
# knitr and R markdown default cache directories
30+
/*_cache/
31+
/cache/
32+
33+
# Temporary files created by R markdown
34+
*.utf8.md
35+
*.knit.md
36+
37+
# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
38+
rsconnect/
39+
40+
# Mac OS X
41+
.DS_Store
42+
43+
# Tokens
44+
*.rds
45+
token*
46+
47+
# npm & JS libaries
48+
node_modules/
49+
package-lock.json
50+
51+
# Public folder
52+
public/
53+
54+
# Hugo themes directory
55+
themes/
56+
57+
# Certain content files
58+
content/**/*.html
59+
60+
# Temporary download files
1761
2016-04-20-processed-logs*

.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
language: go
2+
3+
cache:
4+
directories:
5+
- $HOME/.cache/go-build
6+
- $HOME/gopath/pkg/mod
7+
8+
before_install:
9+
- sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev
10+
- . $HOME/.nvm/nvm.sh
11+
- nvm install stable
12+
- nvm use stable
13+
14+
# Install hugo, lunr (search) & minimo theme (v2.7.0)
15+
install:
16+
- curl -Lo hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.62.0/hugo_0.62.0_Linux-64bit.deb
17+
- sudo dpkg -i hugo.deb
18+
- npm install lunr glob
19+
- git clone https://github.com/MunifTanjim/minimo.git --branch v2.7.0 themes/minimo
20+
21+
before_script:
22+
- rm -rf public 2> /dev/null
23+
24+
# Run the build script
25+
script:
26+
- hugo
27+
28+
# Need to add post build for the search functionality...
29+
before_deploy:
30+
- node themes/minimo/scripts/generate-search-index-lunr.js
31+
32+
deploy:
33+
provider: pages
34+
local_dir: public
35+
github_token: $GITHUB_TOKEN
36+
skip_cleanup: true
37+
verbose: true
38+
keep-history: true
39+
on:
40+
branch: master

README.md

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,47 @@
1+
12
# Tutorials
23

3-
Here you can find the source files for the instructions on the use, installation, and development of freeware open source research software at the Research Institute of Nature and Forest (INBO). Visit <http://inbo.github.io/tutorials> to see the rendered version.
4+
[![Build Status](https://travis-ci.com/inbo/tutorials.svg?branch=master)](https://travis-ci.com/inbo/tutorials)
5+
6+
This repository contains the source files for the [INBO tutorials website](https://inbo.github.io/tutorials/): a collection of instructions on the use, installation and development of research software at the Research Institute of Nature and Forest (INBO).
7+
8+
## Adding content
9+
10+
New tutorials should go in a new directory in `content/tutorials`. Use plain markdown files (`.md`) as much a possible. Use Rmarkdown files (`.Rmd`) when calculations in R are required. For more information about creating a new tutorial, check the [create tutorial](https://inbo.github.io/tutorials/create_tutorial/) page.
11+
12+
## Building the site
13+
14+
The technology used to create the website is [Hugo](https://gohugo.io/), a static website generator. Hugo will process all the markdown files - ignoring Rmd, which is why these need to be knit beforehand - and create the necessary files (html, css, js) for the website. These are served from the [`gh-pages` branch](https://github.com/inbo/tutorials/tree/gh-pages).
15+
16+
### Travis CI
17+
18+
[Travis](https://travis-ci.com/inbo/tutorials) will automatically run the steps above ([install Hugo, download theme, run Hugo, deploy website](.travis.yml)) for every pull request or commit to the master branch. You will see in the pull request if the build was successful. If not, [check the build logs](https://travis-ci.com/inbo/tutorials/builds) to figure out what went wrong.
19+
20+
### Building the site on your local computer
21+
22+
1. [Install hugo](https://gohugo.io/getting-started/installing/)
23+
2. Clone the tutorials repository
24+
3. In the cloned tutorials directory, install the theme with `git clone https://github.com/MunifTanjim/minimo.git --branch v2.7.0 themes/minimo`
25+
4. Build and serve the site with `hugo server -D`
26+
27+
For more information, see [Hugo's getting started documentation](https://gohugo.io/getting-started/usage/).
28+
29+
### Customizing the theme
430

5-
The repository is structured in two folders: `docs` and `source`. `source` contains all source files of the website in RMarkdown format. One should only edit these files. The `docs` folder contains the rendered version of the source files. <http://inbo.github.io/tutorials> displays the content of the `docs` folder in the HEAD of the master branch.
31+
The tutorials website makes use of the Hugo theme [minimo](https://themes.gohugo.io/minimo/). This theme is not included in the repository, but [downloaded by Travis](https://github.com/inbo/tutorials/blob/c715a8ea58817d280f89133aa06645590b8e16e0/.travis.yml#L18) at build time. This avoids clutter and changes to the theme itself. To customize the theme:
632

7-
## How to render the source files
33+
1. Browse the `layouts` directory in the [minimo repository](https://github.com/MunifTanjim/minimo/tree/master/layouts) to see which template file you want to customize
34+
2. Copy the template file to the same path in the [`layouts`](layouts/) directory of this repository
35+
3. Edit the file to the desired effect. E.g. [this update](https://github.com/inbo/tutorials/blob/b122758ef8d98977e51335bf227a2cf8c1f6bbd7/layouts/partials/entry/meta.html#L15-L16) to the [original minimo file](https://github.com/MunifTanjim/minimo/blob/4436676dd44c767faaa4fa85f8a24527ce61ba81/layouts/partials/entry/meta.html#L15) adds a "edit this page" link for every page.
36+
4. Hugo will now use your customized file instead of the default theme file.
837

9-
### Using the command line
38+
For more information, see the [Hugo theme customization documentation](https://gohugo.io/getting-started/quick-start/#step-6-customize-the-theme). To test theme customization, it is best to build the site on your local computer (see above).
1039

11-
```
12-
rmarkdown::render_site("source")
13-
```
40+
## Contributors
1441

15-
### Using the RStudio GUI
42+
[List of contributors](https://github.com/inbo/tutorials/graphs/contributors)
1643

17-
First setup the RStudio project
44+
## License
1845

19-
1. Open RStudio
20-
1. Create a new project:
21-
1. _File > New Project > Version Control > Git_
22-
1. Copy the URL in _Repository URL_
23-
1. _Create project_
24-
1. Go to the _Build_ pane
25-
1. Click _More > Configure Build Tools ..._
26-
1. Set the _Site directory_ to `source` and click _OK_
46+
[Creative Commons Attribution](https://creativecommons.org/licenses/by/4.0/) for [content](content) / [MIT License](https://github.com/inbo/tutorials/blob/master/LICENSE) for source code.
2747

28-
When the RStudio project is setup: Go to the _Build_ pane and click _Build Website_.

bwkhab.geojson/BWK

Whitespace-only changes.

config.toml

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
theme = "minimo"
2+
baseURL = "https://inbo.github.io/tutorials/"
3+
languageCode = "en-us"
4+
title = "INBO Tutorials"
5+
6+
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.db$", "\\.csv$", "\\.sqlite$", "\\.geojson$"]
7+
# relativeURLs = true
8+
# canonifyurls = true
9+
10+
# for smart copyright line, leave this blank and check [params.copyright]
11+
copyright = ""
12+
13+
disqusShortname = ""
14+
googleAnalytics = ""
15+
16+
Paginate = 1000
17+
preserveTaxonomyNames = true
18+
19+
enableRobotsTXT = true # generate robots.txt
20+
21+
# Syntax Highlighting ( https://gohugo.io/content-management/syntax-highlighting/ )
22+
pygmentsCodefences = true
23+
pygmentsStyle = "autumn"
24+
25+
enableEmoji = true
26+
27+
# Missing translations will default to this content language
28+
defaultContentLanguage = "en"
29+
30+
[params.info]
31+
description = ""
32+
title404 = "Nothing's here..."
33+
34+
[params.assets]
35+
favicon = "favicon.ico"
36+
customCSS = ["css/custom.css"]
37+
customJS = ["js/custom.js"]
38+
gopher = "" # used in 404 template ( Generator: https://gopherize.me )
39+
40+
[params.copyright]
41+
prefix = ""
42+
holder = "Research Institute for Nature and Forest (INBO)"
43+
startYear = "2018"
44+
suffix = "<a rel='license' href='http://creativecommons.org/licenses/by/4.0/' style='float: right;'><img alt='Creative Commons License' src='https://i.creativecommons.org/l/by/4.0/88x31.png'></a>"
45+
46+
[params.settings]
47+
# date & time format: https://golang.org/pkg/time/
48+
dateFormat = "2006, Jan 02"
49+
listDateFormat = "2006, Jan 02"
50+
archiveDateFormat = "Jan 02"
51+
hideEntryNavigation = ["page"] # boolean / array of sections
52+
hideEntryMeta = ["page"] # boolean / array of sections
53+
showReadingTime = true
54+
showLastmod = true
55+
taxonomyCloudShuffle = false
56+
accentColor = "#c04384"
57+
hideMainMenu = true
58+
59+
[params.sidebar]
60+
enable = true
61+
62+
[params.widgets]
63+
header = ["breadcrumbs"]
64+
homepage = ["recent_posts"] # "recent_posts"
65+
sidebar = ["about", "search", "sidebar_menu", "taxonomy_cloud", "social_menu"]
66+
67+
[params.opengraph.facebook]
68+
admins = [] # array of Facebook IDs
69+
appID = ""
70+
pageID = ""
71+
72+
[params.opengraph.twitter]
73+
page = "" # Twitter page username
74+
75+
[params.seo]
76+
# Title Separator: - – — · • * ⋆ | ~ « » < >
77+
titleSeparator = ""
78+
79+
[params.social]
80+
facebook = "INBOVlaanderen"
81+
github = "inbo"
82+
twitter = "INBOVlaanderen"
83+
84+
[params.comments]
85+
enable = false
86+
87+
# Isso: https://posativ.org/isso/
88+
[params.comments.isso]
89+
enable = false
90+
scriptSrc = "" # "https://isso.example.com/js/embed.min.js"
91+
dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'"
92+
93+
[params.comments.staticman]
94+
enable = false
95+
apiEndpoint = "https://api.staticman.net/v2/entry"
96+
maxDepth = 2
97+
98+
[params.comments.staticman.github]
99+
username = ""
100+
repository = ""
101+
branch = "master"
102+
103+
# Utterances: https://utteranc.es
104+
[params.comments.utterances]
105+
enable = false
106+
issueTerm = "pathname" # pathname / url / title
107+
108+
[params.comments.utterances.github]
109+
username = ""
110+
repository = ""
111+
112+
[params.search]
113+
client = "lunr" # algolia / fuse / lunr
114+
115+
[params.search.algolia]
116+
appId = ""
117+
indexName = ""
118+
searchApiKey = ""
119+
120+
[params.githublink]
121+
GithubEditLink = "https://github.com/inbo/tutorials/edit/master/content/"
122+
GithubContentLink = "https://github.com/inbo/tutorials/blob/master/content/"
123+
124+
[taxonomies]
125+
author = "authors"
126+
category = "categories"
127+
tag = "tags"
128+
129+
[permalinks]
130+
#page = "/:slug/"
131+
#articles = "/posts/:slug/"
132+
#tutorials = "/tutorials/:filename/"
133+
#search = "/:slug/"
134+
#categories = "/categories/"
135+
content = "/:slug/"
136+
137+
[[menu.sidebar]]
138+
name = "Repository"
139+
identifier = "repository"
140+
url = "https://github.com/inbo/tutorials"
141+
weight = 110
142+
143+
[blackfriday]
144+
hrefTargetBlank = true
145+
146+
[languages]
147+
# edit this block for your own language
148+
[languages.en]
149+
lang = "en"
150+
languageName = "English"
151+
weight = 1

content/_index.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Home
3+
menu: sidebar
4+
weight: -100
5+
---
6+
7+
## Introduction
8+
9+
Welcome to the tutorials website of the [Research Institute for Nature and Forest (INBO)](https://www.inbo.be/en). It contains a collection of guides, tutorials and further reading material on the installation, use and development of **(research) software** at our institute.
10+
11+
## Getting started
12+
13+
When this is your first time checking this website, welcome! You are always free to look around a bit, but if you are looking for something specific, the website provides 3 options to search for relevant topics:
14+
15+
- [Categories]({{< relref "/categories/_index.md" >}}): A (limited) set of general categories to classify the tutorials. For example, `installation` for support during installation of software or `r` for tutorials about the R programming language. Click on a category to get the relevant tutorials.
16+
- Tags: Check the cloud of tags listed on each page of the website and pick an item that would be relevant for your topic. By clicking on a specific tag, you will get an overview of the tutorials with this tag
17+
- Search: Type any word in the search form and you will get a dropdown list of the pages which contain the word you are looking for.
18+
19+
## Website menu
20+
21+
Apart from the navigation options explained in the previous section, pages are divided into 3 main section accessible with the menu:
22+
23+
- [Tutorials]({{< relref "/tutorials/_index.md" >}}): The main bulk of pages, providing tutorials on a variety of topics.
24+
- [Articles]({{< relref "/articles/_index.md" >}}): Provides useful background information about topics, links to literature, etc.
25+
- [Installation]({{< relref "/installation/_index.md" >}}): Installation instructions for both system administrators and users
26+
27+
The absence of a more granular menu is a deliberate decision to overcome the requirement to recreate a website menu when new tutorials are written. By using categories and tags, more flexibility is provided. The tags list, categories overview and search options are automatically updated when a new tutorial is added to the website.
28+
29+
## Want to contribute?
30+
31+
Great news! By sharing information, we can effectively help each other. Moreover, a tutorial is useful for your future self as well ;-). Anything that could be useful to your colleagues? Instead of keeping a note or document on your own computer or drive, make it a tutorial and share it. Notice that also links/references to other resources are useful to add, as this will enable others to find these reources.
32+
33+
Check the [_create tutorial_]({{< relref "/create_tutorial/index.md" >}}) page for more information on how to contribute to this website!
34+
35+
## Questions?
36+
37+
If you have any questions, do not hesitate to contact the website maintainers (main contributors listed [here](https://github.com/inbo/tutorials/graphs/contributors)), provide a [new issue](https://github.com/inbo/tutorials/issues/new) if you already have a Github account or just ask the [IT helpdesk](mailto:ict.helpdesk@inbo.be) for more information.
38+
39+

content/articles/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Articles
3+
menu: sidebar
4+
weight: 10
5+
---

0 commit comments

Comments
 (0)