Skip to content

Commit 87247cf

Browse files
authored
Merge pull request #9 from mu-editor/new_help
Using submodules for the help pages & auto-detect version
2 parents 3875d80 + f4f50eb commit 87247cf

30 files changed

+105
-325
lines changed

.gitmodules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[submodule "help/0.1"]
2+
path = help/0.1
3+
url = https://github.com/mu-editor/help-pages.git
4+
[submodule "help/0.9.11"]
5+
path = help/0.9.11
6+
url = https://github.com/mu-editor/help-pages.git
7+
[submodule "help/0.9.12"]
8+
path = help/0.9.12
9+
url = https://github.com/mu-editor/help-pages.git
10+
[submodule "help/0.9.13"]
11+
path = help/0.9.13
12+
url = https://github.com/mu-editor/help-pages.git

_config.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ github-fork-path: https://github.com/mu-editor/mu
2828

2929
gems: ["jekyll-sitemap"]
3030

31-
pages:
32-
- title: help
33-
url: help/0.9.11
34-
35-
3631

3732
# All Jekyll-Bootstrap specific configurations are namespaced into this hash
3833
#

_includes/themes/mu/page-help.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="page-header">
2+
<h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% endif %}</h1>
3+
</div>
4+
5+
<div class="row">
6+
<div class="col-xs-12">
7+
{{ content }}
8+
</div>
9+
</div>
10+
11+
<script src="/js/helpinject.js"></script>

_includes/themes/mu/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
theme :
2-
name : bootstrap-3
2+
name : mu

_layouts/page-help.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
theme :
3+
name : mu
4+
layout: default
5+
---
6+
{% include JB/setup %}
7+
{% include themes/mu/page-help.html %}

help/0.1

Submodule 0.1 added at 4b50dd5

help/0.1/index.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

help/0.9.11

Submodule 0.9.11 added at b4929d1

help/0.9.11/index.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

help/0.9.12

Submodule 0.9.12 added at b4929d1

0 commit comments

Comments
 (0)