Giter Club home page Giter Club logo

general's Introduction

============================ #Software Carpentry - Open Science Grid (SWC-OSG) Workshop#

We work directly on the gh-pages as it is useful for the website rendering. GitHub renders the website from the HTML and markdown files kept under gh-pages. For example, the HTML and markdown files of this branch are rendered at the url: CurrentWebPage(http://swc-osg-workshop.github.io/general/). Since we want all the edits are displayed on the webpage and available to the participants, we want to directly work on gh-pages. This is the standard practice recomended by the software carpentry.

The general/gh-pages repo contains the basic learning modules and necessary tools to set up new websites for the up-comping worshops. In this repo, we will update all the new materials and make generic changes to the woskshop front page.

The sections below explain:

  • How to set up the git repo on your local machine.
  • How do we edit the course materails.
  • How do we edit the workshop front page.
  • How do we create a new repo for a new workshop.

Table of Contents

##Getting Started##

Now let us see how to make a copy of the existing repo on your locale machine. In your local desktop or laptop, clone the repo

~~~
 git clone https://github.com/SWC-OSG-Workshop/general.git
~~~

and create new branch named gh-pages.

~~~
 git checkout -b gh-pages
~~~

Now pull the content repository's gh-pages branch into your desktop repository:

~~~
 git pull origin gh-pages
~~~

##Lesson Material##

The current material is in the directories under novice. The shell and Git materials are written in Markdown, while the Python and SQL use the IPython Notebook.

The material related to OSG is in the directory novice/DHTC and are written in Markdown. Once finished editing the material at novice/DHTC/filename.md, push the content to the repository:

~~~
 git add filename.md
 git commit -m "some message here about the changes " 
 git push origin gh-pages
~~~

##Workshop Front Page##

Editing workshop front page involves editing html pages. Two html files are of primary interest to us. One is the "index.html" and other is "_includes/setup.html".

Edit index.html to make any changes to the workshop home page. In particular, the variables such as venue, date etc., in the page's header, as these are used to update the main website, and make sure the website-content is correct. You can use the script ./bin/swc_index_validator.py to check index.html for problems by running the command make check.

Edit _includes/setup.html to provide software installation instructions for the workshop attendees.

Once finished editing the index.html, push content to the repository:

     git add index.html
     git commit -m "some message here about the changes " 
     git push origin gh-pages

As soon as the repo has been pushed to GitHub, GitHub will render the pages at the url(http://swc-osg-workshop.github.io/general)

##New Repo for a New Workshop##

As soon as the workshop date is finalized, create a repo by the name YYYY-MM-DD, where YYYY is the year, MM is the month and DD is the date of the workshop. The new repo - YYYY-MM-DD should have the materials for the workshop. The required materials already exist in general repo. Therefore we copy the course material and web content from the general repo. This can done in your local Desktop or Laptop, type the followings

 git clone https://github.com/SWC-OSG-Workshop/YYYY-MM-DD.git
 cd YYYY-MM-DD 
 git checkout -b gh-pages 
 git remote add general https://github.com/SWC-OSG-Workshop/general.git 
 git pull general gh-pages 
 git remote remove general 

Now you will have to change the workshop front page in the current repo YYYY-MM-DD.git as outlined in the previous section.

general's People

Watchers

 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.