-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Why Jekyll with GitBook | ||
author: Tao He | ||
date: 2019-04-27 | ||
category: Jekyll | ||
layout: post | ||
--- | ||
|
||
GitBook is an amazing frontend style to present and organize contents (such as book chapters | ||
and blogs) on Web. The typical to deploy GitBook at [Github Pages][1] | ||
is building HTML files locally and then push to Github repository, usually to the `gh-pages` | ||
branch. However, it's quite annoying to repeat such workload and make it hard for people do | ||
version control via git for when there are generated HTML files to be staged in and out. | ||
|
||
This theme takes style definition out of generated GitBook site and provided the template | ||
for Jekyll to rendering markdown documents to HTML, thus the whole site can be deployed | ||
to [Github Pages][1] without generating and uploading HTML bundle every time when there are | ||
changes to the original repository. | ||
|
||
[1]: https://pages.github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: How to Get Started | ||
author: Tao He | ||
date: 2019-04-28 | ||
category: Jekyll | ||
layout: post | ||
--- | ||
|
||
The jekyll-gitbook theme can be used just as other [Jekyll themes][3] and | ||
support [remote theme][2] on [Github Pages][1], see [the official guide][4] | ||
as well. | ||
|
||
You can introduce this jekyll theme into your own site by either | ||
|
||
- [Fork][5] this repository and add your markdown posts to the `_posts` folder, then | ||
push to your own Github repository. | ||
- Use as a remote theme in your [`_config.yml`][6](just like what we do for this | ||
site itself), | ||
|
||
```yaml | ||
# Configurations | ||
title: Jekyll Gitbook | ||
longtitle: Jekyll Gitbook | ||
|
||
remote_theme: sighingnow/jekyll-gitbook | ||
``` | ||
> ##### TIP | ||
> | ||
> No need to push generated HTML bundle. | ||
{: .block-tip } | ||
[1]: https://pages.github.com | ||
[2]: https://github.com/sighingnow/jekyll-gitbook/fork | ||
[3]: https://pages.github.com/themes | ||
[4]: https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/adding-a-theme-to-your-github-pages-site-using-jekyll | ||
[5]: https://github.com/sighingnow/jekyll-gitbook/fork | ||
[6]: https://github.com/sighingnow/jekyll-gitbook/blob/master/_config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: License | ||
author: Tao He | ||
date: 2019-04-29 | ||
category: Jekyll | ||
layout: post | ||
--- | ||
|
||
This work is open sourced under the Apache License, Version 2.0, using the | ||
same license as the original [GitBook](https://github.com/GitbookIO/gitbook) repository. | ||
|
||
Copyright 2019 Tao He. |