Code Monkey home page Code Monkey logo

test_jekyll's Introduction

test_jekyll

Jekyll + GitHub Pages の動作検証用リポジトリ

Prerequisites

Rubyの3系を使うとwebrickが読み込めないエラーが出る。依存関係を更新する回避策もあるが、現状はJekyllデフォルトのGemfileは更新せず2系で動かすことを想定している。参考

Getting started

1) 依存ライブラリのインストール

bundle install

2) 開発サーバーを起動

bundle exec jekyll serve

起動後は http://127.0.0.1:4000/test_jekyll/ でアクセスできる

Release

1) PRを作成する

2) レビューを依頼し、approveをもらう

3) マージする

Create new page

1) markdownファイルを作成する

ファイル名の例:hello.markdown

ファイル内容の例:

---
layout: page
title: Hello
permalink: /hello/
---

## Where does it come from?

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.

layoutは基本的にpageを使用すること

2) ヘッダー内のリンク一覧を更新する

_config.ymlを開き、header_pagesを更新する

例:

header_pages:
  - index.markdown
  - hello.markdown

Update dependencies

ローカル環境ではgithub-pagesGemを利用している。実際にGitHubで使用されるバージョンはDependency versionsに記載されているので、時々確認して古くなったらGemfileを修正すること。

List dependencies

bundle exec github-pages versions

References

test_jekyll's People

Contributors

is2ei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.