jekyll-docs-theme 0.1.0.pre.alpha1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e56268b4d9ef31c177946aba00e2c36a40c0942c
4
- data.tar.gz: 6d5f83bd23c21299916bcb80703caaf2ae193be2
3
+ metadata.gz: f31103631540100420139cd432f519a79be7f09c
4
+ data.tar.gz: e750c64aa974736a048085417fae63798f68c613
5
5
  SHA512:
6
- metadata.gz: bc9368f10227ee997f08b80a333fe36207b38facb3907a1321d23fc4e6b2813035ac67609f6e29191303211db2d0a78ba23b43f0bc4e5a78637d96e88b838fae
7
- data.tar.gz: 7f7062d37a29f0b98d9f4f705043ce88d26ebd63abc48f5914a2da2c37c4bc7e7df41b7daff78525cad3e6b5a9da6a88c18579bd133efa22d19751632df85162
6
+ metadata.gz: 9e2a866f488db87005863a19bb9c3bd73990552fdf8b60430fbe68c958d0eb6295db4887eeaa9921078af3d46ca41c7b742a930f8b1ff2ab7e88aaf53ccc0dec
7
+ data.tar.gz: 43209328f6e26989ea13928d37d0e0d4174fd50fc65540cfdeac7f892804e6ac4c6a8bffb917f5dc9ed29aeb01ac51a8c3e4543eb002e11a25dfe3bf33c39948
data/_includes/head.html CHANGED
@@ -21,5 +21,6 @@
21
21
  </style>
22
22
 
23
23
  <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
24
- <script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
24
+ <script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
25
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/stickyfill/1.1.4/stickyfill.min.js"></script>
25
26
  <script src="{{ '/assets/js/docs.min.js' | relative_url }}"></script>
@@ -1,4 +1,4 @@
1
- {% if page.isHome %}
1
+ {% if page.homepage %}
2
2
  <div class="bs-docs-masthead" id="jumbotron-header">
3
3
  <div class="container">
4
4
  <h1 class="home-title">{{ site.name }}</h1>
@@ -6,7 +6,7 @@
6
6
  <p class="lead">
7
7
  <a href="{{ site.project.download_url }}" class="btn btn-outline-inverse btn-lg">Download</a>
8
8
  </p>
9
- <p class="version">Currently v{{site.version}}</p>
9
+ <p class="version">Currently v{{ site.project.version }}</p>
10
10
  </div>
11
11
  </div>
12
12
  {% else %}
data/_layouts/page.html CHANGED
@@ -2,20 +2,18 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <div class="container bs-docs-container">
6
- <div class="row">
7
- <div class="col-md-9" role="main">
5
+ <div class="container">
6
+ <div class="bs-docs-container row">
7
+ <div class="col-md-12" role="main">
8
8
  <div class="bs-docs-section">{{ content }}</div>
9
9
  </div>
10
10
 
11
- <div class="col-md-3" role="complementary">
12
- <div class="bs-docs-sidebar hidden-print">
13
- <ul class="nav bs-docs-sidenav"></ul>
11
+ <div class="col-md-3 bs-docs-sidebar hidden-print" role="complementary">
12
+ <ul class="nav bs-docs-sidenav"></ul>
14
13
 
15
- <a class="back-to-top" href="#top"> <i class="glyphicon glyphicon-chevron-up"></i>
16
- Back to top
17
- </a>
18
- </div>
14
+ <a class="back-to-top" href="#top"> <i class="glyphicon glyphicon-chevron-up"></i>
15
+ Back to top
16
+ </a>
19
17
  </div>
20
18
  </div>
21
19
 
@@ -2,34 +2,48 @@
2
2
  ---
3
3
 
4
4
  .bs-docs-masthead {
5
- padding-top:50px;
6
- padding-bottom:40px;
7
- margin-bottom:20px;
5
+ padding-top: 50px;
6
+ padding-bottom: 40px;
7
+ margin-bottom: 20px;
8
8
  }
9
9
 
10
10
  .bs-docs-header h1, .bs-docs-header p {
11
- margin-right:0px;
11
+ margin-right: 0;
12
+ }
13
+
14
+ .bs-docs-sidebar {
15
+ display: none;
16
+ position: -webkit-sticky;
17
+ position: sticky;
18
+ top: 20px;
12
19
  }
13
20
 
14
21
  .bs-docs-sidebar .nav > li > a {
15
- font-size:15px;
22
+ font-size: 15px;
16
23
  }
24
+
17
25
  .bs-docs-sidebar .nav .nav > li > a {
18
- font-size:14px;
26
+ font-size: 14px;
19
27
  }
28
+
20
29
  .back-top-top {
21
- font-size:13px;
30
+ font-size: 13px;
31
+ }
32
+
33
+ .bs-docs-container {
34
+ position: relative;
22
35
  }
23
36
 
24
37
  #jumbotron-header {
25
- position:relative;
26
- }
27
- #jumbotron-header:after {
28
- content:"";
29
- position:absolute;
30
- bottom:0px;
31
- right:0px;
32
- height:50px;
33
- width:30%;
34
- background:linear-gradient(135deg, transparent 50px, white 50px);
38
+ position:relative;
39
+
40
+ &:after {
41
+ content: "";
42
+ position: absolute;
43
+ bottom: 0;
44
+ right: 0;
45
+ height: 50px;
46
+ width: 30%;
47
+ background: linear-gradient(135deg, transparent 50px, white 50px);
48
+ }
35
49
  }
@@ -1,4 +1,6 @@
1
1
  $(function(){
2
+ $('html').toggleClass('no-js js');
3
+
2
4
  // build side menu
3
5
  var html = '';
4
6
 
@@ -21,21 +23,17 @@ $(function(){
21
23
  }
22
24
  });
23
25
 
24
- if (html == '') {
25
- $('[role=complementary]').hide();
26
- $('[role=main]').toggleClass('col-md-9 col-md-12');
27
- }
28
- else {
26
+ if (html != '') {
29
27
  $('.bs-docs-sidenav').html(html);
28
+ $('[role=complementary]').show();
29
+ $('[role=main]').toggleClass('col-md-12 col-md-9');
30
+
31
+ $('[role=complementary]').Stickyfill();
30
32
  }
31
33
 
32
- /*!
33
- * JavaScript for Bootstrap's docs (http://getbootstrap.com)
34
- * Copyright 2011-2014 Twitter, Inc.
35
- * Licensed under the Creative Commons Attribution 3.0 Unported License. For
36
- * details, see http://creativecommons.org/licenses/by/3.0/.
37
- */
38
- !function(a){a(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var b=document.createElement("style");b.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(b)}{var c=a(window),d=a(document.body);a(".navbar").outerHeight(!0)+10}d.scrollspy({target:".bs-docs-sidebar"}),c.on("load",function(){d.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){var b=a(".bs-docs-sidebar");b.affix({offset:{top:function(){var c=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();return this.top=c-e-d},bottom:function(){return this.bottom=a(".bs-docs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100)})}(jQuery);
34
+ $('body').scrollspy({
35
+ target: ".bs-docs-sidebar"
36
+ });
39
37
  });
40
38
 
41
39
  function trianglify(color1, color2) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-docs-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir 'allejo' Jimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-01 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -90,12 +90,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">"
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 1.3.1
95
+ version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.4.6
98
+ rubygems_version: 2.6.7
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: A Jekyll Gem-based Theme for hosting documentation style websites