Giter Site home page Giter Site logo

test-carpentries's Introduction

ccmcr19-workshop-build-your-lesson

Workshop "How to make a Carpentries-style lesson" at CarpentryConnect 2019 in Manchester

Requirements

  • GitHub account
  • Git
  • Python
  • Jekyll (may be omitted for the very beginning)

Setup

See details here.

Import the repository with the lesson template

This is done using GitHub's importer.

The URL of the repository to import is https://github.com/carpentries/styles.

We will assume that your username is user and the name of the new lesson is your-lesson. You will need to replace them by their actual values.

Clone the repository and specify the location of the template

git clone -b gh-pages https://github.com/user/your-lesson.git
cd your-lesson
git remote add template https://github.com/carpentries/styles.git
git config --local remote.template.tagOpt --no-tags
git checkout gh-pages

Autogenerate further files

./bin/lesson_initialize.py

Check the result

You can now call git status to check which files have been created.

If you have installed Jekyll, call

make serve

and follow instructions to be able to view the lesson website locally.

Edit _config.yml

Specify some parameters, as instructed in this file. If you have Jekyll, check the website locally to check that the changes have been applied. You can check that all links on the main page are also working.

Commit and push

Using Git, commit all newly generated files and push commit to GitHub.

This is also a suitable moment to look at the content of those files to get an idea about their purpose and find out how they are rendered on the lesson website. Additional information about the file structure could be found here.

Check the online version of the lesson website

  • Check the "settings" menu of the lesson repository
  • Check that the lesson website is available
  • Specify the description and the URL of the website on the repository page
  • Specify repository topics

Make changes using GitHub web-interface

Use "Improve this page link" to do this.

Synchronise local copy

git pull

Check the lesson

make lesson-check

Analyse report and fix problems

Fix URL of the lesson issue tracker

What next:

  • Main debugging technique: if changes do not appear, use make serve and analyse error messages

  • Look for more FIXME items: grep -R --include=*.md FIXME *

  • Look at Markdown formatting.

  • Eventually may need to update style using the remote template.

test-carpentries's People

Contributors

alex-konovalov 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.