diff --git a/pages/mydoc/mydoc_commenting_on_files.md b/pages/mydoc/mydoc_commenting_on_files.md index 53125c9..42e61c5 100644 --- a/pages/mydoc/mydoc_commenting_on_files.md +++ b/pages/mydoc/mydoc_commenting_on_files.md @@ -18,28 +18,18 @@ There's an Edit me button on each page on this theme. This button allows collabo Here's the code for that button on the page.html layout: -{% raw %} + ``` -{% unless jekyll.environment == "production" %} +{% raw %}{% if site.github_editme_path %} - {% if site.github_editme_path %} + Edit me - Edit me +{% endraw %}{% endif %} ``` -{% endraw %} - -This code is only active if you're publishing in a development environment, which is the default. - -To activate the production environment, add the [production environment flag](http://jekyllrb.com/docs/configuration/) in your build command: - -{% raw %} -``` -JEKYLL_ENV=production jekyll serve -``` -{% endraw %} In your configuration file, edit the value for `github_editme_path`. For example, you might create a branch called "reviews" on your Github repo. Then you would add something like this in your configuration file for the 'github_editme_path': tomjohnson1492/documentation-theme-jekyll/edit/reviews. Here "tomjohnson1492" is my github account name. The repo name is "documentation-theme-jekyll". The "reviews" name is the branch. +To suppress this button, comment out the `github_editme_path` in the \_config.yml file. ## Add reviewers as collaborators