Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub PagesでReveal.js製スライドを公開する方法を知っている #1

Closed
ftnext opened this issue Jan 10, 2021 · 2 comments

Comments

@ftnext
Copy link
Owner

ftnext commented Jan 10, 2021

No description provided.

@ftnext
Copy link
Owner Author

ftnext commented Jan 10, 2021

Reveal.jsのexampleのプレゼンテーションをGitHub Pagesでホストできた
https://ftnext.github.io/2021_slides/setup/practice.html

参考:https://medium.com/@martinomensio/how-to-host-reveal-js-slides-on-github-pages-and-have-a-tidy-repository-1a363944c38d

  • git submodule add で reveal.js のリポジトリを取得
  • reveal.jsの読み込みをリポジトリ内に変更する(cssやjsの読み込み)
# gh-pages ブランチにsubmoduleとしてcommitした
$ cd docs/
$ git submodule add https://github.com/hakimel/reveal.js.git
$ cd reveal.js/
$ git checkout tags/4.1.0

リリース手順

to have the “nice and clean” master and the “messy and complete” gh-pages

$ git checkout main
# コミット作る
$ git checkout gh-pages
$ git merge main
$ git push origin gh-pages main
# gh-pagesでreveal.js以下のファイルを参照して公開される。GitHubではmainブランチが見える

@ftnext
Copy link
Owner Author

ftnext commented Jan 10, 2021

GitHub Pages

プロジェクトのGitHub Pagesとして作成(ユーザやOrganizationではなく)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant