cant preview github pages locally without adding Gemfile to docs dir

cant preview github pages locally without adding Gemfile to docs dir

$ bundle exec jekyll serve

should show website not just a directory listing

workaround:

$ cd docs

$ vi Gemfile
source “https://rubygems.org

gem “github-pages”, group: :jekyll_plugins

$ bundle exec jekyll serve

now displays website