April 2015
Create a new lesson for Software Carpentry
https://github.com/swcarpentry/lesson-template
https://github.com/swcarpentry/lesson-example
lesson-template
lesson-example
gh-pages
branchlesson-template
has CSS, tools, etc. that may be updated centrallylesson-example
is explanations that shouldn't be merged into lessons over and over againgh-pages
branchlesson-template
https://github.com/swcarpentry/lesson-template
as the source URL
$ git clone -b gh-pages git@github.com:user/some-lesson.git
-b gh-pages
to put it in the gh-pages
branchmake check
to check conformance to templatemake preview
to create HTMLgit add *.html
git commit -m "Adding HTML"
$ git push origin gh-pages
http://user.github.io/some-lesson/
https://github.com/swcarpentry/lesson-template
https://github.com/swcarpentry/lesson-example
$ git remote add template https://github.com/swcarpentry/lesson-template.git $ git pull template gh-pages
template
rather than upstream
You can use any source format you want
as long as (a) it can be diffed and merged
and (b) the Makefile translates it into Markdown
that conforms to our style guide
Sub-directories for template files
css
: style filesimg
: stock images (e.g., logos)js
: Javascriptdeck.js
: Javascript for slideshowsSub-directories for formatting
_layouts
: page templates_includes
: included HTML snippetsworkshop-template
Sub-directory for tools
check
validates formattingMakefile
: do common operations
make
: Display available commandsmake check
: Validate formattingmake pages
: Build pagesmake settings
: Show variables and settingsmake clean
: Clean up junk filesindex.md
: lesson's home pagediscussion.md
: general discussion and pointersinstructors.md
: instructor's guidereference.md
: reference guide for learnersnn-topic.md
: topics within lesson
01-select.md
These are for instructors and offline reference,
not to be shown to learners during teaching
Sub-directories for lesson files
code
: source codedata
: data filesfig
: figureslesson-template
and send pull requests as usual
Issues related to workflow are (at least) as welcome
as issues related to content
Thank you for listening
/