You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/07/23 07:28:51 UTC
[shardingsphere] branch master updated: support media: youtube and
bilibili by cayman (#6411)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new ee92109 support media: youtube and bilibili by cayman (#6411)
ee92109 is described below
commit ee921090ee84ed1b141a0a0f5f81b7175f858488
Author: CaymanHK <55...@users.noreply.github.com>
AuthorDate: Thu Jul 23 15:28:39 2020 +0800
support media: youtube and bilibili by cayman (#6411)
* support media: youtube and bilibili by cayman
* modify menu.html
---
docs/document/layouts/shortcodes/bilibili.html | 41 ++++++++++++++++++++++
.../hugo-theme-learn/layouts/partials/menu.html | 7 ++++
2 files changed, 48 insertions(+)
diff --git a/docs/document/layouts/shortcodes/bilibili.html b/docs/document/layouts/shortcodes/bilibili.html
new file mode 100644
index 0000000..5529c2d
--- /dev/null
+++ b/docs/document/layouts/shortcodes/bilibili.html
@@ -0,0 +1,41 @@
+<!DOCTYPE HTML>
+<html>
+
+<head>
+ <style type="text/css">
+ .aspect-ratio {
+ position: relative;
+ width: 100%;
+ height: 0;
+ padding-bottom: 75%;
+ }
+
+ .aspect-ratio iframe {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ left: 0;
+ top: 0;
+ }
+ </style>
+</head>
+
+<body>
+ <div class="aspect-ratio">
+ <iframe
+ src="https://player.bilibili.com/player.html?bvid={{.Get 0 }}&page={{ if .Get 1 }}{{.Get 1}}{{ else }}1&high_quality=1&danmaku=0{{end}}"
+ scrolling="no"
+ border="0"
+ frameborder="no"
+ framespacing="0"
+ allowfullscreen="true"
+ sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"
+ >
+ </iframe>
+ </div>
+</body>
+
+</html>
+
+<!-- arguements &high_quality=1&danmaku=0 in src control the quality of video and bullet-screen comments-->
+<!-- sandbox option avoid jumpping to bilibili.com -->
\ No newline at end of file
diff --git a/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html b/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
index dcd92e0..7b76ca6 100644
--- a/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
+++ b/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
@@ -84,6 +84,13 @@
</ul>
</section>
{{ end }}
+
+ <!-- download button -->
+ <hr />
+ <a class="padding" href=""> <!-- no link yet -->
+ <i class="fa fa-fw fa-file-pdf-o" ></i> Download PDF 👈<!-- is a placeholder -->
+ </a>
+
<section id="footer">
{{ partial "menu-footer.html" . }}
</section>