mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 16:52:21 +03:00
Add videos section to resources
This commit is contained in:
parent
f2b6b98b75
commit
b3e502a076
|
@ -82,7 +82,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"V_CSS": "2.0.0",
|
"V_CSS": "2.0.1",
|
||||||
"V_JS": "2.0.1",
|
"V_JS": "2.0.1",
|
||||||
"DEFAULT_SYNTAX": "python",
|
"DEFAULT_SYNTAX": "python",
|
||||||
"ANALYTICS": "UA-58931649-1",
|
"ANALYTICS": "UA-58931649-1",
|
||||||
|
|
|
@ -312,6 +312,14 @@ mixin github(repo, file, height, alt_file, language)
|
||||||
+button(gh(repo, alt_file || file), false, "primary", "small") View on GitHub
|
+button(gh(repo, alt_file || file), false, "primary", "small") View on GitHub
|
||||||
|
|
||||||
|
|
||||||
|
//- Youtube video embed
|
||||||
|
id - [string] ID of YouTube video.
|
||||||
|
ratio - [string] Video ratio, "16x9" or "4x3".
|
||||||
|
|
||||||
|
mixin youtube(id, ratio)
|
||||||
|
figure.o-video.o-block(class="o-video--" + (ratio || "16x9"))
|
||||||
|
iframe.o-video__iframe(src="https://www.youtube.com/embed/#{id}" frameborder="0" height="500" allowfullscreen)
|
||||||
|
|
||||||
|
|
||||||
//- Images / figures
|
//- Images / figures
|
||||||
url - [string] url or path to image
|
url - [string] url or path to image
|
||||||
|
|
|
@ -177,6 +177,22 @@
|
||||||
border-radius: $border-radius
|
border-radius: $border-radius
|
||||||
|
|
||||||
|
|
||||||
|
//- Responsive Video embeds
|
||||||
|
|
||||||
|
.o-video
|
||||||
|
position: relative
|
||||||
|
height: 0
|
||||||
|
|
||||||
|
@each $ratio1, $ratio2 in (16, 9), (4, 3)
|
||||||
|
&.o-video--#{$ratio1}x#{$ratio2}
|
||||||
|
padding-bottom: (100% * $ratio2 / $ratio1)
|
||||||
|
|
||||||
|
.o-video__iframe
|
||||||
|
@include position(absolute, top, left, 0, 0)
|
||||||
|
@include size(100%)
|
||||||
|
border-radius: var(--border-radius)
|
||||||
|
|
||||||
|
|
||||||
//- Form fields
|
//- Form fields
|
||||||
|
|
||||||
.o-field
|
.o-field
|
||||||
|
|
|
@ -166,6 +166,7 @@
|
||||||
"Demos & Visualizations": "demos",
|
"Demos & Visualizations": "demos",
|
||||||
"Books & Courses": "books",
|
"Books & Courses": "books",
|
||||||
"Jupyter Notebooks": "notebooks",
|
"Jupyter Notebooks": "notebooks",
|
||||||
|
"Videos": "videos",
|
||||||
"Research": "research"
|
"Research": "research"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -114,6 +114,11 @@ include ../_includes/_mixins
|
||||||
.u-text-right
|
.u-text-right
|
||||||
+button(gh("spacy-notebooks"), false, "primary", "small") See more notebooks on GitHub
|
+button(gh("spacy-notebooks"), false, "primary", "small") See more notebooks on GitHub
|
||||||
|
|
||||||
|
+section("videos")
|
||||||
|
+h(2, "videos") Videos
|
||||||
|
|
||||||
|
+youtube("sqDHBH9IjRU")
|
||||||
|
|
||||||
+section("research")
|
+section("research")
|
||||||
+h(2, "research") Research systems
|
+h(2, "research") Research systems
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user