Skip to content

Repository files navigation

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.

Running the Site on the Local Server

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.

Using URLs in Markdown

Links to Blog Posts

There are thee rules to follow:

Rule 1 -- Always concatenate Jekyll and Liquid tags

GoodBad
href="{{ site.baseurl }}{{ post.url }}"href="{{ site.baseurl }}/{{ post.url }}"

This removes the double-slash from your site's URLs.

Rule 2 -- (Almost) Always start links with {{ site.baseurl }}

GoodBad
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.

Rule 3 -- Always use a trailing slash after {{ site.baseurl }}

GoodBad
href="{{ site.baseurl }}/" title="Home"href="{{ site.baseurl }}" title="Home"
GoodBad
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.

Adding collapsible list for sidebar navigation

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>

Adding code examples

We use the code-excerpter tool for adding the source code to Markdown pages. See this doc for the instructions.

About

The framework site on GitHub Pages

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages