jekyll-theme-alta-docs 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3873a9954922eaeb24f017eb8c908060e15d081a02de0341541f6f7feb0ffe67
4
+ data.tar.gz: fa852d667773d70c1bfe26207e894d548f49821abb63e75cbf602e661c332098
5
+ SHA512:
6
+ metadata.gz: 30233e201557158370c7679be7e4659fee78f0b694a2a8b5b7686e7bf92cf006162895f686958431796c41748ede7ddaba358e895a70211997ac28b668ac748a
7
+ data.tar.gz: e9c9187bddb2a66ef74a7cca19784d0d291779fa5f4049a1c8795a5df1d63e269f6d092f79f32c48674a3d483c2e739f2f184964a1d88d4a7a2cbb0cf17eeb90
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 tomaszantas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # Jekyll Theme: Alta Docs Theme
2
+
3
+ The Jekyll theme for documenting development projects.
4
+
5
+ ## Basic usage
6
+
7
+ 1. Add the theme to the `Gemfile`
8
+ ```
9
+ gem "jekyll-theme-alta-docs"
10
+ ```
11
+
12
+ 2. Run `bundle install`
13
+
14
+ 3. Add `index.html` page to the root directory (the *Getting started* page).
15
+
16
+ 4. Create a folder your *docs* collection, i.e. `_docs/`
17
+
18
+ 5. Set up the `_config.yml`
19
+
20
+ doc_collection : docs
21
+ doc_version : 1.0.0
22
+ links:
23
+ repos:
24
+ - name : Web app repository
25
+ icon : "fab fa-github" # Use fontawesome v6
26
+ url : https://bitbucket.org/
27
+ - name : Backend repository
28
+ icon : "fab fa-bitbucket" # Use fontawesome v6
29
+ url : https://bitbucket.org/
30
+ - name : Docs repository
31
+ icon : "fab fa-gitlab" # Use fontawesome v6
32
+ url : https://bitbucket.org/
33
+
34
+
35
+ ## Development
36
+
37
+ To set up your environment to develop this theme, run `bundle install`.
38
+
39
+ To test theme, run: `bundle exec rake preview` or `bundle exec rake preview host=xxx.xx.xxx.xx`
40
+
41
+ ## License
42
+
43
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,16 @@
1
+ <footer class="ad-page__footer">
2
+ <div class="container">
3
+ <div class="ad-page__footer-content">
4
+ <ul class='links-list'>
5
+ {% for link in site.links.repos %}
6
+ <li>
7
+ <a href="{{ link.url }}"><i class="{{ link.icon }}"></i> {{ link.name }}</a>
8
+ </li>
9
+ {% endfor %}
10
+ </ul>
11
+ </div>
12
+ <div class="ad-page__subfooter-content">
13
+ <span>{{ site.project_name }}, {{ site.doc_version }}</span>
14
+ </div>
15
+ </div>
16
+ </footer>
@@ -0,0 +1,4 @@
1
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
2
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
3
+
4
+ {% include head_scripts.html %}
@@ -0,0 +1 @@
1
+ <script src="https://kit.fontawesome.com/b7d5c5e70a.js" crossorigin="anonymous"></script>
@@ -0,0 +1,46 @@
1
+ {% assign docs = site[site.doc_collection] | sort: "order" %}
2
+ {% assign docs_grouped = docs | group_by: "category" %}
3
+
4
+ {% if page.url == '/' || page.url == '' || %}
5
+ {% assign current = 'active' %}
6
+ {% else %}
7
+ {% assign current = null %}
8
+ {% endif %}
9
+
10
+ <nav class="ad-site-nav">
11
+
12
+ <a href="/" class="ad-btn-nav-home {{ current }}">
13
+ <span class="symbol">&#128640;</span> Getting started
14
+ </a>
15
+
16
+ {% for cat in docs_grouped %}
17
+ <button class="ad-collapsible">{{ cat.name }}</button>
18
+ <ul class="ad-collapsible-content">
19
+ {% for doc in cat.items %}
20
+ {% if doc.url == page.url %}
21
+ {% assign current = ' class="active"' %}
22
+ {% else %}
23
+ {% assign current = null %}
24
+ {% endif %}
25
+ <li{{ current }}><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.title }}</a></li>
26
+ {% endfor %}
27
+ </ul>
28
+ {% endfor %}
29
+ </nav>
30
+
31
+ <script>
32
+ var coll = document.getElementsByClassName("ad-collapsible");
33
+ var i;
34
+
35
+ for (i = 0; i < coll.length; i++) {
36
+ coll[i].addEventListener("click", function() {
37
+ this.classList.toggle("active");
38
+ var content = this.nextElementSibling;
39
+ if (content.style.maxHeight){
40
+ content.style.maxHeight = null;
41
+ } else {
42
+ content.style.maxHeight = content.scrollHeight + "px";
43
+ }
44
+ });
45
+ }
46
+ </script>
@@ -0,0 +1,5 @@
1
+ <div class="ad-page__navbar">
2
+ <div class="ad-page__navbar-content container">
3
+ <span class="nav-brand">{{ site.project_name }}</span>
4
+ </div>
5
+ </div>
File without changes
@@ -0,0 +1 @@
1
+ {% include nav.html %}
@@ -0,0 +1,23 @@
1
+ <html>
2
+ <head>
3
+ {% include head.html %}
4
+ </head>
5
+
6
+ <body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}">
7
+ {% include navbar.html %}
8
+ <div class="ad-page__container ad-page__two-columns-layout container">
9
+ <div class="ad-page__sidebar">
10
+ {% include sidebar.html %}
11
+ </div>
12
+ <div class="ad-page__content">
13
+ {{ content }}
14
+ </div>
15
+ </div>
16
+
17
+
18
+ {% include footer.html %}
19
+
20
+ {% include scripts.html %}
21
+
22
+ </body>
23
+ </html>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="ad-doc__header">
6
+ <h1>{{ page.title }}</h1>
7
+
8
+ <div class="ad-doc__table-of-contents">
9
+ {% toc %}
10
+ </div>
11
+ </div>
12
+
13
+ <div class="ad-doc__content">
14
+ {{ content }}
15
+ </div>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,306 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&family=Oswald:wght@200;300;400;500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');
2
+
3
+ $primary-color: #8600E8;
4
+ $dark-color: #142233;
5
+ $gray-400: #DFE5EC;
6
+ $text-color-primary: $dark-color;
7
+ $text-color-regular: #3E546B;
8
+ $link-color: #8905EA;
9
+ $link-color-hover: #6109A1;
10
+ $font-family-primary: 'Poppins', sans-serif;
11
+ $font-family-regular: 'Source Sans Pro', sans-serif;
12
+
13
+ @mixin shadow($alpha) {
14
+ -webkit-box-shadow: 0px 0px 10px -2px rgba(20,34,51,$alpha);
15
+ -moz-box-shadow: 0px 0px 10px -2px rgba(20,34,51,$alpha);
16
+ box-shadow: 0px 0px 10px -2px rgba(20,34,51,$alpha);
17
+ }
18
+
19
+ body {
20
+ color: $text-color-regular;
21
+ margin: 0;
22
+ padding-top: 40px;
23
+ -webkit-box-sizing: border-box;
24
+ -moz-box-sizing: border-box;
25
+ box-sizing: border-box;
26
+ background: #F9FBFD;
27
+ font-family: $font-family-regular;
28
+ }
29
+
30
+ a {
31
+ color: $link-color;
32
+ text-decoration: none;
33
+ &:hover {
34
+ color: $link-color-hover;
35
+ }
36
+ }
37
+
38
+ a.ad-btn-nav-home {
39
+ font-family: $font-family-primary;
40
+ margin-top: 5px;
41
+ margin-bottom: 25px;
42
+ padding: 15px;
43
+ display: block;
44
+ border: 1px solid $gray-400;
45
+ border-radius: 5px;
46
+ line-height: 13px;
47
+ font-size: 14px;
48
+ font-weight: 400;
49
+ color: $text-color-primary;
50
+ letter-spacing: 0.4px;
51
+ .symbol {
52
+ font-size: 12px;
53
+ margin-right: 3px;
54
+ }
55
+ &:hover {
56
+ background: rgba(200,200,255, 0.08);
57
+ }
58
+ &.active {
59
+ background: $primary-color;
60
+ color: #fff;
61
+ }
62
+ }
63
+
64
+ .container {
65
+ max-width: 1200px;
66
+ margin-left: auto;
67
+ margin-right: auto;
68
+ -webkit-box-sizing: border-box;
69
+ -moz-box-sizing: border-box;
70
+ box-sizing: border-box;
71
+ }
72
+
73
+ .ad-page__two-columns-layout {
74
+ display: flex;
75
+ min-height: calc(100% - 80px);
76
+ -webkit-box-sizing: border-box;
77
+ -moz-box-sizing: border-box;
78
+ box-sizing: border-box;
79
+ .ad-page__sidebar {
80
+ width: 300px;
81
+ min-width: 300px;
82
+ border-right: 1px solid $gray-400;
83
+ padding: 15px;
84
+ -webkit-box-sizing: border-box;
85
+ -moz-box-sizing: border-box;
86
+ box-sizing: border-box;
87
+ }
88
+ .ad-page__content {
89
+ width: 100%;
90
+
91
+ padding: 15px;
92
+ -webkit-box-sizing: border-box;
93
+ -moz-box-sizing: border-box;
94
+ box-sizing: border-box;
95
+ }
96
+ }
97
+
98
+ .ad-page__navbar {
99
+ @include shadow(0.1);
100
+ border-bottom: 1px solid $gray-400;
101
+ position: fixed;
102
+ top: 0;
103
+ width: 100%;
104
+ background: #fff;
105
+
106
+ .nav-brand {
107
+ color: $text-color-primary;
108
+ font-family: $font-family-primary;
109
+ font-weight: bold;
110
+ }
111
+
112
+ .ad-page__navbar-content {
113
+ padding: 5px 15px;
114
+ display: flex;
115
+ align-items: center;
116
+ min-height: 40px;
117
+ }
118
+ }
119
+
120
+ .ad-site-nav {
121
+
122
+ }
123
+
124
+ button.ad-collapsible, .ad-collapsible {
125
+ font-family: $font-family-primary;
126
+ background: transparent;
127
+ border-width: 0;
128
+ box-shadow: none;
129
+ width: 100%;
130
+ padding-top: 12px;
131
+ padding-bottom: 4px;
132
+ padding-left: 5px;
133
+ padding-right: 5px;
134
+ cursor: pointer;
135
+ text-align: left;
136
+ border-bottom: 1px solid $gray-400;
137
+ font-size: 14px;
138
+ font-weight: bold;
139
+ text-transform: uppercase;
140
+ color: $text-color-regular;
141
+ margin-bottom: 5px;
142
+
143
+ &:after {
144
+ content: '\25BE';
145
+ font-size: 13px;
146
+ float: right;
147
+ margin-left: 5px;
148
+ }
149
+
150
+ &.active:after {
151
+ content: "\2212";
152
+ }
153
+
154
+ &:focus {
155
+ outline: none;
156
+ background: rgba(0,0,0,0.01);
157
+ }
158
+ }
159
+
160
+ .ad-collapsible-content {
161
+ box-sizing: border-box;
162
+ max-height: 0;
163
+ overflow: hidden;
164
+ transition: max-height 0.2s ease-out;
165
+ margin: 5px 0;
166
+ list-style: none;
167
+ padding: 0;
168
+ font-weight: 400;
169
+ font-size: 14px;
170
+ line-height: 14px;
171
+
172
+ li {
173
+ a {
174
+ width: 100%;
175
+ padding: 5px 10px;
176
+ display: block;
177
+ box-sizing: border-box;
178
+ }
179
+ a:hover {
180
+ background: rgba(200,200,255, 0.08);
181
+ }
182
+ &.active a {
183
+ color: #fff;
184
+ font-weight: 600;
185
+ background: $primary-color;
186
+ border-radius: 3px;
187
+ }
188
+ }
189
+ }
190
+
191
+ .ad-page__footer {
192
+ background: $dark-color;
193
+ padding: 30px 15px;
194
+ color: #fff;
195
+
196
+ .links-list {
197
+ list-style: none;
198
+ padding-left: none;
199
+ li {
200
+ padding: 2px 5px;
201
+ a {
202
+ color: $text-color-regular;
203
+ font-size: 14px;
204
+ i {
205
+ margin-right: 3px;
206
+ font-size: 11px;
207
+ }
208
+ &:hover {
209
+ color: $link-color;
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ .ad-page__footer-content {
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: flex-end;
219
+ }
220
+ .ad-page__subfooter-content {
221
+ border-top: 1px solid $text-color-regular;
222
+ font-size: 11px;
223
+ text-align: center;
224
+ padding: 5px;
225
+ color: $text-color-regular;
226
+ }
227
+ }
228
+
229
+
230
+ .ad-doc__header {
231
+ border-bottom: 1px solid #f3f3f3;
232
+ background: #f4f7fd;
233
+ padding: 30px;
234
+
235
+ h1 {
236
+ margin-top: 0;
237
+ margin-bottom: 30px;
238
+ }
239
+
240
+ .ad-doc__table-of-contents {
241
+ ul.section-nav {
242
+ padding-left: 5px;
243
+ list-style: none;
244
+ margin: 0;
245
+ ul {
246
+ padding-left: 15px;
247
+ list-style: none;
248
+ }
249
+ }
250
+ }
251
+ }
252
+
253
+ .ad-doc__content {
254
+ padding: 15px;
255
+
256
+ img {
257
+ max-width: 100%;
258
+ }
259
+
260
+ table {
261
+ border: 1px solid $gray-400;
262
+ box-sizing: border-box;
263
+ border-spacing: 0;
264
+ font-size: 13px;
265
+ td, th {
266
+ border-right: 1px solid $gray-400;
267
+ border-bottom: 1px solid $gray-400;
268
+ padding: 3px;
269
+ &:last-child {
270
+ border-right-width: 0px;
271
+ }
272
+ }
273
+ th {
274
+ font-size: 14px;
275
+ }
276
+ tr:last-child td {
277
+ border-bottom-width: 0px;
278
+ }
279
+ }
280
+ }
281
+
282
+ code.highlighter-rouge {
283
+ background: #f4f7fd;
284
+ padding: 1px 3px;
285
+ border-radius: 2px;
286
+ color: #e00bbc;
287
+ }
288
+
289
+ pre.highlight {
290
+ padding: 10px;
291
+ background: #f4f7fd;
292
+ border: 1px solid $gray-400;
293
+ border-radius: 3px;
294
+ .k {
295
+ color: #e00bbc;
296
+ font-weight: bold;
297
+ }
298
+ .nf {
299
+ color: #6902f1;
300
+ font-weight: bold;
301
+ }
302
+ .s2 {
303
+ color: #189c41;
304
+ }
305
+
306
+ }
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "jekyll-theme-alta-docs";
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-alta-docs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tom Antas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-09-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.1.4
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.1.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-sitemap
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.4'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jekyll-toc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.14'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.14'
83
+ description:
84
+ email:
85
+ - tom@altalogy.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - LICENSE.txt
91
+ - README.md
92
+ - _includes/footer.html
93
+ - _includes/head.html
94
+ - _includes/head_scripts.html
95
+ - _includes/nav.html
96
+ - _includes/navbar.html
97
+ - _includes/scripts.html
98
+ - _includes/sidebar.html
99
+ - _layouts/default.html
100
+ - _layouts/doc.html
101
+ - _layouts/page.html
102
+ - _layouts/post.html
103
+ - _sass/jekyll-theme-alta-docs.scss
104
+ - assets/css/main.scss
105
+ homepage: https://github.com/altalogy/jekyll-theme-alta-docs
106
+ licenses:
107
+ - MIT
108
+ metadata: {}
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubygems_version: 3.0.3
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Dev docs theme.
128
+ test_files: []