aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_coverpage.md12
-rw-r--r--assets/img/logo.pngbin0 -> 22403 bytes
-rw-r--r--assets/img/logo.svg60
-rw-r--r--index.html53
-rw-r--r--zh-cn/_coverpage.md12
5 files changed, 129 insertions, 8 deletions
diff --git a/_coverpage.md b/_coverpage.md
new file mode 100644
index 00000000..810257dc
--- /dev/null
+++ b/_coverpage.md
@@ -0,0 +1,12 @@
+<img src="/assets/img/logo.svg" width="16%" />
+
+# xmake <small>2.2.7</small>
+
+> A cross-platform build utility based on Lua
+
+- Simple grammar, get started quickly
+- Cross-platform build, full platform coverage
+- Modern C/C++ build tools, multi-language hybrid compilation support
+
+[github](https://github.com/xmake-io/xmake/)
+[Getting Started](/guide/installation)
diff --git a/assets/img/logo.png b/assets/img/logo.png
new file mode 100644
index 00000000..e1819749
--- /dev/null
+++ b/assets/img/logo.png
Binary files differ
diff --git a/assets/img/logo.svg b/assets/img/logo.svg
new file mode 100644
index 00000000..6bce7552
--- /dev/null
+++ b/assets/img/logo.svg
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg width="64" height="64" version="1.1" xmlns="http://www.w3.org/2000/svg">
+ <defs>
+ <filter id="dropshadow">
+ <feGaussianBlur in="SourceGraphic" stdDeviation="0.5"/>
+ <feOffset dx="-0.3" dy="-0.3" result="offsetblur"/>
+ <feMerge>
+ <feMergeNode/>
+ <feMergeNode in="SourceGraphic"/>
+ </feMerge>
+ </filter>
+ <clipPath id="circlewrapper">
+ <circle cx="32" cy="32" r="27"/>
+ </clipPath>
+ </defs>
+ <style type="text/css">
+ #background{
+ fill:white;
+ }
+ #midground{
+ fill:#8BC34A;
+ }
+ #shadowline{
+ stroke:#444;
+ stroke-width:1px;
+ fill:transparent;
+ }
+ #foreground{
+ fill:rgba(0,150,136,0.76);
+ }
+ #inside_g{
+ clip-path:url(#circlewrapper);
+ }
+ #outside_g{
+ fill:#e0f2f1;
+ }
+ #inside_layout{
+ transform:translateY(5px);
+ }
+ #outside_s{
+ filter:url(#dropshadow);
+ fill:rgba(0,0,0,0.2);
+ }
+ #inside_w{
+ filter:url(#dropshadow);
+ }
+ </style>
+ <circle id="outside_s" cx="32" cy="32" r="30"/>
+ <circle id="outside_g" cx="32" cy="32" r="30"/>
+ <g id="inside_w">
+ <g id="inside_g">
+ <g id="inside_layout">
+ <polygon id="background" points="64,4 64,62 62,64 1,64 0,63 0,40 60,3"/>
+ <polygon id="midground" points="0,63 1,64 62,64 64,62 64,50 4,13 1,12.5 0,13"/>
+ <polygon id="foreground" points="64,4 64,62 62,64 1,64 0,63 0,40 60,3"/>
+ </g>
+ </g>
+ </g>
+</svg>
diff --git a/index.html b/index.html
index 373a0cdc..35d99075 100644
--- a/index.html
+++ b/index.html
@@ -8,6 +8,7 @@
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
+ <link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
<style>
nav.app-nav li ul {
min-width: 100px;
@@ -21,7 +22,6 @@
name: 'xmake',
repo: 'https://github.com/xmake-io/xmake',
auto2top: true,
- coverpage: true,
executeScript: true,
loadSidebar: true,
loadNavbar: true,
@@ -30,6 +30,8 @@
notFoundPage: true,
maxLevel: 6,
subMaxLevel: 4,
+ onlyCover: true,
+ coverpage: ['/', '/zh-cn/'],
markdown: {
renderer: {
image: function(href, title) {
@@ -51,15 +53,18 @@
'/sponsor': '/about/sponsor'
},
search: {
- noData: {
- '/zh-cn/': '没有结果!',
- '/': 'No results!'
- },
+ maxAge: 86400000,
paths: 'auto',
placeholder: {
'/zh-cn/': '搜索',
- '/': 'Search'
- }
+ '/': 'Type to search'
+ },
+ noData: {
+ '/zh-cn/': '找不到结果',
+ '/': 'No Results'
+ },
+ depth: 6,
+ hideOtherSidebarContent: false
},
formatUpdated: '{MM}/{DD} {HH}:{mm}',
plugins: [
@@ -76,7 +81,7 @@
return editHtml
+ html
+ '\n\n----\n\n'
- + '<a href="https://xmake.io" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by xmake.io</a>'
+ + '<a href="https://xmake.io" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Copyright (c) 2015-present xmake.io & tboox.org</a>'
})
}
]
@@ -87,5 +92,37 @@
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-lua.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
+ <script src="//unpkg.com/docsify-copy-code"></script>
+ <!-- gitalk -->
+ <script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script>
+ <script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
+ <script>
+ const gitalk = new Gitalk({
+ clientID: 'cb53dd42b1b654202a55',
+ clientSecret: '8a9a0e7feadc575b8bba9770cd9454d7423028ac',
+ repo: 'xmake-docs',
+ owner: 'waruqi',
+ admin: ['waruqi'],
+ id: location.pathname,
+ distractionFreeMode: false
+ })
+ </script>
+ <!-- gitter -->
+ <script>
+ ((window.gitter = {}).chat = {}).options = {
+ room: 'tboox/tboox'
+ };
+ </script>
+ <script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
+ <!-- baidu stats -->
+ <script>
+ var _hmt = _hmt || [];
+ (function() {
+ var hm = document.createElement("script");
+ hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a";
+ var s = document.getElementsByTagName("script")[0];
+ s.parentNode.insertBefore(hm, s);
+ })();
+ </script>
</body>
</html>
diff --git a/zh-cn/_coverpage.md b/zh-cn/_coverpage.md
new file mode 100644
index 00000000..80098b33
--- /dev/null
+++ b/zh-cn/_coverpage.md
@@ -0,0 +1,12 @@
+<img src="/assets/img/logo.svg" width="16%" />
+
+# xmake <small>2.2.7</small>
+
+> 一个基于Lua的轻量级跨平台自动构建工具
+
+- 语法简洁,快速上手
+- 跨平台构建,全平台覆盖
+- 现代化的C/C++构建工具,多语言混合编译支持
+
+[GitHub](https://github.com/xmake-io/xmake/)
+[快速开始](/zh-cn/guide/installation)