Skip to content

Commit 941f22d

Browse files
author
Yuriy Bondarenko
committed
up
1 parent 8e52b57 commit 941f22d

File tree

8 files changed

+162
-117
lines changed

8 files changed

+162
-117
lines changed

.markdownlint.json

+10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
{
2+
"MD007": {
3+
"indent": 4
4+
},
25
"MD010": false,
36
"MD013": false,
47
"MD022": false,
58
"MD025": false,
69
"MD026": false,
10+
"MD030": {
11+
"ol_single": 2,
12+
"ul_single": 3,
13+
"ol_multi": 2,
14+
"ul_multi": 3,
15+
"list"
16+
},
717
"MD033": false,
818
"MD036": false,
919
"MD040": false,

.prettierrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"options": {
1212
"parser": "markdown",
1313
"useTabs": false,
14-
"tabWidth": 2
14+
"tabWidth": 4
1515
}
1616
},
1717
{

docs/.pages

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
nav:
2-
- index.md
2+
- 🏠: index.md
33
- xslt
44
- xpath
55
- exslt
66
- recipes
7-
- tr.md
87
- Спасибо: https://boosty.to/bndby

docs/index.md

+32-11
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,43 @@ hide:
55
- toc # Hide table of contents
66
---
77

8-
# Справочники
8+
# ![XSLT](xslt.svg){: style="height:42px;width:42px;vertical-align:middle;"} Справочник XSLT
99

10-
[XSLT](/xslt/)
11-
: Справочник по элементам XSLT 1.0 на русском языке.
10+
**XSLT** — языка преобразований XML документов в другие XML документы.
1211

13-
[XPath](/xpath/)
14-
: Справочник по функциям XPath 1.0 на русском языке
12+
<div class="grid cards" style="margin-top: 1.6em" markdown>
1513

16-
[Спецификация](/tr/)
17-
: Перевод рекомендации W3C на русский язык
14+
- :material-xml:{ .lg .middle } **XSLT**
1815

19-
[EXSLT](/exslt/)
20-
: Общественная инициатива по созданию расширений для XSLT, придающих бо́льшую функциональность языку трансформаций
16+
***
2117

22-
[Рецепты](/recipes/)
23-
: Сборник рецептов XSLT
18+
Документация по XSLT
19+
20+
**[:octicons-arrow-right-24: XSLT](/xslt/)** <small>1.0</small>
21+
22+
[:octicons-arrow-right-24: Спецификация XSLT](/tr/) <small>1.0</small>
23+
24+
[:octicons-arrow-right-24: EXSLT](/exslt/) &mdash; <small>расширение XSLT</small>
25+
26+
- :octicons-rel-file-path-24:{ .lg .middle } **XPath**
27+
28+
***
29+
30+
Справочник по функциям XPath
31+
32+
[:octicons-arrow-right-24: XPath](/xpath/) <small>1.0</small>
33+
34+
- :material-file-document-outline:{ .lg .middle } **Гайды**
35+
36+
***
37+
38+
Сборник рецептов XSLT
39+
40+
[:octicons-arrow-right-24: Рецепты](/recipes/)
41+
42+
</div>
43+
44+
***
2445

2546
!!!abstract "Справочники"
2647

mkdocs.yml

+19-9
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,39 @@ theme:
2929
features:
3030
- navigation.tabs
3131
- navigation.tracking
32-
- navigation.instant
3332
- navigation.top
33+
- navigation.footer
34+
- navigation.indexes
3435
- content.action.edit
36+
- content.code.copy
3537
favicon: xslt.svg
3638
logo: xslt.svg
3739

3840
markdown_extensions:
3941
- admonition
40-
- codehilite:
41-
guess_lang: false
42-
linenums: false
4342
- toc:
4443
permalink: true
4544
- pymdownx.extra
45+
- pymdownx.critic
46+
- pymdownx.caret
47+
- pymdownx.keys
48+
- pymdownx.mark
49+
- pymdownx.tilde
4650
- pymdownx.details
4751
- pymdownx.emoji:
4852
emoji_index: !!python/name:materialx.emoji.twemoji
4953
emoji_generator: !!python/name:materialx.emoji.to_svg
50-
- pymdownx.tabbed
54+
- pymdownx.tabbed:
55+
alternate_style: true
56+
- pymdownx.highlight:
57+
pygments_lang_class: true
58+
linenums: true
59+
- pymdownx.inlinehilite
60+
- pymdownx.snippets
5161
- pymdownx.superfences
52-
- attr_list
53-
- md_in_html
62+
- pymdownx.arithmatex:
63+
generic: true
64+
- pymdownx.smartsymbols
5465

5566
plugins:
5667
- search:
@@ -60,7 +71,6 @@ plugins:
6071
- ru
6172
- en
6273
- awesome-pages
63-
- section-index
6474
- social
6575

6676
extra:
@@ -89,4 +99,4 @@ extra:
8999
name: XSLT docs
90100

91101
extra_css:
92-
- '/assets/stylesheets/styles.css?3'
102+
- '/assets/stylesheets/styles.css?4'

netlify.toml

-93
This file was deleted.

overrides/assets/stylesheets/styles.css

+98
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,101 @@ h3 {
166166
background: url('/heart.svg') left center / 16px 16px
167167
no-repeat;
168168
}
169+
170+
/* mkdocs cards*/
171+
.md-typeset .grid {
172+
grid-gap: 0.8rem;
173+
display: grid;
174+
grid-template-columns: repeat(
175+
auto-fit,
176+
minmax(16rem, 1fr)
177+
);
178+
margin: 1em 0;
179+
}
180+
.md-typeset .grid.cards > ol,
181+
.md-typeset .grid.cards > ul {
182+
display: contents;
183+
}
184+
.md-typeset .grid.cards > ol > li,
185+
.md-typeset .grid.cards > ul > li,
186+
.md-typeset .grid > .card {
187+
border: 0.05rem solid
188+
var(--md-default-fg-color--lightest);
189+
border-radius: 0.1rem;
190+
display: block;
191+
margin: 0;
192+
padding: 0.8rem;
193+
transition: border 0.25s, box-shadow 0.25s;
194+
box-shadow: var(--md-shadow-z1);
195+
}
196+
.md-typeset .grid.cards > ol > li:focus-within,
197+
.md-typeset .grid.cards > ol > li:hover,
198+
.md-typeset .grid.cards > ul > li:focus-within,
199+
.md-typeset .grid.cards > ul > li:hover,
200+
.md-typeset .grid > .card:focus-within,
201+
.md-typeset .grid > .card:hover {
202+
border-color: #0000;
203+
box-shadow: var(--md-shadow-z2);
204+
}
205+
.md-typeset .grid.cards > ol > li > hr,
206+
.md-typeset .grid.cards > ul > li > hr,
207+
.md-typeset .grid > .card > hr {
208+
margin-bottom: 1em;
209+
margin-top: 1em;
210+
}
211+
.md-typeset .grid.cards > ol > li > :first-child,
212+
.md-typeset .grid.cards > ul > li > :first-child,
213+
.md-typeset .grid > .card > :first-child {
214+
margin-top: 0;
215+
}
216+
.md-typeset .grid.cards > ol > li > :last-child,
217+
.md-typeset .grid.cards > ul > li > :last-child,
218+
.md-typeset .grid > .card > :last-child {
219+
margin-bottom: 0;
220+
}
221+
.md-typeset .grid > *,
222+
.md-typeset .grid > .admonition,
223+
.md-typeset .grid > .highlight > *,
224+
.md-typeset .grid > .highlighttable,
225+
.md-typeset .grid > .md-typeset details,
226+
.md-typeset .grid > details,
227+
.md-typeset .grid > pre {
228+
margin-bottom: 0;
229+
margin-top: 0;
230+
}
231+
.md-typeset .grid > .highlight > pre:only-child,
232+
.md-typeset .grid > .highlight > pre > code,
233+
.md-typeset .grid > .highlighttable,
234+
.md-typeset .grid > .highlighttable > tbody,
235+
.md-typeset .grid > .highlighttable > tbody > tr,
236+
.md-typeset .grid > .highlighttable > tbody > tr > .code,
237+
.md-typeset
238+
.grid
239+
> .highlighttable
240+
> tbody
241+
> tr
242+
> .code
243+
> .highlight,
244+
.md-typeset
245+
.grid
246+
> .highlighttable
247+
> tbody
248+
> tr
249+
> .code
250+
> .highlight
251+
> pre,
252+
.md-typeset
253+
.grid
254+
> .highlighttable
255+
> tbody
256+
> tr
257+
> .code
258+
> .highlight
259+
> pre
260+
> code {
261+
height: 100%;
262+
}
263+
.md-typeset .grid > .tabbed-set {
264+
margin-bottom: 0;
265+
margin-top: 0;
266+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"build": "mkdocs build",
1212
"serve": "mkdocs serve --dirtyreload",
13-
"upgrade": "pip3 install --upgrade -r ./requirements.txt"
13+
"upgrade": "pip3 install --upgrade -r ./requirements.txt"
1414
},
1515
"repository": {
1616
"type": "git",

0 commit comments

Comments
 (0)