diff options
Diffstat (limited to 'landing')
24 files changed, 1450 insertions, 0 deletions
diff --git a/landing/README.md b/landing/README.md new file mode 100644 index 00000000..228eebfb --- /dev/null +++ b/landing/README.md @@ -0,0 +1,21 @@ +# xmake.io + +This is a [Jekyll][1] theme for [@jasonlong][2]'s [Cayman theme][4] on [GitHub Pages][3]. + +# Developing + +Start a local server at localhost:4000: + +``` +$ jekyll serve +``` + +# Publishing site + +``` +$ ./build +``` + +For more details read about [Jekyll][1] on its web page. + + diff --git a/landing/_config.yml b/landing/_config.yml new file mode 100644 index 00000000..4c46dd42 --- /dev/null +++ b/landing/_config.yml @@ -0,0 +1,21 @@ +# Setup +title: xmake +tagline: A make-like build utility based on Lua +tagline-cn: 一个基于Lua的轻量级自动构建工具 +keywords: make,makefile,build,lua,cross-compile,linux +keywords-cn: make,makefile,构建工具,编译工具,lua,跨平台,跨平台开发,linux,交叉编译 +baseurl: "" +paginate: 1 + +# About/contact +author: + name: waruqi + url: http://www.tboox.org + +#Others +markdown: kramdown + +# multiple-languages +gems: ['jekyll-paginate', 'jekyll-multiple-languages'] +languages: ['en', 'cn'] +language_default: 'en' diff --git a/landing/_includes/head.cn.html b/landing/_includes/head.cn.html new file mode 100644 index 00000000..c99dc89e --- /dev/null +++ b/landing/_includes/head.cn.html @@ -0,0 +1,23 @@ +<head> + <meta charset="UTF-8"> + <title>{{ site.title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="{{site.tagline-cn}}"> + <meta name="keywords" content="{{site.keywords-cn}}" /> + + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/normalize.css"> + <link rel='stylesheet' href="{{ site.baseurl }}/assets/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/cayman.css"> + + <!-- 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> +</head> diff --git a/landing/_includes/head.html b/landing/_includes/head.html new file mode 100644 index 00000000..77eaa8d4 --- /dev/null +++ b/landing/_includes/head.html @@ -0,0 +1,23 @@ +<head> + <meta charset="UTF-8"> + <title>{{ site.title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="{{site.tagline}}"> + <meta name="keywords" content="{{site.keywords}}" /> + + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/normalize.css"> + <link rel='stylesheet' href="{{ site.baseurl }}/assets/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/cayman.css"> + + <!-- 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> +</head> diff --git a/landing/_includes/page-footer.html b/landing/_includes/page-footer.html new file mode 100644 index 00000000..bb306a49 --- /dev/null +++ b/landing/_includes/page-footer.html @@ -0,0 +1,12 @@ +<footer class="site-footer"> + <span class="site-footer-owner">Copyright (c) 2015-2017 <a href="{{ site.author.url }}">tboox.org</a>.</span> + <span class="site-footer-power"> + <span> + <!--Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="http://pages.coding.me">Coding Pages</a>.--> + Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://pages.github.com/">Github Pages</a>. + </span> + <span> + Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>. + </span> +</span> +</footer> diff --git a/landing/_includes/page-header.cn.html b/landing/_includes/page-header.cn.html new file mode 100644 index 00000000..e58830f0 --- /dev/null +++ b/landing/_includes/page-header.cn.html @@ -0,0 +1,18 @@ +<section class="page-header"> + <h1 class="project-name">{{ site.title }}</h1> + <h2 class="project-tagline">{{ site.tagline-cn }}</h2> + <a href="/#/zh/" class="btn">开始使用</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 86px"> + <img src="{{site.baseurl}}/assets/img/patreon.png"> + <a href="{{site.baseurl}}/cn/pages/donation.html#donate">支持我们</a> + </span> + <br><br> +<ul id="translations"> + <li><a href="{{site.baseurl}}/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="{{site.baseurl}}/" class="nav-link">English</a></li> + </ul> +</section> + diff --git a/landing/_includes/page-header.html b/landing/_includes/page-header.html new file mode 100644 index 00000000..8ebabfb7 --- /dev/null +++ b/landing/_includes/page-header.html @@ -0,0 +1,18 @@ +<section class="page-header"> + <h1 class="project-name">{{ site.title }}</h1> + <h2 class="project-tagline">{{ site.tagline }}</h2> + <a href="/#/home" class="btn">GET STARTED</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 100px"> + <img src="{{site.baseurl}}/assets/img/patreon.png"> + <a href="{{site.baseurl}}/pages/donation.html#donate">Support us</a> + </span> + <br><br> + <ul id="translations"> + <li><a href="{{site.baseurl}}/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="{{site.baseurl}}/" class="nav-link">English</a></li> + </ul> +</section> + diff --git a/landing/_layouts/default.cn.html b/landing/_layouts/default.cn.html new file mode 100644 index 00000000..82da5f6c --- /dev/null +++ b/landing/_layouts/default.cn.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en-us"> + + {% include head.cn.html %} + + <body> + {% include page-header.cn.html %} + + <section class="main-content"> + + {{ content }} + + {% include page-footer.html %} + + </section> + + </body> +</html> diff --git a/landing/_layouts/default.html b/landing/_layouts/default.html new file mode 100644 index 00000000..8a21bd71 --- /dev/null +++ b/landing/_layouts/default.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en-us"> + + {% include head.html %} + + <body> + {% include page-header.html %} + + <section class="main-content"> + + {{ content }} + + {% include page-footer.html %} + + </section> + + </body> +</html> diff --git a/landing/_layouts/post.html b/landing/_layouts/post.html new file mode 100644 index 00000000..5b12153c --- /dev/null +++ b/landing/_layouts/post.html @@ -0,0 +1,7 @@ +--- +layout: default +--- +<h2>{{ page.title }}</h2> +<p class="meta">{{ page.date | date_to_string }}</p> + +{{ content }}
\ No newline at end of file diff --git a/landing/_posts/donation.md b/landing/_posts/donation.md new file mode 100644 index 00000000..c17f1d89 --- /dev/null +++ b/landing/_posts/donation.md @@ -0,0 +1,6 @@ +--- +layout: default +title: {{ site.name }} +--- + +oasdad diff --git a/landing/assets/css/cayman.css b/landing/assets/css/cayman.css new file mode 100644 index 00000000..b67d1e8f --- /dev/null +++ b/landing/assets/css/cayman.css @@ -0,0 +1,320 @@ +* { + box-sizing: border-box; } + +body { + padding: 0; + margin: 0; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.5; + color: #606c71; } + +a { + color: #1e6bb8; + text-decoration: none; } + a:hover { + text-decoration: underline; } + +.btn { + display: inline-block; + margin-bottom: 1rem; + color: rgba(255, 255, 255, 0.7); + background-color: rgba(255, 255, 255, 0.08); + border-color: rgba(255, 255, 255, 0.2); + border-style: solid; + border-width: 1px; + border-radius: 0.3rem; + transition: color 0.2s, background-color 0.2s, border-color 0.2s; } + .btn:hover { + color: rgba(255, 255, 255, 0.8); + text-decoration: none; + background-color: rgba(255, 255, 255, 0.2); + border-color: rgba(255, 255, 255, 0.3); } + .btn + .btn { + margin-left: 1rem; } + @media screen and (min-width: 64em) { + .btn { + padding: 0.75rem 1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .btn { + padding: 0.6rem 0.9rem; + font-size: 0.9rem; } } + @media screen and (max-width: 42em) { + .btn { + display: block; + width: 100%; + padding: 0.75rem; + font-size: 0.9rem; } + .btn + .btn { + margin-top: 1rem; + margin-left: 0; } } + +.page-header { + color: #fff; + text-align: center; + background-color: #159957; + background-image: linear-gradient(120deg, #155799, #159957); } + @media screen and (min-width: 64em) { + .page-header { + padding: 5rem 6rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .page-header { + padding: 3rem 4rem; } } + @media screen and (max-width: 42em) { + .page-header { + padding: 2rem 1rem; } } + +.project-name { + margin-top: 0; + margin-bottom: 0.1rem; } + @media screen and (min-width: 64em) { + .project-name { + font-size: 3.25rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .project-name { + font-size: 2.25rem; } } + @media screen and (max-width: 42em) { + .project-name { + font-size: 1.75rem; } } + +.project-tagline { + margin-bottom: 2rem; + font-weight: normal; + opacity: 0.7; } + @media screen and (min-width: 64em) { + .project-tagline { + font-size: 1.25rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .project-tagline { + font-size: 1.15rem; } } + @media screen and (max-width: 42em) { + .project-tagline { + font-size: 1rem; } } + +.main-content { + word-wrap: break-word; } + .main-content :first-child { + margin-top: 0; } + @media screen and (min-width: 64em) { + .main-content { + max-width: 64rem; + padding: 2rem 6rem; + margin: 0 auto; + font-size: 1.1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .main-content { + padding: 2rem 4rem; + font-size: 1.1rem; } } + @media screen and (max-width: 42em) { + .main-content { + padding: 2rem 1rem; + font-size: 1rem; } } + .main-content img { + max-width: 100%; } + .main-content h1, + .main-content h2, + .main-content h3, + .main-content h4, + .main-content h5, + .main-content h6 { + margin-top: 2rem; + margin-bottom: 1rem; + font-weight: normal; + color: #159957; } + .main-content p { + margin-bottom: 1em; } + .main-content code { + padding: 2px 4px; + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 0.9rem; + color: #567482; + background-color: #f3f6fa; + border-radius: 0.3rem; } + .main-content pre { + padding: 0.8rem; + margin-top: 0; + margin-bottom: 1rem; + font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; + color: #567482; + word-wrap: normal; + background-color: #f3f6fa; + border: solid 1px #dce6f0; + border-radius: 0.3rem; } + .main-content pre > code { + padding: 0; + margin: 0; + font-size: 0.9rem; + color: #567482; + word-break: normal; + white-space: pre; + background: transparent; + border: 0; } + .main-content .highlight { + margin-bottom: 1rem; } + .main-content .highlight pre { + margin-bottom: 0; + word-break: normal; } + .main-content .highlight pre, + .main-content pre { + padding: 0.8rem; + overflow: auto; + font-size: 0.9rem; + line-height: 1.45; + border-radius: 0.3rem; + -webkit-overflow-scrolling: touch; } + .main-content pre code, + .main-content pre tt { + display: inline; + max-width: initial; + padding: 0; + margin: 0; + overflow: initial; + line-height: inherit; + word-wrap: normal; + background-color: transparent; + border: 0; } + .main-content pre code:before, .main-content pre code:after, + .main-content pre tt:before, + .main-content pre tt:after { + content: normal; } + .main-content ul, + .main-content ol { + margin-top: 0; } + .main-content blockquote { + padding: 0 1rem; + margin-left: 0; + color: #819198; + border-left: 0.3rem solid #dce6f0; } + .main-content blockquote > :first-child { + margin-top: 0; } + .main-content blockquote > :last-child { + margin-bottom: 0; } + .main-content table { + display: block; + width: 100%; + overflow: auto; + word-break: normal; + word-break: keep-all; + -webkit-overflow-scrolling: touch; } + .main-content table th { + font-weight: bold; } + .main-content table th, + .main-content table td { + padding: 0.5rem 1rem; + border: 1px solid #e9ebec; } + .main-content dl { + padding: 0; } + .main-content dl dt { + padding: 0; + margin-top: 1rem; + font-size: 1rem; + font-weight: bold; } + .main-content dl dd { + padding: 0; + margin-bottom: 1rem; } + .main-content hr { + height: 2px; + padding: 0; + margin: 1rem 0; + background-color: #eff0f1; + border: 0; } + +.site-footer { + padding-top: 2rem; + margin-top: 2rem; + border-top: solid 1px #eff0f1; } + @media screen and (min-width: 64em) { + .site-footer { + font-size: 1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .site-footer { + font-size: 1rem; } } + @media screen and (max-width: 42em) { + .site-footer { + font-size: 0.9rem; } } + +.site-footer-owner { + display: block; + text-align:center; + font-weight: bold; } + +.site-footer-power { + display: block; + font-size: 0.6rem; + text-align:center;} + +.site-footer-credits { + color: #819198; } + +.donate { + vertical-align: top; + height: 20px; + border: 1px solid #d4d4d4; + display: inline-block; + box-sizing: border-box; + line-height: 16px; + border-radius: 3px; + cursor: pointer; + background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%); + position: relative; + width: 72px; +} +.donate:hover { + border-color: #ccc; + background-image: linear-gradient(to bottom, #eee 0, #ddd 100%); +} +.donate img { + width: 14px; + height: 14px; + position: absolute; + top: 2px; + left: 5px; +} +.donate a { + font: 700 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif; + color: #333; + text-shadow: 0 1px 0 #fff; + position: absolute; + top: 2px; + left: 24px; +} + +#nav, +#translations { + list-style-type: none; + text-align: center; + padding: 0; + margin: 0; +} +#nav li, +#translations li { + display: inline-block; + position: relative; + line-height: 40px; +} +#nav li:last-child .nav-link, +#translations li:last-child .nav-link { + margin-right: 0; +} +#translations { + margin-bottom: 0em; +} +#translations .delimiter { + color: #7f8c8d; + margin: 0 5px; +} +#translations .nav-link { + margin: 0; +} +.nav-link { + color: #7f8c8d; + padding-bottom: 3px; + margin: 0 1.5em; +} +.nav-link:first-child { + margin-left: 0; +} +.nav-link:hover, +.nav-link.current { + border-bottom: 3px solid #42b983; +} diff --git a/landing/assets/css/normalize.css b/landing/assets/css/normalize.css new file mode 100644 index 00000000..30366a6e --- /dev/null +++ b/landing/assets/css/normalize.css @@ -0,0 +1,424 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/landing/assets/css/opensans.css b/landing/assets/css/opensans.css new file mode 100644 index 00000000..ebac7ce8 --- /dev/null +++ b/landing/assets/css/opensans.css @@ -0,0 +1,112 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} diff --git a/landing/assets/img/alipay.png b/landing/assets/img/alipay.png Binary files differnew file mode 100644 index 00000000..bc1088d0 --- /dev/null +++ b/landing/assets/img/alipay.png diff --git a/landing/assets/img/donate.gif b/landing/assets/img/donate.gif Binary files differnew file mode 100644 index 00000000..d6df5107 --- /dev/null +++ b/landing/assets/img/donate.gif diff --git a/landing/assets/img/patreon.png b/landing/assets/img/patreon.png Binary files differnew file mode 100644 index 00000000..aa0e4aee --- /dev/null +++ b/landing/assets/img/patreon.png diff --git a/landing/assets/img/paypal.png b/landing/assets/img/paypal.png Binary files differnew file mode 100644 index 00000000..780c84f6 --- /dev/null +++ b/landing/assets/img/paypal.png diff --git a/landing/assets/img/weixin.png b/landing/assets/img/weixin.png Binary files differnew file mode 100644 index 00000000..1b1880b9 --- /dev/null +++ b/landing/assets/img/weixin.png diff --git a/landing/favicon.ico b/landing/favicon.ico Binary files differnew file mode 100644 index 00000000..937a26ff --- /dev/null +++ b/landing/favicon.ico diff --git a/landing/index.cn.md b/landing/index.cn.md new file mode 100644 index 00000000..86c9ad98 --- /dev/null +++ b/landing/index.cn.md @@ -0,0 +1,159 @@ +--- +layout: default.cn +title: {{ site.name }} +--- + +## 安装 + +#### 使用curl + +```bash +bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh) +``` + +#### 使用wget + +```bash +bash <(wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -) +``` + +#### 使用powershell + +```bash +Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.ps1' -UseBasicParsing).Content +``` + +## 简单的工程描述 + +```lua +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +## 构建工程 + +```bash +$ xmake +``` + +## 运行目标 + +```bash +$ xmake run console +``` + +## 调试程序 + +```bash +$ xmake run -d console +``` + +## 支持特性 + +* Tasks +* Macros +* Actions +* Options +* Plugins +* Modules +* Templates + +## 支持平台 + +* Windows (x86, x64) +* Macosx (i386, x86_64) +* Linux (i386, x86_64, cross-toolchains ...) +* Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a) +* iPhoneOS (armv7, armv7s, arm64, i386, x86_64) +* WatchOS (armv7k, i386) +* Mingw (i386, x86_64) + +## 支持语言 + +* C/C++ +* Objc/Objc++ +* Swift +* Assembly +* Golang +* Rust +* Dlang + +## 内置插件 + +* 宏记录脚本和回放插件 +* 加载自定义lua脚本插件 +* 生成IDE工程文件插件(makefile, vs2002 - vs2017, ...) +* 生成doxygen文档插件 + +## 更多插件 + +请到插件仓库进行下载安装: [xmake-plugins](https://github.com/tboox/xmake-plugins). + +## 更多例子 + +Debug和Release模式: + +```lua +if is_mode("debug") then + set_symbols("debug") + set_optimize("none") +end + +if is_mode("release") then + set_symbols("hidden") + set_optimize("fastest") + set_strip("all") +end + +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +自定义脚本: + +```lua +target("test") + set_kind("static") + add_files("src/*.cpp") + after_build(function (target) + print("build %s ok!", target:targetfile()) + end) +``` + +使用扩展模块: + +```lua +target("test") + set_kind("shared") + add_files("src/*.c") + on_load(function (target) + import("lib.detect.find_package") + target:add(find_package("zlib")) + end) +``` + +## 项目例子 + +一些使用xmake的项目: + +* [tbox](https://github.com/tboox/tbox) +* [gbox](https://github.com/tboox/gbox) +* [vm86](https://github.com/tboox/vm86) +* [更多](https://github.com/vm86/xmake/wiki/%E4%BD%BF%E7%94%A8xmake%E7%9A%84%E5%BC%80%E6%BA%90%E5%BA%93) + +## 演示视频 + +[](https://asciinema.org/a/133693) + +## 联系方式 + +* 邮箱:[waruqi@gmail.com](mailto:waruqi@gmail.com) +* 主页:[tboox.org](http://www.tboox.org/cn) +* 社区:[TBOOX开源社区](https://github.com/tboox/community/issues) +* 聊天:[](https://gitter.im/tboox/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +* 源码:[Github](https://github.com/tboox/xmake), [Gitee](https://gitee.com/tboox/xmake) +* QQ群:343118190 +* 微信公众号:tboox-os + diff --git a/landing/index.md b/landing/index.md new file mode 100644 index 00000000..3c55aa14 --- /dev/null +++ b/landing/index.md @@ -0,0 +1,156 @@ +--- +layout: default +title: {{ site.name }} +--- + +## Installation + +#### via curl + +```bash +bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh) +``` + +#### via wget + +```bash +bash <(wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -) +``` + +#### via powershell + +```bash +Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.ps1' -UseBasicParsing).Content +``` + +## Simple description + +```lua +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +## Build project + +```bash +$ xmake +``` + +## Run target + +```bash +$ xmake run console +``` + +## Debug target + +```bash +$ xmake run -d console +``` + +## Support features + +* Tasks +* Macros +* Actions +* Options +* Plugins +* Modules +* Templates + +## Support platforms + +* Windows (x86, x64) +* Macosx (i386, x86_64) +* Linux (i386, x86_64, cross-toolchains ...) +* Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a) +* iPhoneOS (armv7, armv7s, arm64, i386, x86_64) +* WatchOS (armv7k, i386) +* Mingw (i386, x86_64) + +## Support Languages + +* C/C++ +* Objc/Objc++ +* Swift +* Assembly +* Golang +* Rust +* Dlang + +## Builtin Plugins + +* Macros script plugin +* Run the custom lua script plugin +* Generate IDE project file plugin(makefile, vs2002 - vs2017 .. ) +* Generate doxygen document plugin + +## More Plugins + +Please download and install from the plugins repository [xmake-plugins](https://github.com/tboox/xmake-plugins). + +## More Examples + +Debug and release modes: + +```lua +if is_mode("debug") then + set_symbols("debug") + set_optimize("none") +end + +if is_mode("release") then + set_symbols("hidden") + set_optimize("fastest") + set_strip("all") +end + +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +Custom script: + +```lua +target("test") + set_kind("static") + add_files("src/*.cpp") + after_build(function (target) + print("build %s ok!", target:targetfile()) + end) +``` + +Extension Modules: + +```lua +target("test") + set_kind("shared") + add_files("src/*.c") + on_load(function (target) + import("lib.detect.find_package") + target:add(find_package("zlib")) + end) +``` + +## Project Examples + +Some projects using xmake: + +* [tbox](https://github.com/tboox/tbox) +* [gbox](https://github.com/tboox/gbox) +* [vm86](https://github.com/tboox/vm86) +* [more](https://github.com/tboox/xmake/wiki/xmake-projects) + +## Example Video + +[](https://asciinema.org/a/133693) + +## Contacts + +* Email:[waruqi@gmail.com](mailto:waruqi@gmail.com) +* Homepage:[tboox.org](http://www.tboox.org) +* Community:[tboox@community](https://github.com/tboox/community/issues) +* ChatRoom:[](https://gitter.im/tboox/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +* Source Code:[Github](https://github.com/tboox/xmake), [Gitee](https://gitee.com/tboox/xmake) diff --git a/landing/pages/donation.cn.md b/landing/pages/donation.cn.md new file mode 100644 index 00000000..ceca8369 --- /dev/null +++ b/landing/pages/donation.cn.md @@ -0,0 +1,46 @@ +--- +layout: default.cn +title: {{ site.name }} +--- + +<div id="donate"></div> + +xmake项目属于个人开源项目,它的发展需要您的帮助,如果您愿意支持xmake项目的开发,欢迎为其捐赠,支持它的发展。 + +## 支付宝 + +<img src="{{site.baseurl}}/assets/img/alipay.png" alt="alipay" width="256" height="256"> + +账号:waruqi@gmail.com + +## 微信 + +<img src="{{site.baseurl}}/assets/img/weixin.png" alt="weixin" width="218" height="218"> + +## Paypal + +[](http://paypal.me/tboox/5) + +## 支持者 + +<a href="https://opencollective.com/xmake#backers" target="_blank"><img src="https://opencollective.com/xmake/backers.svg?width=890"></a> + +| 2016.11.10 | [lc-soft](https://github.com/lc-soft) | oschina | ¥10 | + +## 赞助者 + +通过赞助支持此项目,您的logo和网站链接将显示在这里。[[赞助此项目](https://opencollective.com/xmake#sponsor)] + +<a href="https://opencollective.com/xmake/sponsor/0/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/0/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/1/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/1/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/2/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/2/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/3/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/3/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/4/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/4/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/5/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/5/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/6/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/6/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/7/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/7/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/8/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/8/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/9/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/9/avatar.svg"></a> + + + diff --git a/landing/pages/donation.md b/landing/pages/donation.md new file mode 100644 index 00000000..9290741d --- /dev/null +++ b/landing/pages/donation.md @@ -0,0 +1,48 @@ +--- +layout: default +title: {{ site.name }} +--- + +<div id="donate"></div> + +The xmake projects is a personal open source projects, their development need your help. + +If you would like to support the development of xmake, welcome to donate to us. + +## Paypal + +[](http://paypal.me/tboox/5) + +## Backers + +<a href="https://opencollective.com/xmake#backers" target="_blank"><img src="https://opencollective.com/xmake/backers.svg?width=890"></a> + +| 2016.11.10 | [lc-soft](https://github.com/lc-soft) | oschina | ¥10 | + +## Sponsors + +Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/xmake#sponsor)] + +<a href="https://opencollective.com/xmake/sponsor/0/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/0/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/1/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/1/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/2/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/2/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/3/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/3/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/4/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/4/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/5/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/5/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/6/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/6/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/7/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/7/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/8/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/8/avatar.svg"></a> +<a href="https://opencollective.com/xmake/sponsor/9/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/9/avatar.svg"></a> + +## Alipay + +<img src="{{site.baseurl}}/assets/img/alipay.png" alt="alipay" width="256" height="256"> + +## Weixin + +<img src="{{site.baseurl}}/assets/img/weixin.png" alt="weixin" width="218" height="218"> + + + + + |
