This site is based on the Jekyll theme for loopback.io. For more information, see Contributing to LoopBack docs.
NOTE: The website is served from the gh-pages
branch.
Set up Jekyll on your machine:
-
Install Ruby and Bundler if you don't have them already.
-
cd
to the repository directory and run the following command:
$ cd getting-started
$ bundle install
Bundler will look in the Gemfile for which gems to install. The github-pages
gem includes the same version of Jekyll and other dependencies as used by GitHub Pages, so that your local setup mirrors GitHub Pages as closely as possible.
Run Jekyll using the following command:
$ bundle exec jekyll serve
Then, load http://localhost:4001/ on your browser.
The site uses several special templates:
Use the item.md
include to render a markdown string from a YAML file. It requires one parameter, a YAML property name whose value is the markdown content to display.
For example, the following displays the content of create_project.project_pane_open
in the microservice.yml
file:
{% assign content = site.data.microservice.create_project %}
...
{% include item.md text=content.project_pane_open %}
Use the section-head.md
include to display the heading and summary for a section in a YAML file. It does not accept any parameters, but assumes the {{content}}
variable has been set to the appropriate YAML property. For example:
{% assign content = site.data.microservice.create_project %}
...
{% include section-head.md %}