Skip to content

Commit

Permalink
Rebuilt the chinese pages to use the larger link area in the footer.
Browse files Browse the repository at this point in the history
Updated the build process so that both languages can be built at the same time, and the README.md to reflect this.
  • Loading branch information
samjewell committed Jan 7, 2015
1 parent b55a637 commit 6abe6f6
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 26 deletions.
10 changes: 7 additions & 3 deletions guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ _First, make sure once you've cloned `git-it` that you run `npm-install` to fetc

Edit `.html` files in /raw-content.

### To Rebuild Pages
### To Rebuild all pages

In `/git-it` in terminal, run `npm run build`.

#### Traditional Chinese
#### English only

To build the Chinese version, run `npm run build-zhtw`.
In `/git-it` in terminal, run `npm run build-english`.

#### Traditional Chinese only

In `/git-it` in terminal, run `npm run build-zhtw`.

### To Edit Styles and Layouts

Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/branches_arent_just_for_birds.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="forks_and_clones.html">forks and clones</a>
<a href="forks_and_clones.html" class="u-inline-block">forks and clones
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="its_a_small_world.html">it&#x27;s a small world</a>
<a href="its_a_small_world.html" class="u-inline-block">it&#x27;s a small world
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/commit_to_it.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="repository.html">repository</a>
<a href="repository.html" class="u-inline-block">repository
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="githubbin.html">GitHubbin</a>
<a href="githubbin.html" class="u-inline-block">GitHubbin
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/forks_and_clones.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="remote_control.html">remote control</a>
<a href="remote_control.html" class="u-inline-block">remote control
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="branches_arent_just_for_birds.html">branches aren&#x27;t just for birds</a>
<a href="branches_arent_just_for_birds.html" class="u-inline-block">branches aren&#x27;t just for birds
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/get_git.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="../index-zhtw.html">All Challenges</a>
<a href="../index-zhtw.html" class="u-inline-block">All Challenges
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="repository.html">repository</a>
<a href="repository.html" class="u-inline-block">repository
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/githubbin.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ <h4>GitHub &amp; Git config usernames do not match</h4>

<div class="prenext">
<div class="pre lef meta">
<a href="commit_to_it.html">commit to it</a>
<a href="commit_to_it.html" class="u-inline-block">commit to it
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="remote_control.html">remote control</a>
<a href="remote_control.html" class="u-inline-block">remote control
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/its_a_small_world.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="branches_arent_just_for_birds.html">branches aren&#x27;t just for birds</a>
<a href="branches_arent_just_for_birds.html" class="u-inline-block">branches aren&#x27;t just for birds
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="pull_never_out_of_date.html">pull never out of date</a>
<a href="pull_never_out_of_date.html" class="u-inline-block">pull never out of date
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/merge_tada.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="requesting_you_pull_please.html">requesting you pull please</a>
<a href="requesting_you_pull_please.html" class="u-inline-block">requesting you pull please
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="../index-zhtw.html">Done!</a>
<a href="../index-zhtw.html" class="u-inline-block">Done!
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/pull_never_out_of_date.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="its_a_small_world.html">it&#x27;s a small world</a>
<a href="its_a_small_world.html" class="u-inline-block">it&#x27;s a small world
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="requesting_you_pull_please.html">requesting you pull please</a>
<a href="requesting_you_pull_please.html" class="u-inline-block">requesting you pull please
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/remote_control.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="githubbin.html">GitHubbin</a>
<a href="githubbin.html" class="u-inline-block">GitHubbin
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="forks_and_clones.html">forks and clones</a>
<a href="forks_and_clones.html" class="u-inline-block">forks and clones
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/repository.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ <h2>&#x6487;&#x6B65;</h2>

<div class="prenext">
<div class="pre lef meta">
<a href="get_git.html">get git</a>
<a href="get_git.html" class="u-inline-block">get git
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="commit_to_it.html">commit to it</a>
<a href="commit_to_it.html" class="u-inline-block">commit to it
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
6 changes: 4 additions & 2 deletions guide/challenges-zhtw/requesting_you_pull_please.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ <h3>&#x524D;&#x5F80;&#x4E0B;&#x4E00;&#x95DC;&#xFF1A;</h3><code>git-it</code>

<div class="prenext">
<div class="pre lef meta">
<a href="pull_never_out_of_date.html">pull never out of date</a>
<a href="pull_never_out_of_date.html" class="u-inline-block">pull never out of date
<div></div>
</a>
</div>
<div class="next tar right meta">
<a href="merge_tada.html">merge tada</a>
<a href="merge_tada.html" class="u-inline-block">merge tada
<div></div>
</a>
</div>
</div>
<footer>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"bin": "./git-it.js",
"scripts": {
"build": "node guide/buildpages.js",
"build": "node guide/buildpages.js && node guide/buildpages.js zhtw",
"build-english": "node guide/buildpages.js",
"build-zhtw": "node guide/buildpages.js zhtw",
"copy-guide": "cp -r ./guide ./.guide",
"git-co": "git checkout gh-pages && git reset --hard origin/gh-pages",
Expand Down

0 comments on commit 6abe6f6

Please sign in to comment.