just-the-docs 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/_includes/head.html +3 -3
- data/_layouts/default.html +4 -4
- data/_sass/content.scss +5 -2
- data/_sass/labels.scss +1 -0
- data/_sass/layout.scss +16 -2
- data/_sass/navigation.scss +6 -1
- data/_sass/search.scss +16 -4
- data/_sass/typography.scss +5 -1
- data/assets/js/just-the-docs.js +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34c636bb5dad48e01e8b114762877acac6ab188f
|
4
|
+
data.tar.gz: 8d294505dc73afb5b4eb13f5c4e3f82e89c0cb36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb73494f49b1bda8c851921560adf353b8173c21af5b858e03f8a9e5f4d20bb85f241a3dc8aff5159df590372109aef97cf2467fb8a3d77a39b8646ddffe8b0c
|
7
|
+
data.tar.gz: d358b60858410d90a86515f3d734fe7897f7268ff24dc64c85e3c2800fd21abff86f545282068c1e1ca2e5a6a322aa5b38d3c363d5986c1e97d99e7847135b66
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Or install it yourself as:
|
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
31
|
-
View the documentation for
|
31
|
+
[View the documentation](https://pmarsceill.github.io/just-the-docs/) for usage information.
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
@@ -40,7 +40,16 @@ To set up your environment to develop this theme, run `bundle install`.
|
|
40
40
|
|
41
41
|
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
42
42
|
|
43
|
-
When
|
43
|
+
When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
44
|
+
|
45
|
+
|
46
|
+
### When your changes are ready:
|
47
|
+
|
48
|
+
- Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
|
49
|
+
- Await code review
|
50
|
+
- Bump the version number in `just-the-docs.gemspec`
|
51
|
+
- Run `script/build` to package the gem
|
52
|
+
- Run `gem push just-the-docs-<version>.gem` to publish the gem to Rubygems.org
|
44
53
|
|
45
54
|
## License
|
46
55
|
|
data/_includes/head.html
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
4
4
|
|
5
5
|
<title>{{ page.title }} - {{ site.title }}</title>
|
6
|
-
<link rel="stylesheet" href="/assets/css/just-the-docs.css">
|
7
|
-
<script type="text/javascript" src="/assets/js/vendor/lunr.min.js"></script>
|
8
|
-
<script type="text/javascript" src="/assets/js/just-the-docs.js"></script>
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
|
7
|
+
<script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
|
8
|
+
<script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>
|
9
9
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
11
11
|
</head>
|
data/_layouts/default.html
CHANGED
@@ -9,15 +9,15 @@
|
|
9
9
|
<span class="fs-3"><button class="js-main-nav-trigger navigation-list-toggle btn btn-outline" type="button" data-text-toggle="Hide">Menu</button></span>
|
10
10
|
<div class="navigation main-nav js-main-nav">
|
11
11
|
{% include nav.html %}
|
12
|
-
<footer role="contentinfo" class="site-footer">
|
13
|
-
<p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
|
14
|
-
</footer>
|
15
12
|
</div>
|
13
|
+
<footer role="contentinfo" class="site-footer">
|
14
|
+
<p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
|
15
|
+
</footer>
|
16
16
|
</div>
|
17
17
|
<div class="main-content-wrap">
|
18
18
|
<div class="page-header">
|
19
19
|
<div class="main-content pb-0">
|
20
|
-
<div class="search">
|
20
|
+
<div class="search js-search">
|
21
21
|
<div class="search-input-wrap">
|
22
22
|
<input type="text" class="js-search-input search-input fs-2" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
|
23
23
|
<svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
|
data/_sass/content.scss
CHANGED
data/_sass/labels.scss
CHANGED
data/_sass/layout.scss
CHANGED
@@ -93,7 +93,8 @@
|
|
93
93
|
}
|
94
94
|
|
95
95
|
.navigation,
|
96
|
-
.site-title
|
96
|
+
.site-title,
|
97
|
+
.site-footer {
|
97
98
|
|
98
99
|
@include container;
|
99
100
|
|
@@ -114,8 +115,21 @@
|
|
114
115
|
}
|
115
116
|
}
|
116
117
|
|
118
|
+
body {
|
119
|
+
position: relative;
|
120
|
+
padding-bottom: $sp-10;
|
121
|
+
|
122
|
+
@include mq(md) {
|
123
|
+
position: static;
|
124
|
+
padding-bottom: 0;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
117
128
|
.site-footer {
|
129
|
+
position: absolute;
|
130
|
+
bottom: $sp-3;
|
131
|
+
|
118
132
|
@include mq(md) {
|
119
|
-
|
133
|
+
right: 0;
|
120
134
|
}
|
121
135
|
}
|
data/_sass/navigation.scss
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
.navigation-list {
|
21
21
|
padding: 0;
|
22
22
|
margin-top: $sp-4;
|
23
|
+
margin-bottom: 0;
|
23
24
|
list-style: none;
|
24
25
|
|
25
26
|
@include mq(md) {
|
@@ -53,8 +54,12 @@
|
|
53
54
|
}
|
54
55
|
|
55
56
|
.navigation-list-item {
|
56
|
-
@include fs-
|
57
|
+
@include fs-4;
|
57
58
|
margin: 0;
|
59
|
+
|
60
|
+
@include mq(md) {
|
61
|
+
@include fs-3;
|
62
|
+
}
|
58
63
|
}
|
59
64
|
|
60
65
|
.navigation-list-link {
|
data/_sass/search.scss
CHANGED
@@ -3,15 +3,27 @@
|
|
3
3
|
//
|
4
4
|
|
5
5
|
.search {
|
6
|
+
position: relative;
|
7
|
+
z-index: 99;
|
6
8
|
display: none;
|
9
|
+
flex-grow: 1;
|
10
|
+
padding-bottom: $gutter-spacing / 2;
|
11
|
+
background-color: $white;
|
12
|
+
padding: $sp-2;
|
13
|
+
margin-bottom: $sp-3;
|
7
14
|
|
8
15
|
@include mq(md) {
|
9
|
-
position: relative;
|
10
|
-
z-index: 99;
|
11
16
|
display: block;
|
12
|
-
flex-grow: 1;
|
13
17
|
padding-top: $sp-1;
|
14
|
-
padding-
|
18
|
+
padding-right: 0;
|
19
|
+
padding-bottom: $sp-4;
|
20
|
+
padding-left: 0;
|
21
|
+
margin-bottom: 0;
|
22
|
+
background-color: transparent;
|
23
|
+
}
|
24
|
+
|
25
|
+
&.nav-open {
|
26
|
+
display: block;
|
15
27
|
}
|
16
28
|
}
|
17
29
|
|
data/_sass/typography.scss
CHANGED
data/assets/js/just-the-docs.js
CHANGED
@@ -13,6 +13,7 @@ function toggleNav(){
|
|
13
13
|
const nav = document.querySelector('.js-main-nav');
|
14
14
|
const auxNav = document.querySelector('.js-aux-nav');
|
15
15
|
const navTrigger = document.querySelector('.js-main-nav-trigger');
|
16
|
+
const search = document.querySelector('.js-search');
|
16
17
|
|
17
18
|
addEvent(navTrigger, 'click', function(){
|
18
19
|
var text = navTrigger.innerText;
|
@@ -21,6 +22,7 @@ function toggleNav(){
|
|
21
22
|
nav.classList.toggle('nav-open');
|
22
23
|
auxNav.classList.toggle('nav-open');
|
23
24
|
navTrigger.classList.toggle('nav-open');
|
25
|
+
search.classList.toggle('nav-open');
|
24
26
|
navTrigger.innerText = textToggle;
|
25
27
|
navTrigger.setAttribute('data-text-toggle', text);
|
26
28
|
textToggle = text;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: just-the-docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Marsceill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|