whisper.cat stuff

This commit is contained in:
[Harper Innes]
2023-10-05 23:28:32 +11:00
parent 2a6e28637c
commit f127b4fea8
5224 changed files with 919361 additions and 0 deletions

View File

@ -0,0 +1,4 @@
mixin example-code(cl)
pre.example-code
code(class=cl)
block

View File

@ -0,0 +1,3 @@
mixin example-content()
.example-content
block

View File

@ -0,0 +1,4 @@
mixin example-inline(content, type)
span.example-inline
code(class= type).
#{content}

View File

@ -0,0 +1,6 @@
mixin example()
-var label = 'Пример';
-if (lang == 'en') label = 'Example';
.example
.example--label= label
block

View File

@ -0,0 +1,18 @@
mixin param-header(name, type, defaults, id)
-var typeLabel = 'Тип';
-var defaultLabel = 'Значение по умолчанию';
-if (lang == 'en') {typeLabel = 'Type'; defaultLabel = 'Defaults'};
header.param-header
h3(id = id)= name
if type
p.param-header--row
span.param-header--label= typeLabel
+example-inline(type, 'js')
if (defaults || block)
p.param-header--row
span.param-header--label= defaultLabel
if defaults
+example-inline(defaults, 'js')
if block
block

View File

@ -0,0 +1,5 @@
mixin param(content, type)
span.param-inline
strong !{content}
if type
i= type