Skip to content

Commit

Permalink
Merge pull request #287 from github/no-more-includes-for-slides
Browse files Browse the repository at this point in the history
Deprecate `include` for all slide panels in decks
  • Loading branch information
Jordan McCullough committed Dec 29, 2014
2 parents 7ce2b4a + c3886e2 commit 0712187
Show file tree
Hide file tree
Showing 10 changed files with 976 additions and 268 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,27 @@ We know that many of the users of this repository are just focused on getting th

## Contribute

We’re eager to have your help in improving this kit. If you have an idea for a change, start by opening a new [Issue](https://github.com/github/training-kit/issues) so we can discuss and help guide your contribution to the right location. If you have corrections or kit contributions, we'd be glad to receive them via a [Pull Request](https://help.github.com/articles/using-pull-requests). For kit contributions, we ask you to share in our mindset of minimalism. We aim to keep the workbook and slides a synchronized pair.
We’re eager to have your help in improving this kit. If you have an idea for a change, start by opening a new [Issue](https://github.com/github/training-kit/issues) so we can discuss and help guide your contribution to the right location. If you have corrections or kit contributions, we'd be glad to receive them via a [Pull Request](https://help.github.com/articles/using-pull-requests). For kit contributions, we ask you to share in our mindset of minimalism.

The educational content exists in two top level directories:
The slides align with the [Foundations](), [Intermediate](), and [Advanced]() classes delivered by the GitHub Training team.

1. [`slides`](https://github.com/github/training-kit/tree/master/slides)
2. [`workbooks`](https://github.com/github/training-kit/tree/master/workbooks)
The three class' slides reside at top-level directories:

- [`foundations/`](https://github.com/github/training-kit/tree/master/foundations)
- [`intermediate/`](https://github.com/github/training-kit/tree/master/intermediate)
- [`advanced/`](https://github.com/github/training-kit/tree/master/advanced)


## File Format

The majority of the site materials are written in [Markdown](http://whatismarkdown.com), a [lightweight markup language](http://en.wikipedia.org/wiki/Lightweight_markup_language) supported in the GitHub web application user interface. There is a syntax guide to the original [Markdown format](http://daringfireball.net/projects/markdown/syntax) and also [GitHub Flavored Markdown](http://github.github.com/github-flavored-markdown/). This repository is based on [Hydeslides](https://github.com/jordanmccullough/HydeSlides). That project offers additional information on the file and directory structure.
The class materials are written in [Markdown](http://whatismarkdown.com), a [lightweight markup language](http://en.wikipedia.org/wiki/Lightweight_markup_language) supported in the GitHub web application user interface. There is a syntax guide to the original [Markdown format](http://daringfireball.net/projects/markdown/syntax) and also [GitHub Flavored Markdown](http://github.github.com/github-flavored-markdown/).

The class material content possess two specialized uses of Markdown for slide-like rendering and formatting:

- Full-screen slides are preceded with a `---` and followed by `---`
- Step-by-step *lab* sections are wrapped with `{% capture lab %}` and `{% endcapture %}{% include lab %}`

This repository is based on [Hydeslides](https://github.com/jordanmccullough/HydeSlides). That project offers additional information on the file and directory structure.

## Build

Expand Down
6 changes: 0 additions & 6 deletions _includes/slide-section

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/svg

This file was deleted.

11 changes: 8 additions & 3 deletions _javascript/curriculum.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,14 @@ $(function(){
});

function updateSlideSize(){
var w = window.innerWidth;
var h = window.innerHeight;
$(".slide").css("height", h);
var h = window.innerHeight,
even = $("hr:even");

even.each(function(index){
$(this).nextUntil("hr").wrapAll("<div class='slide'><div class='alignment'></div>");
});

$(".slide").css("height", h + "px");
}

//Time toggle keybinding
Expand Down
3 changes: 3 additions & 0 deletions _stylesheets/curriculum.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ table{
opacity: .5;
}

&>hr{
display: none;
}

.slide{
width: 100%;
Expand Down
114 changes: 76 additions & 38 deletions advanced/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ redirect_from:
- ../workbooks/github-advanced.html
---

{% capture slide %}
---

## Understanding Git, navigating history
{% endcapture %}{% include slide-section %}

{% capture slide %}
---

---

![Git data structure](../assets/diagrams/commit-data-structure.svg)
{% endcapture %}{% include slide-section %}

{% capture slide %}
---

---

![Commit DAG](../assets/diagrams/commit-dag.svg)
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Understand the way Git preserves history and data objects
Expand Down Expand Up @@ -82,9 +88,11 @@ $ git log --oneline --left-right master...other
<iframe src="//player.vimeo.com/video/95811891" width="500" height="350" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>


{% capture slide %}
---

## Collaborating on change & releases
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Utilize the command line for branching strategies
Expand Down Expand Up @@ -158,9 +166,11 @@ $ git push origin :[tag-name-to-delete]



{% capture slide %}
---

## Ignoring & cleaning up files
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Setup ignore patterns to prevent accidental versioning
Expand Down Expand Up @@ -209,9 +219,11 @@ $ git clean -fx
### Video
<iframe src="//player.vimeo.com/video/99804597" width="500" height="350" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

{% capture slide %}
---

## Mastering shortcuts & efficiencies
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Use built-in, time-saving command shortcuts for committing and branch switching
Expand Down Expand Up @@ -283,9 +295,11 @@ $ git config rerere.enable true



{% capture slide %}
---

## Capturing pieces of history
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Capture select commits and generate new history on separate branches
Expand Down Expand Up @@ -313,30 +327,42 @@ git checkout [commit] -- [path]



{% capture slide %}
---

## Rewriting and crafting history
{% endcapture %}{% include slide-section %}

{% capture slide %}
---

---

![Rebase](../assets/diagrams/rebase-01.svg)
{% endcapture %}{% include slide-section %}

{% capture slide %}
---

---

![Rebase](../assets/diagrams/rebase-02.svg)
{% endcapture %}{% include slide-section %}

{% capture slide %}
---

---

![Rebase](../assets/diagrams/rebase-03.svg)
{% endcapture %}{% include slide-section %}

---


---

{% capture slide %}
![Rebase](../assets/diagrams/rebase-interactive-01.svg)
{% endcapture %}{% include slide-section %}

{% capture slide %}
---

---

![Rebase](../assets/diagrams/rebase-interactive-02.svg)
{% endcapture %}{% include slide-section %}

---


{% capture lab %}
Expand Down Expand Up @@ -396,9 +422,11 @@ $ git rebase -i --autosquash [ref]



{% capture slide %}
---

## Reviewing & synchronizing
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Review GitHub pull requests from the command line
Expand Down Expand Up @@ -479,9 +507,11 @@ $ git config --add remote.[upstream].fetch "+refs/pull/*/head:refs/remotes/[upst



{% capture slide %}
---

## Filtering histories & externalizing dependencies
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Separate versioned content in a repository into a separate one
Expand Down Expand Up @@ -524,9 +554,11 @@ $ git submodule update --init --recursive



{% capture slide %}
---

## Signing work
{% endcapture %}{% include slide-section %}

---

{% capture lab %}
1. Use a GPG key to sign a specific commit
Expand Down Expand Up @@ -571,9 +603,11 @@ $ git tag -v [tag-name]
{% capture slide %}
---
## Using GitHub CLI and the API
{% endcapture %}{% include slide-section %}
---
{% capture lab %}
1. Create a GitHub (public or private) repository from the command line
Expand Down Expand Up @@ -625,9 +659,11 @@ $ curl -n <URL>
There are a number of libraries for interfacing with the GitHub API, all of which are available at [octokit.github.io](http://octokit.github.io/)
{% capture slide %}
---
## Diff & merge tool
{% endcapture %}{% include slide-section %}
---
{% capture lab %}
1. Setup a preferred visual tool for diff and merge operations
Expand Down Expand Up @@ -690,9 +726,11 @@ A sample `.gitconfig` file:
{% capture slide %}
---
## Additional resources
{% endcapture %}{% include slide-section %}
---
### Details
This course covers many advanced uses of Git and GitHub, and yet there is still more to explore. We've included some of the most useful resources for our students with insatiable appetites.
Expand Down
Loading

0 comments on commit 0712187

Please sign in to comment.