This document describes the steps required to enable Jekyll+Prose on a GitHub repository.
The commands included for some of the steps are for Linux (Ubuntu). If you are using Windows or Mac OS X, the commands may differ.
[~variable name~]
.sudo apt-get install ruby1.9.3
).sudo gem install github-pages
).sudo gem install travis
).sudo apt-get install pandoc
)..travis.yml
, build.sh
and Gemfile
included in this repository to the the root folder of your GitHub repository’s local copy.master
, replace master
with the name of your branch in the branches
section of .travis.yml
.build.sh
, replace [~GitHub user name~]
with your GitHub user name and [~GitHub repository name~]
with the name of the repository for which you want to enable Jekyll+Prose.build.sh
executable (Command: chmod +x build.sh
).travis-push-[~name of the repository~]
) and click ‘Create token’.travis encrypt "GH_TOKEN=[~token you copied in the previous step~] GH_EMAIL=[~email you use for GitHub~]" --add env.global
).README.md
file of your GitHub repository as described in The Travis documentation.jekyll new --force --blank .
)._config.yml
included in this repository to the the root folder of your GitHub repository’s local copy.master
, replace master
with the name of your branch in the value of the prose_branch
section of _config.yml
._config.yml
, replace [~GitHub user name~]
with your GitHub user name and [~GitHub repository name~]
with the name of the repository for which you want to enable Jekyll+Prose._layout
folder._includes
folder (see the file prose-edit-link.html
included in this repository for an example).editable: true
to the front matter of any document for which you want to enable Prose editing; add the line editable: false
to the front matter of any document for which you want to disable Prose editing.CORS_check.js
included in this repository at the end of the <body>
of each of your layout templates to enable the fallback to the GitHub Web interface for browsers that do not support CORS, which is required by Prose.pandoc -f html -t
markdown -o [~Filename for the converted document~].md [~URL of the
Web page you want to convert~]
).published: true
and layout: [~Layout you want to use~]
to the front matter of the converted document.jekyll build
).jekyll serve --watch
).localhost:4000/[~Path to the converted document~]
).