Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new (#1) #778

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ _config.yml

node_modules

.idea
.idea

.directory
91 changes: 89 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
language: node_js
node_js:
- "4"
dist: trusty
node_js:
- "7"
install:
- npm install hexo-cli -g
before_script:
- git clone https://github.com/neko-dev/hexo-theme-test-ci.git --depth=5
- cd hexo-theme-test-ci
- rm -rf .git
- cd _hexo
- npm install
- git clone https://github.com/viosey/hexo-theme-material.git themes/material
- cd themes/material
- git checkout -t origin/canary
- git pull
- rm -rf .git
- cd ..
- cd ..
- cd ..
- cp -i _config.theme.yml _hexo/themes/material/_config.yml
- cd _hexo
script:
- hexo clean
- hexo g
- mkdir ./deploy-git
- cd ./deploy-git
- git init
- git config --global push.default matching
- git config --global user.email "${GitHubEmail}"
- git config --global user.name "${GitHubUser}"
- git remote add origin https://${GitHubKEY}@github.com/${GitHubRepo}.git
- git pull origin ${DeployBranch}
- rm -rf ./*
- cp -rf ../public/* ./
- git add --all .
- git commit -m "Travis Auto Tester for Material Theme"
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepo}.git
- cd ..
- cd ..
- npm install selenium-webdriver
- sed -i "s/{bs_user}/${BrowserstackUser}/g" test.js
- sed -i "s/{bs_key}/${BrowserstackKey}/g" test.js
- sed -i "s/{bs_project}/${BrowserstackProject}/g" test.js
- sed -i "s/{bs_build_number}/${TRAVIS_BUILD_NUMBER}/g" test.js
- sed -i "s/{bs_commit}/${TRAVIS_COMMIT}/g" test.js
- mkdir -p ./_output/img/OSX_Safari_10.0
- node test.js _config/OSX_Safari_10.0 OSX_Safari_10.0
- mkdir -p ./_output/img/w10_chrome_60.0
- node test.js _config/w10_chrome_60.0 w10_chrome_60.0
- mkdir -p ./_output/img/w10_Edge_15
- node test.js _config/w10_Edge_15 w10_Edge_15
- mkdir -p ./_output/img/w10_Firefox_54.0
- node test.js _config/w10_Firefox_54.0 w10_Firefox_54.0
- mkdir -p ./_output/img/w10_IE_11.0
- node test.js _config/w10_IE_11.0 w10_IE_11.0
- mkdir -p ./_output/img/Android_SamsungGalaxyS5
- node test.js _config/Android_SamsungGalaxyS5 Android_SamsungGalaxyS5
- mkdir -p ./_output/img/iOS_iPhone6SPlus
- node test.js _config/iOS_iPhone6SPlus iOS_iPhone6SPlus
- cd ./_output
- git init
- git remote add origin https://${GitHubKEY}@github.com/${GitHubRepoBrowserstack}.git
- cp base.md OSX_Safari_10.0.md
- sed -i "s/{platfrom_browser_name}/OSX Safari 10.0/g" OSX_Safari_10.0.md
- sed -i "s/{platfrom_browser}/OSX_Safari_10.0/g" OSX_Safari_10.0.md
- cp base.md w10_chrome_60.0.md
- sed -i "s/{platfrom_browser_name}/Windows10 Chrome 60.0/g" w10_chrome_60.0.md
- sed -i "s/{platfrom_browser}/w10_chrome_60.0/g" w10_chrome_60.0.md
- cp base.md w10_Edge_15.md
- sed -i "s/{platfrom_browser_name}/Windows10 Edge 15/g" w10_Edge_15.md
- sed -i "s/{platfrom_browser}/w10_Edge_15/g" w10_Edge_15.md
- cp base.md w10_Firefox_54.0.md
- sed -i "s/{platfrom_browser_name}/Windows10 Firefox 54/g" w10_Firefox_54.0.md
- sed -i "s/{platfrom_browser}/w10_Firefox_54.0/g" w10_Firefox_54.0.md
- cp base.md w10_IE_11.0.md
- sed -i "s/{platfrom_browser_name}/Windows10 IE 11.0/g" w10_IE_11.0.md
- sed -i "s/{platfrom_browser}/w10_IE_11.0/g" w10_IE_11.0.md
- cp base.md Android_SamsungGalaxyS5.md
- sed -i "s/{platfrom_browser_name}/Android Android Samsung Galaxy S5/g" Android_SamsungGalaxyS5.md
- sed -i "s/{platfrom_browser}/Android_SamsungGalaxyS5/g" Android_SamsungGalaxyS5.md
- cp base.md iOS_iPhone6SPlus.md
- sed -i "s/{platfrom_browser_name}/iPhone 6S Plus/g" iOS_iPhone6SPlus.md
- sed -i "s/{platfrom_browser}/iOS_iPhone6SPlus/g" iOS_iPhone6SPlus.md
- rm base.md
- git add --all .
- git commit -m "Travis Auto Generate for Material Theme"
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepoBrowserstack}.git
notifications:
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify
108 changes: 82 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,85 @@
![](https://qiniu.viosey.com/img/Material-Phone-Render.png)
<p align="center">
<img src="https://i.loli.net/2017/09/07/59b1367f76fdb.png" alt="Material Render Phone">
</p>

# Material 原质
<h1 align="center"><a href="https://material.viosey.com" target="_blank">Material Theme</a></h1>

[Material Theme](https://material.viosey.com)
> Nature, Pure | 原质,纯粹

<p align="center">
<img alt="Version" src="https://img.shields.io/badge/version-1.5.6-757575.svg?style=flat-square"/>
<a href="https://viosey.com"><img alt="Author" src="https://img.shields.io/badge/author-Viosey-red.svg?style=flat-square"/></a>
<a href="https://hexo.io"><img alt="Hexo" src="https://img.shields.io/badge/hexo-3.0+-0e83cd.svg?style=flat-square"/></a>
<a href="https://nodejs.org/"><img alt="node.js" src="https://img.shields.io/badge/node.js-6.0%2B-43853d.svg?style=flat-square"/></a>
<a href="https://travis-ci.org/viosey/hexo-theme-material"><img alt="Build Status" src="https://img.shields.io/travis/viosey/hexo-theme-material.svg?style=flat-square"/></a>
<a href="https://www.npmjs.com/package/hexo-material"><img alt="npm" src="https://img.shields.io/npm/dt/hexo-material.svg?style=flat-square"/></a>
</p>

>Nature, Source | 原之质,物之渊

## Contents 目录

- [General 概括](#general-概括)
- [Introduction 介绍](#introduction-介绍)
- [Demo 演示](#demo-演示)
- [Quick start 快速开始](#quick-start-快速开始)
- [Docs 文档](#docs-文档)
- [Download 下载](#download-下载)
- [Contributing 贡献](#contributing-贡献)
- [License 许可证](#license-许可证)
- [Changelog 更新日志](#changelog-更新日志)
- [Support 支持](#support-支持)
- [Render 渲染](#render-渲染)
- [Changelog 开发日志](https://github.com/viosey/hexo-theme-material/releases)

## General 概括

[![Version](https://img.shields.io/badge/version-1.4.0-green.svg?style=flat-square)]()
[![Author](https://img.shields.io/badge/author-Viosey-blue.svg?style=flat-square)](https://viosey.com)
## Introduction 介绍

[![Hexo](https://img.shields.io/badge/hexo-3.0+-green.svg?style=flat-square)](https://hexo.io)
[![node.js](https://img.shields.io/badge/node.js-6.0%2B-green.svg?style=flat-square)](https://nodejs.org/)
An elegant, Pure & Material Design Theme for Hexo.
优雅、纯粹、质感的 Hexo 主题。

[![Build Status](https://img.shields.io/travis/viosey/hexo-theme-material.svg?style=flat-square)](https://travis-ci.org/viosey/hexo-theme-material)
[![npm](https://img.shields.io/npm/dt/hexo-material.svg?style=flat-square)](https://www.npmjs.com/package/hexo-material)

## Demo 演示

[Viosey's Blog](https://blog.viosey.com)
- [Material Demo](https://viosey.github.io/material-demo/)

## Quick start 快速开始

[Install Material](https://material.viosey.com/en/start/#install-material)
## Docs 文档

[安装 Material](https://material.viosey.com/start/#install-material)
[Material Docs 主题文档](https://neko-dev.github.io/material-theme-docs/#/)

> [Docs Source Code 主题源码](https://github.com/neko-dev/material-theme-docs)

## Docs 文档

[Material Theme Docs](https://material.viosey.com/en/)
## Download 下载

#### [Download latest release version](https://github.com/viosey/hexo-theme-material/releases/latest)

> Should be the most stable. Recommended for most users.
> 最稳定的版本,适合所有的用户。

#### [Download latest canary branch](https://github.com/viosey/hexo-theme-material/archive/canary.zip)

> Maybe unstable, but includes latest features. Recommended for developers.
> 包含最新的、尚在开发中的特性,可能不稳定;适合进阶用户。

#### [Download other version](https://github.com/viosey/hexo-theme-material/releases)

> You can decide which version to use. May no longer provide support.
> 你可以自己决定想要使用的版本;部分版本可能不再提供技术支持。

#### [Download using git](https://github.com/viosey/hexo-theme-material/releases)

> You can using git to choose which branch you want. For developer only.
> 你可以自己决定想要使用的分支;仅限开发者使用。

```bash
cd themes
git clone https://github.com/viosey/hexo-theme-material.git material
cd material
git checkout {branch/tags name}
```

[Material 主题文档](https://material.viosey.com)
----

>[Docs Markdown Files](https://github.com/viosey/material-theme-docs)
> ATTENTION! As the theme is developing, the theme config template will changes. To avoid conflict for users who are using `git pull` to upgrade the theme, we save the theme config template as `_config.template.yml`. You should make a copy of it and rename to `_config.yml`, then configure `_config.yml` when using the theme.
> **注意!** 在主题的开发迭代过程中,主题的配置文件模板 可能会改动。为了避免使用 `git pull` 更新主题的用户出现冲突,我们将 主题配置文件模板 命名为 `_config.template.yml`。配置主题时,你应该拷贝一份 `_config.template.yml` 并将其重命名为 `_config.yml`。


## Contributing 贡献
Expand All @@ -55,10 +88,16 @@ All kinds of contributions (enhancements, new features, documentation & code imp

Before you start your contributing, please read the [Contributing Rules Wiki](https://github.com/viosey/hexo-theme-material/wiki) first.

欢迎各种形式的贡献,包括但不限于优化,添加功能,文档 & 代码的改进,问题和 bugs 的报告。期待您的 `Pull Request`。
欢迎各种形式的贡献,包括但不限于优化,添加功能,文档 & 代码的改进,问题和 bugs 的报告。期待你的 `Pull Request`。

在参与贡献之前,请阅读[项目贡献 Wiki](https://github.com/viosey/hexo-theme-material/wiki),了解如何为 Material 主题贡献。

## Changelog 更新日志

[View our release notes](https://github.com/viosey/hexo-theme-material/releases)

[阅读我们的更新日志](https://github.com/viosey/hexo-theme-material/releases)


## License 许可证

Expand All @@ -69,14 +108,31 @@ Open sourced under the GPL v3.0 license.
根据 GPL V3.0 许可证开源。

## Support 支持

### BroswerStack

![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=V1VkWmJMRjJqcHBjN1BIVFRlNzExM05XUk5hemcydEpZTHRBdGd5V244ST0tLTlvNklDT1NuVXFDaTh0RDBnQ3RCdXc9PQ==--c986c45d7c10a3264f46b414944d6393ba74ea22%)

Proudly using BrowserStack.

[![](https://qiniu.viosey.com/img/browserstack_logo.png)](https://www.browserstack.com/)
[![](https://i.loli.net/2017/09/27/59cbc16b0f8b4.png)](https://www.browserstack.com/)

> **BrowserStack** is a cloud-based cross-browser testing tool that enables developers to test their websites across various browsers on different operating systems and mobile devices, without requiring users to install virtual machines, devices or emulators.

### jsDelivr

Thanks jsDelivr for providing MaterialCDN service.

> **jsDelivr** – Open Source CDN. free, fast, and reliable. You can using the files from GitHub or NPM and serve them using jsDelivr.

[![](https://data.jsdelivr.com/v1/package/npm/hexo-material/badge)](https://www.jsdelivr.com/package/npm/hexo-material)

[`http://cdn.jsdelivr.net/npm/hexo-material/source/`](http://cdn.jsdelivr.net/npm/hexo-material/source/)

[![](https://data.jsdelivr.com/v1/package/gh/viosey/hexo-theme-material/badge)](https://www.jsdelivr.com/package/gh/viosey/hexo-theme-material)

>**BrowserStack** is a cloud-based cross-browser testing tool that enables developers to test their websites across various browsers on different operating systems and mobile devices, without requiring users to install virtual machines, devices or emulators.
[`https://cdn.jsdelivr.net/gh/viosey/hexo-theme-material/source/`](https://cdn.jsdelivr.net/gh/viosey/hexo-theme-material/source/)

## Render 渲染

![](https://qiniu.viosey.com/img/Materia-overview-tiny.png)
![Materia-overview-tiny.png](https://i.loli.net/2017/09/28/59cccb0b25520.png)
Loading