Skip to content

Commit cef1eb9

Browse files
committed
Update base theme
1 parent dffa13c commit cef1eb9

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed

.gitlab-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
image: ruby:2.3
2+
3+
variables:
4+
JEKYLL_ENV: production
5+
6+
test:
7+
stage: test
8+
script:
9+
- sh ./var/build.sh
10+
- bundle exec jekyll build -d test
11+
artifacts:
12+
paths:
13+
- test
14+
except:
15+
- master
16+
17+
pages:
18+
stage: deploy
19+
script:
20+
- sh ./var/build.sh
21+
- bundle exec jekyll build -d public
22+
artifacts:
23+
paths:
24+
- public
25+
only:
26+
- master

_config.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ github_editme_path: customgento/docs/edit/gh-pages/pages/
1818
# gitlab_editme_path: tomjoht/documentation-theme-jekyll/blob/gh-pages/
1919
# if you're using GitLab, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
2020

21-
disqus_shortname:
22-
# if you're using disqus for comments, add the shortname here. if not, leave this value blank.
23-
2421
google_analytics: UA-66296557-1
2522
# if you have google-analytics ID, put it in. if not, edit this value to blank.
2623

@@ -79,6 +76,26 @@ defaults:
7976
search: true
8077
sidebar: home_sidebar
8178
topnav: topnav
79+
-
80+
scope:
81+
path: ""
82+
type: "tooltips"
83+
values:
84+
layout: "page"
85+
search: true
86+
tooltip: true
87+
88+
-
89+
scope:
90+
path: ""
91+
type: "posts"
92+
values:
93+
layout: "post"
94+
comments: false
95+
# if you don't want to use Commento.io and just hide comments, change true to false wherever you see the comments property
96+
search: true
97+
sidebar: home_sidebar
98+
topnav: topnav
8299

83100
# these are defaults used for the frontmatter for these file types
84101

_layouts/page.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ <h1 class="post-title-main">{{ page.title }}</h1>
3434
<div class="summary">{{page.summary}}</div>
3535
{% endif %}
3636

37+
{% unless page.toc == false %}
38+
{% include toc.html %}
39+
{% endunless %}
40+
41+
3742
{% if site.github_editme_path %}
3843

3944
<a target="_blank" rel="noopener" href="https://github.com/{{site.github_editme_path}}{{page.path}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>

var/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
apt-get update && \
3+
apt-get install -y libfontconfig zip npm git apt-transport-https ca-certificates curl openssl && \
4+
npm i -g npm && \
5+
npm cache clean -f && \
6+
npm install -g n && \
7+
n stable && \
8+
node --version && \
9+
npm --version && \
10+
bundle install

0 commit comments

Comments
 (0)