mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-11 00:22:49 -05:00
fix template error and add thumbs up plugin
This commit is contained in:
@@ -249,8 +249,18 @@
|
||||
"other_docs_result_hint": "来自其它文档的结果",
|
||||
"curr_doc_result_hint": "当前文档搜索结果"
|
||||
}
|
||||
},
|
||||
"teedoc-plugin-thumbs-up": {
|
||||
"config": {
|
||||
"label_up": "有帮助",
|
||||
"label_down": "没帮助",
|
||||
"msg_already_voted": "您已经投过票了",
|
||||
"msg_thanks": "感谢您的反馈",
|
||||
"msg_down_prompt": "感谢反馈,请告诉我们可以改进什么地方?(最少 10 个字)",
|
||||
"msg_down_prompt_error": "消息最少需要 10 个字, 最多 256 个字",
|
||||
"msg_error": "请求服务器出现错误!"
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"show_source": "编辑本页"
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
{% extends "!footer.html" %} {% block extrafooter %}
|
||||
<meta http-equiv="Cache-Control" max-age=7200 />
|
||||
|
||||
<!-- <a href="https://github.com/Lichee-Pi">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/52760788cde945287fbb584134c4cbc2bc36f904/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67"
|
||||
alt="Fork LicheePi on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png">
|
||||
</a> -->
|
||||
|
||||
<a href="https://github.com/Lichee-Pi" class="github-corner" aria-label="View source on Github">
|
||||
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#2980B9; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
|
||||
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
|
||||
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
|
||||
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
|
||||
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
|
||||
fill="currentColor" class="octo-body"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<style>
|
||||
.github-corner:hover .octo-arm {
|
||||
animation: octocat-wave 560ms ease-in-out
|
||||
}
|
||||
|
||||
@keyframes octocat-wave {
|
||||
0%,
|
||||
100% {
|
||||
transform: rotate(0)
|
||||
}
|
||||
20%,
|
||||
60% {
|
||||
transform: rotate(-25deg)
|
||||
}
|
||||
40%,
|
||||
80% {
|
||||
transform: rotate(10deg)
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:500px) {
|
||||
.github-corner:hover .octo-arm {
|
||||
animation: none
|
||||
}
|
||||
.github-corner .octo-arm {
|
||||
animation: octocat-wave 560ms ease-in-out
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- 来必力City版安装代码 -->
|
||||
<div id="lv-container" data-id="city" data-uid="MTAyMC8zNDA5Mi8xMDYzMA==">
|
||||
<script type="text/javascript">
|
||||
(function(d, s) {
|
||||
var j, e = d.getElementsByTagName(s)[0];
|
||||
|
||||
if (typeof LivereTower === 'function') {
|
||||
return;
|
||||
}
|
||||
|
||||
j = d.createElement(s);
|
||||
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
|
||||
j.async = true;
|
||||
|
||||
e.parentNode.insertBefore(j, e);
|
||||
})(document, 'script');
|
||||
</script>
|
||||
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
|
||||
</div>
|
||||
<!-- City版安装代码已完成 -->
|
||||
<!-- End of Chaport Live Chat code -->
|
||||
{{ super() }} {% endblock %}
|
||||
@@ -1,47 +0,0 @@
|
||||
{% extends template.self %}
|
||||
{% block book_header %}
|
||||
<div class="sipeed-navbar navbar-collapse" id="navbar" role="navigation">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="https://www.sipeed.com" class="btn" target="_blank"><img src="/assets/icon_sipeed2.png" height="30" /></a></li>
|
||||
<li><a href="#" class="btn autohide" onclick="toggleLanguage()">English</a></li>
|
||||
{% for item in book.items %}
|
||||
{% if item.links %}
|
||||
<li>
|
||||
<a href="#" class="btn autohide"><i ></i>{{item.name}}</a>
|
||||
<ul class="hovershow">
|
||||
{% for entry in item.links %}
|
||||
<li><a href="{{entry.link}}" class="btn" target="_blank">{{entry.name}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{item.link}}" class="btn autohide" target="_blank"><i ></i>{{item.name}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for item in book.version %}
|
||||
{% if item.links %}
|
||||
<li class="version-link">
|
||||
<a class="btn" >版本 <span style="font-weight:bold">{{item.name}}</span></a>
|
||||
<ul class="hovershow">
|
||||
{% for entry in item.links %}
|
||||
<li><a href="{{entry.link}}" class="btn">版本: <span style="font-weight:bold">{{entry.name}}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{item.link}}" class="btn">{{item.name}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="book-header" role="navigation">
|
||||
{% if glossary.path %}
|
||||
<a href="{{ ('/' + glossary.path)|resolveFile }}" class="btn pull-left" aria-label="{{ "GLOSSARY_OPEN"|t }}"><i class="fa fa-sort-alpha-asc"></i></a>
|
||||
{% endif %}
|
||||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||||
<a href="{{ "/"|resolveFile }}" >{{ page.title }}</a>
|
||||
</h1>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,54 +0,0 @@
|
||||
{% extends template.self %}
|
||||
{% block book_sidebar %}
|
||||
<nav role="navigation" class="autoshow">
|
||||
<ul class="summary">
|
||||
<li><a href="https://www.sipeed.com" class="btn" target="_blank"><img src="/assets/icon_sipeed2.png" height="30" /></a></li>
|
||||
<li><a href="#" class="btn" onclick="toggleLanguage()">English</a></li>
|
||||
{% for item in book.version %}
|
||||
{% if item.links %}
|
||||
<li class="version-link">
|
||||
<a href="#" class="btn" style="color:#444"></i>Version: <span style="font-weight: bold; display: inline">{{item.name}}</span></a>
|
||||
<ul class="hovershow">
|
||||
{% for entry in item.links %}
|
||||
<li><a href="{{entry.link}}" class="btn">Version: <span style="font-weight:bold; display: inline">{{entry.name}}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{item.link}}" class="btn"></i>{{item.name}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for item in book.items %}
|
||||
{% if item.links %}
|
||||
<li>
|
||||
<a href="#" class="btn"><i ></i>{{item.name}}</a>
|
||||
<ul>
|
||||
{% for entry in item.links %}
|
||||
<li><a href="{{entry.link}}" class="btn">{{entry.name}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{item.link}}" class="btn"><i ></i>{{item.name}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
{% block javascript %}
|
||||
{{ super() }}
|
||||
<script type="text/javascript">
|
||||
function toggleLanguage () {
|
||||
var path = location.href;
|
||||
// console.log(path);
|
||||
if (path.indexOf('/zh') !== -1) {
|
||||
path = path.replace(/\/zh[\/$\s]/i, '/en/');
|
||||
} else if (path.indexOf('/en') !== -1) {
|
||||
path = path.replace(/\/en[\/$\s]/i, '/zh/');
|
||||
}
|
||||
// console.log('after: ' + path);
|
||||
location.assign(path);
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
@@ -185,6 +185,14 @@
|
||||
"second_color": "#e25d55"
|
||||
}
|
||||
}
|
||||
},
|
||||
"teedoc-plugin-thumbs-up": {
|
||||
"from": "pypi",
|
||||
"config": {
|
||||
"url": "http://49.234.194.98:5728",
|
||||
"show_up_count": true,
|
||||
"show_down_count": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"rebuild_changes_delay": 1,
|
||||
|
||||
Reference in New Issue
Block a user