programming-pages 0.5.18 → 0.5.19
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.
- checksums.yaml +4 -4
- data/_data/icons/theme.yml +3 -1
- data/_includes/collapsible_example.liquid +36 -0
- data/_includes/scripts/custom.js +6 -0
- data/_includes/scripts/page.js +4 -0
- data/_includes/styles/custom.css +3 -2
- data/_includes/styles/programming-pages/tweaks.css +10 -0
- data/_layouts/page.html +4 -1
- data/assets/site.js +3 -0
- data/assets/site.scss +1 -1
- data/screenshot.png +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ebde1a5c3b33eed9b20cec14af3d347baa9f98c1a22800bc404de2ec75d00e3
|
4
|
+
data.tar.gz: db7c368126a1f7dcd4e3c862c6cd707b0b6af478fe80d7b688706399272c2ad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf4c82e27716ed154bd531649bd8eb4112f019c3b116be121811dcc83856dbc4985dbde3eac17f21ca1b224a3875847998d5326957e6f4bc2de234507d519b91
|
7
|
+
data.tar.gz: 13973abadc73def73005c8e1af26866d95b03adf492b2687758e8ea2a11426f308a20d91fc8758666b2ad4dff6ede0f3ddab872b963518f313b455fae9cd6e36
|
data/_data/icons/theme.yml
CHANGED
@@ -53,7 +53,9 @@ interface: # fa: neuter
|
|
53
53
|
magnifier: # fa: search
|
54
54
|
viewbox: '0 0 1664 1664'
|
55
55
|
path: 'M1152 704q0-185-131.5-316.5T704 256 387.5 387.5 256 704t131.5 316.5T704 1152t316.5-131.5T1152 704zm512 832q0 52-38 90t-90 38q-54 0-90-38l-343-342q-179 124-399 124-143 0-273.5-55.5t-225-150-150-225T0 704t55.5-273.5 150-225 225-150T704 0t273.5 55.5 225 150 150 225T1408 704q0 220-124 399l343 343q37 37 37 90z'
|
56
|
-
|
56
|
+
plus-square-outline: # fa plus-square-o
|
57
|
+
viewbox: '0 0 1408 1408'
|
58
|
+
path: 'M1152 672v64q0 14-9 23t-23 9H768v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23V768H288q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352V288q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448V288q0-66-47-113t-113-47H288q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5T1120 1408H288q-119 0-203.5-84.5T0 1120V288Q0 169 84.5 84.5T288 0h832q119 0 203.5 84.5T1408 288z'
|
57
59
|
|
58
60
|
# Entypo pictograms by Daniel Bruce — www.entypo.com
|
59
61
|
# License - http://creativecommons.org/licenses/by-sa/4.0/ (CC BY-SA 4.0)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
|
3
|
+
collapsible_example
|
4
|
+
embeds the provided snippet in a collapsible container
|
5
|
+
snippet path should be rooted in _includes
|
6
|
+
|
7
|
+
params:
|
8
|
+
file=<path-to-file> must be rooted in _includes
|
9
|
+
|
10
|
+
{%- endcomment -%}
|
11
|
+
|
12
|
+
{%- comment -%}push prior state{%- endcomment -%}
|
13
|
+
{%- assign __name_parts = name_parts -%}
|
14
|
+
{%- assign __example_id = example_id -%}
|
15
|
+
{%- assign __example_content = example_content -%}
|
16
|
+
|
17
|
+
{%- assign name_parts = include.file | split: '/' | last | split: '.' -%}
|
18
|
+
{%- assign example_id = name_parts.first | prepend: 'ex-' -%}
|
19
|
+
{%- capture example_content -%}
|
20
|
+
```{{ name_parts | last }}
|
21
|
+
{% include {{ include.file }} %}
|
22
|
+
```
|
23
|
+
{%- endcapture -%}
|
24
|
+
|
25
|
+
<div class="ui example segment">
|
26
|
+
<a class="ui top attached basic tiny label" onclick="toggle_collapsed('{{ example_id }}')">{% include icon.liquid id='plus-square-outline' %} toggle example</a>
|
27
|
+
<div id="{{ example_id }}" class="collapsible example collapsed">
|
28
|
+
{{ example_content | markdownify }}
|
29
|
+
</div>
|
30
|
+
<div class="ui bottom attached label"> {{ name_parts | join: '.' }} </div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
{%- comment -%}pop prior state{%- endcomment -%}
|
34
|
+
{%- assign example_content = __example_content -%}
|
35
|
+
{%- assign example_id = __example_id -%}
|
36
|
+
{%- assign name_parts = __name_parts -%}
|
data/_includes/scripts/page.js
CHANGED
data/_includes/styles/custom.css
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* CSS customizations
|
3
3
|
*
|
4
|
-
*
|
5
|
-
|
4
|
+
* this file is included after all other stye sheet files
|
5
|
+
* you can add rules here that will take precedence over any already defined by the theme
|
6
|
+
*/
|
@@ -247,6 +247,16 @@ pre.highlight {
|
|
247
247
|
width: fit-content;
|
248
248
|
max-width: 100%;
|
249
249
|
}
|
250
|
+
.example.segment {
|
251
|
+
min-height: 4rem;
|
252
|
+
background-color: transparent;
|
253
|
+
}
|
254
|
+
.collapsible.example {
|
255
|
+
display: block;
|
256
|
+
}
|
257
|
+
.collapsible.example.collapsed {
|
258
|
+
display: none;
|
259
|
+
}
|
250
260
|
.larger.text {
|
251
261
|
font-size: 150%;
|
252
262
|
}
|
data/_layouts/page.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: base
|
3
|
-
theme_version: 0.5.
|
3
|
+
theme_version: 0.5.19
|
4
4
|
theme_url: https://github.com/pixeldroid/programming-pages
|
5
5
|
---
|
6
6
|
|
@@ -52,4 +52,7 @@ theme_url: https://github.com/pixeldroid/programming-pages
|
|
52
52
|
{% include scripts/search.js %}
|
53
53
|
{% include scripts/page.js %}
|
54
54
|
{% include scripts/help.js %}
|
55
|
+
|
56
|
+
{% comment %} provide user extension / override point {% endcomment %}
|
57
|
+
{% include scripts/custom.js %}
|
55
58
|
</script>
|
data/assets/site.js
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
layout: compress
|
3
3
|
---
|
4
4
|
|
5
|
+
{% comment %} render-blocking scripts only {% endcomment %}
|
6
|
+
{% comment %} on-page-ready scripts are loaded by the page layout {% endcomment %}
|
7
|
+
|
5
8
|
{% include scripts/jquery/jquery-3.3.1.custom.min.js %}
|
6
9
|
{% include scripts/jquery-address/jquery-address-1.6.semantic-ui.min.js %}
|
7
10
|
|
data/assets/site.scss
CHANGED
@@ -39,5 +39,5 @@ layout: compress
|
|
39
39
|
{% comment %} not scss, needs liquid processing {% endcomment %}
|
40
40
|
{% include styles/programming-pages/tweaks.css %}
|
41
41
|
|
42
|
-
{% comment %}
|
42
|
+
{% comment %} provide user extension / override point {% endcomment %}
|
43
43
|
{% include styles/custom.css %}
|
data/screenshot.png
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: programming-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pixeldroid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- README.md
|
65
65
|
- _config.yml
|
66
66
|
- _data/icons/theme.yml
|
67
|
+
- _includes/collapsible_example.liquid
|
67
68
|
- _includes/elements/attribution.html
|
68
69
|
- _includes/elements/help.html
|
69
70
|
- _includes/elements/indices.html
|
@@ -75,6 +76,7 @@ files:
|
|
75
76
|
- _includes/package_shortener.liquid
|
76
77
|
- _includes/page_root.liquid
|
77
78
|
- _includes/render_indices.liquid
|
79
|
+
- _includes/scripts/custom.js
|
78
80
|
- _includes/scripts/example.js
|
79
81
|
- _includes/scripts/help.js
|
80
82
|
- _includes/scripts/indices.js
|