This repository contains the code of Spine Event Engine framework site.
The website uses Jekyll templates and is hosted on GitHub Pages.
If you plan to work with the code of examples please make sure to read these instructions.
To build and launch the site on the local server:
bundle exec jekyll serve
You may be required to install Gems first:
bundle install
If you experience issues with this step, please check out the troubleshooting guide.
There are thee rules to follow:
| Good | Bad |
|---|---|
href="{{ site.baseurl }}{{ post.url }}" |
href="{{ site.baseurl }}/{{ post.url }}" |
This removes the double-slash from your site's URLs.
| Good | Bad |
|---|---|
href="{{ site.baseurl }}{{ post.url }}" |
href="{{ post.url }}" |
This fixes almost all of the in-site links. The next rule covers the remainder.
Exception: Start hyperlinks with {{ site.url }}{{ site.baseurl }} in feed pages, like atom.xml.
| Good | Bad |
|---|---|
href="{{ site.baseurl }}/" title="Home" |
href="{{ site.baseurl }}" title="Home" |
| Good | Bad |
|---|---|
href="{{ site.baseurl }}/public/favicon.ico" |
href="{{ site.baseurl }}public/favicon.ico" |
Visit Configuring Jekyll for Project GitHub Pages and for User GitHub Pages if you want to know why these rules should be followed.
For collapsible categories we use Bootstrap JS component.
To add a collapsible category use the following code:
<h6 class="doc-side-nav-title no-anchor collapsed" data-toggle="collapse" data-target="#collapseCategoryName" aria-expanded="false" aria-controls="collapseCategoryName">CategoryName</h6>
<ul class="collapse" id="collapseConcepts">
<li class="doc-side-nav-list-item"><a href="{{ site.baseurl }}/docs/guides/concepts/some-link-1.html" {% if current[3] == 'some-link-1.html' %}class='current'{% endif %}>Some link name 1</a></li>
<li class="doc-side-nav-list-item"><a href="{{ site.baseurl }}/docs/guides/concepts/some-link-2.html" {% if current[3] == 'some-link-2.html' %}class='current'{% endif %}>Some link name 2</a></li>
<li class="doc-side-nav-list-item"><a href="{{ site.baseurl }}/docs/guides/concepts/some-link-3.html" {% if current[3] == 'some-link-3.html' %}class='current'{% endif %}>Some link name 3</a></li>
<li class="doc-side-nav-list-item"><a href="{{ site.baseurl }}/docs/guides/concepts/some-link-4.html" {% if current[3] == 'some-link-4.html' %}class='current'{% endif %}>Some link name 4</a></li>
<li class="doc-side-nav-list-item"><a href="{{ site.baseurl }}/docs/guides/concepts/some-link-5.html" {% if current[3] == 'some-link-5.html' %}class='current'{% endif %}>Some link name 5</a></li>
</ul>
We use the code-excerpter tool for adding the source code to Markdown pages. See this doc for the instructions.