Giter VIP home page Giter VIP logo

ge013_tilastot_ja_analyysit_qgisilla's Introduction

Course template

This is a template repository for creating new courses on GitHub.

Repository configuration

After creating a new repository from this template, two steps are required to publish the course materials online.

First, add a new repository secret to allow GitHub to automatically render and commit the materials. In order to do this, you need to have a GitHub access token with repo scope. After generating an access token, add a new repository secret in the newly created repository by clicking Settings - Secrets - New repository secret. Create a new secret with the name ACCESS_TOKEN, paste in your access token to the value field and click Add secret.

Second, publish the new repository on GitHub pages. In the new repository, click on Settings - Pages. Under the Source section, Select the main branch, choose the /docs root directory, and click Save. GitHub will provide you with an URL where the course materials are automatically published after rendering.

Editing content

The course materials are written using R Markdown and rendered to HTML using Bookdown. Editing the .Rmd files triggers a GitHub workflow that renders the materials to the docs/ directory. See the Bookdown documentation for instructions on Rmd syntax.

You can also render locally with Docker using the render.sh (render.ps1 on Windows) script. For Windows, you may need to enable script support first. Open Powershell as an administrator and run the command Set-ExecutionPolicy RemoteSigned.

Rendering

The index.Rmd file is a special file that always gets rendered first Other Rmd files get rendered in alphabetic order to separate pages. Use the YAML header section (separated by ---) of index.Rmd to define a author, title, and abstract for the materials.

The HTML is rendered using custom HTML and CSS templates defined in the index.Rmd YAML header. By default, these are src/custom.html and src/custom.css. Edit the template files to change the layout and appearance of the output.

Always preview the affect of changes to template files before committing changes. This can be done by rendering the output HTML locally using render.sh. After rendering, navigate to the out directory, start a http server (python -m http.server), and open http://localhost:8000.

ge013_tilastot_ja_analyysit_qgisilla's People

Contributors

juhoervasti avatar mmalmari avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.