当前位置: 首页 > 软件库 > Web应用开发 > >

docsy-jekyll

A Jekyll version of the beautiful Docsy!
授权协议 View license
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 太叔栋
操作系统 未知
开源组织
适用人群 未知
 软件概览

Docsy Jekyll Theme

https://raw.githubusercontent.com/vsoch/docsy-jekyll/master/assets/img/docsy-jekyll.png

This is a starter template for a Docsy jekyll theme, basedon the Beautiful Docsy that renders with Hugo. This version is intended fornative deployment on GitHub pages. The original Apache License is included.

Changes

The site is intended for purely documentation, so while the front page banneris useful for business or similar, this author (@vsoch) preferred to havethe main site page go directly to the Documentation view. Postsare still provided via a feed.

Usage

1. Get the code

You can clone the repository right to where you want to host the docs:

git clone https://github.com/vsoch/docsy-jekyll.git docs
cd docs

2. Customize

To edit configuration values, customize the _config.yml.To add pages, write them into the pages folder.You define urls based on the permalink attribute in your pages,and then add them to the navigation by adding to the content of _data/toc.myl.The top navigation is controlled by _data/navigation.yml

3. Options

Most of the configuration values in the _config.yml are self explanatory,and for more details, see the getting started pagerendered on the site.

4. Serve

Depending on how you installed jekyll:

jekyll serve
# or
bundle exec jekyll serve

NOTE: If the above serve command throws an error saying require': cannot load such file -- webrick (LoadError) try to run bundle add webrick to automatically add the webrick gem to your Gemfile, or manually add gem "webrick" line to the Gemfile and then run the serve command again.

5. Run as a container in dev or prod

Software Dependencies

If you want to run docsy jekyll via a container for development (dev) or production (prod) you can use containers. This approach requires installing docker-ce and docker-compose.

Customization

Note that the docker-compose.yml file is using the jekyll/jekyll:3.8 image. If you want to make your build more reproducible, you can specify a particular version for jekyll (tag). Note that at the development time of writing this documentation, the latest was tag 4.0.0,and it had a bug that prevented the server from deploying.

If you are deploying a container to production, you should remove the line tomount the bundles directory to the host in the docker-compose.yml. Change:

volumes: 
      - "./:/srv/jekyll"
      - "./vendor/bundle:/usr/local/bundle"
      # remove "./vendor/bundle:/usr/local/bundle" volume when deploying in production

to:

volumes: 
      - "./:/srv/jekyll"

This additional volume is optimal for development so you can cache the bundle dependencies,but should be removed for production.

Start Container

Once your docker-compose to download the base container and bring up the server:

docker-compose up -d

You can then open your browser to http://localhost:4000to see the server running.

Node : changes baseurl: "" in _config.yml when you are running in local and prod according to the requirement.

  • 错误分析: 在运行 jekyll serve 的时候 问题1: {% highlight null %} Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configure

  • 前言 我的个人博客地址:Hu Haoyu’s Blog,欢迎参观! In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog-aware static site generator. Jekyll makes it easy to create site-wide head

  • 记录以下网址 http://jekyllcn.com/docs/home/

  • 安装jekyll 更新ruby curl --progress http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz | tar xz cd ruby-2.1.2 ./configure make make install yum install openssl yum install ruby-devel 安装rubygems w

相关阅读

相关文章

相关问答

相关文档