Skip to content

Commit faf5b3e

Browse files
authored
Merge pull request #4 from gdiminneapolis/windowize
Windowize
2 parents 1675f16 + e44a66c commit faf5b3e

File tree

5 files changed

+33
-16
lines changed

5 files changed

+33
-16
lines changed

DETAILS-README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
## Creating a new remote repository
3+
4+
* On the Mac, run `hub create`. If you don't have `hub` installed, install it.
5+
6+
* Otherwise follow the direction at Github for [how to create a repository](https://help.github.com/articles/creating-a-new-repository/).

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ installed:
3333
gem install bundler
3434
```
3535

36-
* [Hub](https://github.com/github/hub#installation)
36+
* [Hub](https://github.com/github/hub#installation) if you are on a Mac
3737

3838

3939

@@ -49,16 +49,13 @@ gem install bundler
4949

5050
5. Change into the new directory.
5151

52-
7. Run the setup script: `./setup.sh`
52+
7. Run the setup script: `./setup.sh` on a Mac or Linux. We have to do something else on Windows.
5353

54-
8. Create your github repository for this repo: `hub create`. If you
55-
don't have `hub` installed, install it. If you can't, follow the
56-
direction at Github for
57-
[how to create a repository](https://help.github.com/articles/creating-a-new-repository/).
54+
8. Create your github repository for this repo.
5855

59-
9. Do the initial git dance: `git add --all && git commit -m "initial commit" && git push -u origin master`
56+
9. Add and commit all the files to master. Push to the remote when satisfied.
6057

61-
10. Right now, create a new branch for working: `git checkout -b dev && git push -u origin dev`
58+
10. Right now, create a new branch for working on the slides and push that to the remote as well.
6259

6360
### Keep Git Up to Date
6461

@@ -105,6 +102,8 @@ doing this, discuss this with at the organization.
105102

106103
## Spin up the Jekyll Server
107104

105+
**NOTE** that the jekyll `--watch` option does **not** work on Windows. We have to do something else to make a convenient watching/viewing-as-you-save-changes thing.
106+
108107
Everything should be good to go, now, and you can start up the Jekyll
109108
development server to show the slides while you create them.
110109

@@ -140,7 +139,7 @@ For example, the introduction slide is:
140139
`_slides/99.99.fin.html`.
141140

142141
A very good practice is to leave gaps in the sequence number to make
143-
it easy to rearrange slides if you want, or insert conent as you'd
142+
it easy to rearrange slides if you want, or insert content as you'd
144143
like.
145144

146145
If you need more than 100 sections or more than 100 slides per
@@ -308,7 +307,7 @@ Non-commercial 3.0 Unported (CC BY-NC 3.0)
308307

309308
* The
310309
[Jekyll team](https://github.com/jekyll/jekyll/graphs/contributors),
311-
especiall parkr
310+
especially parkr
312311

313312
* [Hakim El Hattab](https://github.com/hakimel), creator of
314313
`reveal.js`

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ require 'erb'
33

44
desc "jekyll server with full build"
55
task :server do |t|
6-
sh "bin/jekyll serve --port #{ENV["JEKYLL_PORT"]}"
6+
sh "bundle exec jekyll serve --port #{ENV["JEKYLL_PORT"]}"
77
end
88
task :default => :server
99

1010
desc "jekyll server with incremental build"
1111
task :server_inc do |t|
12-
sh "bin/jekyll serve --incremental --port #{ENV["JEKYLL_PORT"]}"
12+
sh "bundle exec jekyll serve --incremental --port #{ENV["JEKYLL_PORT"]}"
1313
end
1414

1515
desc "build and push to staging"
@@ -19,7 +19,7 @@ namespace :stage do
1919
desc "build staging"
2020
task :build do |t|
2121
puts "Staging baseurl: #{jekyll_staging_config["baseurl"]}"
22-
sh "bin/jekyll build --config=_config.yml,_staging.yml"
22+
sh "bundle exec jekyll build --config=_config.yml,_staging.yml"
2323
end
2424
desc "push staging"
2525
task :push do |t|
@@ -38,7 +38,7 @@ task :publish => ['publish:build', 'publish:push']
3838
namespace :publish do
3939
desc "build production"
4040
task :build do |t|
41-
sh "bin/jekyll build --config=_config.yml,_publish.yml"
41+
sh "bundle exec jekyll build --config=_config.yml,_publish.yml"
4242
end
4343
desc "push to production"
4444
task :push do |t|

WINDOWS-README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Instructions for Windows Users
2+
3+
These are additional instructions for those of you who run on Windows, and the commands don't quite work.
4+
5+
## Creating the new slide repository on Github
6+
7+
While Mac users get to work with `hub`, Windows users have to do things the old-fashioned way by creating the empty repository on GitHub and setting the remote origin by hand.
8+
9+
GUI tools such as Github Desktop for Windows or Sourcetree can help if you are uncomfortable using the GitBash shell.
10+
11+
See [Create a Repo](https://help.github.com/articles/create-a-repo/) on GitHub for help with creating the remote repository.

_config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ contact:
1818
github: "gdiminneapolis"
1919

2020

21-
reveal_path: "/reveal.js"
22-
2321
# There are a handful of styles available with reveal. They can be found in the
2422
# reveal.js/css/themes folder, and include:
2523
#
@@ -35,6 +33,8 @@ style: gdidefault
3533
collections:
3634
- slides
3735

36+
# If you create other files or folders that you do NOT want as part of the slide presentation
37+
# include them in this list.
3838
exclude:
3939
- bin
4040
- CONTRIBUTOR_COVENANT.md
@@ -46,5 +46,6 @@ exclude:
4646
- README.md
4747

4848
# Don't change these. Change values in _staging.yml and _publish.yml appropriately.
49+
reveal_path: "/reveal.js"
4950
baseurl: ""
5051
url: ""

0 commit comments

Comments
 (0)