Skip to content

Commit

Permalink
back
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkelDe authored Jun 17, 2024
1 parent 2cc0b80 commit 0f29ba7
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/_posts/2019-04-27-why.md
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
38 changes: 38 additions & 0 deletions docs/_posts/2019-04-28-howto.md
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
12 changes: 12 additions & 0 deletions docs/_posts/2019-04-29-license.md
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.

0 comments on commit 0f29ba7

Please sign in to comment.