sanskrit-documentation-theme 0.1.4 → 0.1.5
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/_layouts/page.html +16 -3
- data/assets/css/class-styles-general.scss +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd581a9c7ea861e41e86afe8f73048dae42c4d45c4b117b27711248816a005e6
|
|
4
|
+
data.tar.gz: 4ed8c32e37bfbe7f77fe899482fdb62c6fdf3ea71db563a96111059daa3b08b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f442ce5f4ef24c104192b0bf96ba5fe6567da5e1b4b8a8efef9d69da6aeb2bbd0bdf97bf8e023e6fdb779fa48c3013044b9f135b8ba07bb858c14c6e84d350a4
|
|
7
|
+
data.tar.gz: 68a6cc9fa1093c868dd3724dc35a23db1c9e81b39b90bf8559a8c0d43d86fc607120f41911eee98d277261d137c9d753fddf74f6e43bc2ccad5a13788027b9b9
|
data/_layouts/page.html
CHANGED
|
@@ -27,7 +27,10 @@ layout: default
|
|
|
27
27
|
{% include custom/{{page.map_name}}.html %}
|
|
28
28
|
|
|
29
29
|
{% endif %}
|
|
30
|
-
<div class="post-content" unicode_script="{{ page.unicode_script }}"
|
|
30
|
+
<div class="post-content" unicode_script="{{ page.unicode_script }}"
|
|
31
|
+
{% if page.emphasis_as_inline_comments %} emphasis_as_inline_comments
|
|
32
|
+
{% endif %}
|
|
33
|
+
>
|
|
31
34
|
|
|
32
35
|
{% if page.summary %}
|
|
33
36
|
<div class="summary">{{page.summary}}</div>
|
|
@@ -44,8 +47,18 @@ layout: default
|
|
|
44
47
|
|
|
45
48
|
{% endif %}
|
|
46
49
|
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
|
|
51
|
+
{% if page.format_inline_comments %}
|
|
52
|
+
{% assign inline_comment_type1_regex = '\[\[(.+?)\]\]' %}
|
|
53
|
+
{% assign inline_comment_type1_regex_replacement = '<div class="inline_comment">[\1]</div>' %}
|
|
54
|
+
{% assign inline_comment_type2_regex = '\(=(.+?)\)' %}
|
|
55
|
+
{% assign inline_comment_type2_regex_replacement = '<div class="inline_comment">(=\1)</div>' %}
|
|
56
|
+
{% assign dummy_example = '(=कश्चित्)' %}
|
|
57
|
+
<!--Handles stuff like: जरते (=स्तौति) स्वा॒धीः or त्रे॒धा {रूपाणि अग्नि-विद्युत्-सूर्यास्} त्र॒याणि॑-->
|
|
58
|
+
{{content| replace_regex: inline_comment_type1_regex, inline_comment_type1_regex_replacement | replace_regex: inline_comment_type2_regex, inline_comment_type2_regex_replacement}}
|
|
59
|
+
{% else %}
|
|
60
|
+
{{content}}
|
|
61
|
+
{% endif %}
|
|
49
62
|
|
|
50
63
|
<div class="tags">
|
|
51
64
|
{% if page.tags != null %}
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
/************************************************************/
|
|
6
6
|
/* Some boxes*/
|
|
7
7
|
|
|
8
|
+
.inline_comment {
|
|
9
|
+
font-size: 70%;
|
|
10
|
+
color: firebrick;
|
|
11
|
+
display: inline;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
.bs-callout {
|
|
9
15
|
padding: 20px;
|
|
10
16
|
margin: 20px 0;
|
|
@@ -115,6 +121,14 @@ p.external a {
|
|
|
115
121
|
font-size: 130%;
|
|
116
122
|
}
|
|
117
123
|
|
|
124
|
+
*[emphasis_as_inline_comments] {
|
|
125
|
+
em {
|
|
126
|
+
// Copied from inline_comments class above.
|
|
127
|
+
font-size: 70%;
|
|
128
|
+
color: firebrick;
|
|
129
|
+
display: inline;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
118
132
|
/************************************************************/
|
|
119
133
|
|
|
120
134
|
p.post-meta {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sanskrit-documentation-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vvasuki
|
|
@@ -72,14 +72,14 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.
|
|
75
|
+
version: 1.1.0
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.
|
|
82
|
+
version: 1.1.0
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: bundler
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|