Skip to content

Instantly share code, notes, and snippets.

@harasou
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harasou/6f416781d0376f4d4a74 to your computer and use it in GitHub Desktop.
Save harasou/6f416781d0376f4d4a74 to your computer and use it in GitHub Desktop.
markdown + remark.js + gh-pages でプレゼン資料を公開する ref: http://qiita.com/harasou@github/items/1fa3cca6ac1ef175c876
# サンプルをダウンロード
git clone git@github.com:harasou/slides.git
# ブラウザで開く
open slides/sample.html
# ブラウザが Google Chrome の場合
open -a "Google Chrome" --args --allow-file-access-from-files $(pwd)/slides/sample.html
file:///<ダウンロードしたディレクトリ>/sample.html?apache_module.md
# サンプルをダウンロード
git clone git@github.com:harasou/slides.git
# ブラウザで開く
open slides/sample.html
# ブラウザが Google Chrome の場合
open -a "Google Chrome" --args --allow-file-access-from-files $(pwd)/slides/sample.html
file:///<ダウンロードしたディレクトリ>/sample.html?apache_module.md
git clone git@github.com:harasou/slides.git
cd slides
git checkout --orphan gh-pages
mkdir slides
vim index.html slides/remarkjs.md
git add index.html slides/remarkjs.md
git commit -m "..."
git push origin gh-pages
<DOCTYPE html>
<html>
<head><title>Presentation</title></head>
<body>
<script src="http://gnab.github.io/remark/downloads/remark-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
var slideshow = remark.create({sourceUrl: "sample.md"});
</script>
</body>
</html>

slied 1

  • 1ページ目

slide 2

  • 2ページ目
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment