在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sighingnow/jekyll-gitbook开源软件地址:https://github.com/sighingnow/jekyll-gitbook开源编程语言:CSS 43.4%开源软件介绍:Jekyll GitBookMake Jelly site have a GitBook look! DemoLive demo on Github Pages: https://sighingnow.github.io/jekyll-gitbook Why Jekyll with GitBookGitBook 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
is building HTML files locally and then push to Github repository, usually to the 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 without generating and uploading HTML bundle every time when there are changes to the original repo. How to Get StartedThis theme can be used just as other Jekyll themes. Fork this repository and add your markdown posts to the Deploy Locally with Jekyll ServeThis theme can be ran locally using Ruby and Gemfiles. Testing your GitHub Pages site locally with Jekyll - GitHub Full-text searchThe search functionality in jekyll-gitbook theme is powered by the gitbook-plugin-search-pro plugin and is enabled by default. https://sighingnow.github.io/jekyll-gitbook/?q=generated Code highlightThe code highlight style is configurable the following entry in syntax_highlighter_style: colorful The default code highlight style is How to generate TOCThe jekyll-gitbook theme leverages jekyll-toc to generate the Contents for the page.
The TOC feature is not enabled by default. To use the TOC feature, modify the TOC
configuration in toc:
enabled: true
h_min: 1
h_max: 3 Google Analytics, etc.The jekyll-gitboook theme supports embedding the Google Analytics, CNZZ and Application Insights website analytical tools with the following
minimal configuration in tracker:
google_analytics: "<YOUR GOOGLE ANALYTICS KEY, e.g, UA-xxxxxx-x>" Similarly, CNZZ can be added with the following configuration in tracker:
cnzz: "<YOUR CNZZ ANALYTICS KEY, e.g., xxxxxxxx>" Application Insights can be added with the following configuration in tracker:
application_insights: "<YOUR APPLICATION INSIGHTS CONNECTION STRING>" Extra StyleSheet or Javascript elementsYou can add extra CSS or JavaScript references using configuration collections:
Customizing font settingsThe fonts can be customized by modifying the .book.font-family-0 {
font-family: Georgia, serif;
}
.book.font-family-1 {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
} Tips, Warnings and Dangers blocksThe jekyll-gitbook theme supports customized kramdown attributes ( > ##### TIP
>
> This guide is last tested with @napi-rs/canvas^0.1.20, so make sure you have
> this or a similar version after installation.
{: .block-tip } Rendered page can be previewed from https://sighingnow.github.io/jekyll-gitbook/jekyll/2022-06-30-tips_warnings_dangers.html Cover image inside pagesThe jekyll-gitbook theme supports adding a cover image to a specific page by adding
a ---
title: Page with cover image
author: Tao He
date: 2022-05-24
category: Jekyll
layout: post
+ cover: /jekyll-gitbook/dinosaur.gif
--- The effect can be previewed from https://sighingnow.github.io/jekyll-gitbook/jekyll/2022-05-24-page_cover.html LicenseThis work is open sourced under the Apache License, Version 2.0. Copyright 2019 Tao He. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论