Skip to content

Commit 472f166

Browse files
committed
Merge branch 'spring2019'
2 parents 79bd5ce + 67dcd04 commit 472f166

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+9232
-697
lines changed

_site.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ navbar:
1212
href: outline.html
1313
- text: "Hands-On"
1414
menu:
15-
- text: "Init / Clone / Pull & Push"
15+
- text: "Init Pull & Push"
1616
href: handson.html
17+
- text: "Clone"
18+
href: clone.html
1719
- text: "Branch / Merge / Revert"
1820
href: "handson_branch.html"
1921
- text: "Pull Requests / Remotes"

clone.Rmd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Clone a GitHub Repository"
3+
output:
4+
html_document:
5+
self_contained: false
6+
---
7+
8+
**Using RStudio**, clone some repository. Cloning will pull down the whole repo to your local system. Start with some test repository, maybe this [introduction to R](https://github.com/libjohn/intro2r-2018fall)
9+
10+
### Bring the repo down locally via RStudio
11+
12+
1. Copy GitHub repo URL to clipboard by clicking on the green **Clone or Download** button
13+
14+
- The repo should be at a location like this. `https://github.com/libjohn/intro2r-2018fall`
15+
- This will copy the *git* URL to the clipboard <br><figure>![](images/copy_repo_github.png)
16+
<figcaption>Copy the repo URL</figcaption></figure><br>
17+
18+
1. Launch RStudio and create a *New Project...*
19+
20+
a. From the RStudio menubar: *File > New Project...* > Version Control > Git <br><figure>![](images/project_version_git.png)<figcaption>Paste the GitHub repo URL (from the step above) into the *Repository URL:* field in RStudio</figcaption></figure><br>
21+
a. Create Project
22+
23+

docs/README.html

Lines changed: 105 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
button.code-folding-btn:focus {
8888
outline: none;
8989
}
90+
summary {
91+
display: list-item;
92+
}
9093
</style>
9194

9295

@@ -101,7 +104,6 @@
101104
padding-top: 65px;
102105
margin-top: -65px;
103106
}
104-
105107
.section h2 {
106108
padding-top: 65px;
107109
margin-top: -65px;
@@ -122,6 +124,43 @@
122124
padding-top: 65px;
123125
margin-top: -65px;
124126
}
127+
.dropdown-submenu {
128+
position: relative;
129+
}
130+
.dropdown-submenu>.dropdown-menu {
131+
top: 0;
132+
left: 100%;
133+
margin-top: -6px;
134+
margin-left: -1px;
135+
border-radius: 0 6px 6px 6px;
136+
}
137+
.dropdown-submenu:hover>.dropdown-menu {
138+
display: block;
139+
}
140+
.dropdown-submenu>a:after {
141+
display: block;
142+
content: " ";
143+
float: right;
144+
width: 0;
145+
height: 0;
146+
border-color: transparent;
147+
border-style: solid;
148+
border-width: 5px 0 5px 5px;
149+
border-left-color: #cccccc;
150+
margin-top: 5px;
151+
margin-right: -10px;
152+
}
153+
.dropdown-submenu:hover>a:after {
154+
border-left-color: #ffffff;
155+
}
156+
.dropdown-submenu.pull-left {
157+
float: none;
158+
}
159+
.dropdown-submenu.pull-left>.dropdown-menu {
160+
left: -100%;
161+
margin-left: 10px;
162+
border-radius: 6px 0 6px 6px;
163+
}
125164
</style>
126165

127166
<script>
@@ -142,21 +181,80 @@
142181
});
143182
</script>
144183

145-
146184
<div class="container-fluid main-container">
147185

148186
<!-- tabsets -->
187+
188+
<style type="text/css">
189+
.tabset-dropdown > .nav-tabs {
190+
display: inline-table;
191+
max-height: 500px;
192+
min-height: 44px;
193+
overflow-y: auto;
194+
background: white;
195+
border: 1px solid #ddd;
196+
border-radius: 4px;
197+
}
198+
199+
.tabset-dropdown > .nav-tabs > li.active:before {
200+
content: "";
201+
font-family: 'Glyphicons Halflings';
202+
display: inline-block;
203+
padding: 10px;
204+
border-right: 1px solid #ddd;
205+
}
206+
207+
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
208+
content: "&#xe258;";
209+
border: none;
210+
}
211+
212+
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
213+
content: "";
214+
font-family: 'Glyphicons Halflings';
215+
display: inline-block;
216+
padding: 10px;
217+
border-right: 1px solid #ddd;
218+
}
219+
220+
.tabset-dropdown > .nav-tabs > li.active {
221+
display: block;
222+
}
223+
224+
.tabset-dropdown > .nav-tabs > li > a,
225+
.tabset-dropdown > .nav-tabs > li > a:focus,
226+
.tabset-dropdown > .nav-tabs > li > a:hover {
227+
border: none;
228+
display: inline-block;
229+
border-radius: 4px;
230+
}
231+
232+
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
233+
display: block;
234+
float: none;
235+
}
236+
237+
.tabset-dropdown > .nav-tabs > li {
238+
display: none;
239+
}
240+
</style>
241+
149242
<script>
150243
$(document).ready(function () {
151244
window.buildTabsets("TOC");
152245
});
246+
247+
$(document).ready(function () {
248+
$('.tabset-dropdown > .nav-tabs > li').click(function () {
249+
$(this).parent().toggleClass('nav-tabs-open')
250+
});
251+
});
153252
</script>
154253

155254
<!-- code folding -->
156255

157256

158257

159-
160258
<script>
161259
$(document).ready(function () {
162260

@@ -286,7 +384,10 @@
286384
</a>
287385
<ul class="dropdown-menu" role="menu">
288386
<li>
289-
<a href="handson.html">Init / Clone / Pull &amp; Push</a>
387+
<a href="handson.html">Init Pull &amp; Push</a>
388+
</li>
389+
<li>
390+
<a href="clone.html">Clone</a>
290391
</li>
291392
<li>
292393
<a href="handson_branch.html">Branch / Merge / Revert</a>

0 commit comments

Comments
 (0)