[release]

This commit is contained in:
junhuanchen
2022-07-06 11:24:18 +08:00
parent 617071829d
commit e75d983e11
2979 changed files with 179509 additions and 1570 deletions

View File

@@ -1,17 +0,0 @@
/config/
gulpfile.js
.markdownlint.json
package.json
.gitignore
.bookignore
/README.md
/zh/CONTRIBUTING.md
*.xlsx
*.orig
*.less
*.ai
.travis.yml
deploy.sh
serve.sh
serve_daemon.sh

59
.github/workflows/publish.yml vendored Executable file
View File

@@ -0,0 +1,59 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: build doc and push to github pages
run: |
pip3 install setuptools
pip3 install teedoc
ls -al ~/.local/bin/
export PATH=~/.local/bin/:$PATH
teedoc install
teedoc build
out_dir=out`python3 -c 'import json; f=open("site_config.json");config=json.load(f);print(config["site_root_url"])'`
sync_gitee=`pwd`/.github/workflows/sync_gitee.yml
cd $out_dir
git init
git config user.name ${{ secrets.GIT_NAME }}
git config user.email ${{ secrets.GIT_EMAIL }}
git remote add upstream "git@github.com:${{ secrets.REPO }}.git"
mkdir -p .github/workflows
cp $sync_gitee .github/workflows/
git add -A
git commit -m "rebuild website ad $GITHUB_REF"
SSHPATH="$HOME/.ssh"
rm -rf "$SSHPATH"
mkdir -p "$SSHPATH"
echo "${{ secrets.ACCESS_KEY }}" > "$SSHPATH/id_rsa"
chmod 600 "$SSHPATH/id_rsa"
sudo sh -c "echo StrictHostKeyChecking no >>/etc/ssh/ssh_config"
git push upstream HEAD:gh-pages --force

40
.github/workflows/sync_gitee.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
# This is a basic workflow to help you get started with Actions
name: sync code to gitee
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
sync_gitee:
name: sync repo to gitee
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout code from github
uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: sync shell cmd
run: |
GITEE_GIT_ADDR="git@gitee.com:Sipeed/sipeed_wiki.git"
git fetch --unshallow
SSHPATH="$HOME/.ssh"
rm -rf "$SSHPATH"
mkdir -p "$SSHPATH"
echo "${{ secrets.GITEE_SYNC_ACCESSS_KEY }}" > "$SSHPATH/id_rsa"
chmod 600 "$SSHPATH/id_rsa"
sudo sh -c "echo StrictHostKeyChecking no >>/etc/ssh/ssh_config"
git remote add upstream $GITEE_GIT_ADDR
git push upstream --all --force

15
.gitignore vendored
View File

@@ -1,10 +1,5 @@
npm-debug.log
.DS_Store
node_modules/
output/
.vscode/
_book/
*.epub
*.mobi
serve.tmp
*-lock.json
out
__pycache__
temp
.vscode
.ipynb_checkpoints

View File

@@ -1,5 +0,0 @@
{
"fenced-code-language": false,
"ol-prefix": false,
"line-length": false
}

View File

@@ -1,48 +0,0 @@
language: node_js
node_js:
- "8"
# 缓存依赖
cache:
directories:
- $HOME/.npm
before_install:
- export TZ='Asia/Shanghai' # 更改时区
# 依赖安装
install:
- npm install gitbook-cli -g
# 安装 gitbook 插件
- gitbook install
# 构建脚本
script:
# 自定义输出目录 gitbook build src dest
- gitbook build . ./build
# 分支白名单
branches:
only:
- master # 只对 master 分支进行构建
- dev
- /v*.*/
# # GitHub Pages 部署
# deploy:
# provider: pages
# skip_cleanup: true
# # 在项目仪表盘的 Settings -> Environment Variables 中配置
# github_token: $GITHUB_TOKEN
# # 将 build 目录下的内容推送到默认的 gh-pages 分支上,并不会连带 build/zh 目录一起
# local_dir: build/zh
# #fqdn: $CUSTOM_DOMAIN
# name: $GIT_NAME
# email: $GIT_EMAIL
# on:
# branch: master
# 不使用travis的github pages构建功能,自定义脚本
after_success:
- bash ./deploy.sh

1
CNAME
View File

@@ -1 +0,0 @@
wiki.sipeed.com

View File

@@ -1,2 +0,0 @@
- [English](/en)
- [中文](/zh)

21
LICENSE Executable file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Neucrack(CZD666666@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

66
README.md Normal file → Executable file
View File

@@ -1,48 +1,18 @@
Sipeed Wiki pages
===========
|[Read me online](https://wiki.sipeed.com/en/) | [在线阅读](https://wiki.sipeed.com/zh/) |
| ------------------------ | ----------- |
[![Build Status](https://travis-ci.org/sipeed/sipeed_wiki.svg?branch=master)](https://travis-ci.org/sipeed/sipeed_wiki)
-----------------------------------------------------------------------
## Build Doc
This documentation site is powered by GitBook. You can check out the online version here.
You need Node.js and npm to be able to build the site.
To install gitbook:
```
npm install gitbook-cli -g
```
Get Doc source code:
```
sudo apt install git
git clone https://github.com/sipeed/sipeed_wiki.git
```
Install gitbook plugins:
```
cd sipeed_wiki
gitbook install
```
Serve as a website:
```
chmod +x serve.sh
./serve.sh
```
Then visit http://localhost:4000
# Sipeed wiki source code
=====
Related site: [wiki.sipeed.com](https://wiki.sipeed.com)
If you want change document or add one, do the following choice.
## Fix error
If you find any error on wiki page, just fix it on github and **Commit changes**, thanks for correcting.
## Share article
We are glad that people share their article on our wiki page
Choose one language below to start to know how to share article.
[中文](./share_docs/zh/readme.md) [English](./share_docs/en/readme.md)

View File

@@ -1,90 +0,0 @@
{
"title": "Sipeed Wiki",
"description": "Sipeed Wiki pages",
"author":"sipeed",
"plugins": [
"my-toolbar",
"-lunr",
"-search",
"search-title",
"anchor-navigation-ex",
"anchorjs",
"sharing",
"splitter",
"edit-link",
"ga",
"expandable-chapters-small@git+https://github.com/sipeed/gitbook-plugin-expandable-chapters-small.git"
],
"styles": {
"website": "./styles/website.css"
},
"pluginsConfig": {
"github": {
"url": "https://github.com/sipeed/sipeed_wiki"
},
"my-toolbar": {
"buttons": [
{
"label": "Github",
"text":" ",
"icon": "fa fa-github",
"position": "left",
"target": "_blank",
"url": "https://github.com/sipeed/sipeed_wiki"
}
]
},
"search": {
"maxIndexSize": 1000000000
},
"lunr": {
"maxIndexSize": 1000000000
},
"edit-link": {
"base": "https://github.com/sipeed/sipeed_wiki/blob/master",
"label": ""
},
"sharing": {
"douban": false,
"facebook": true,
"google": true,
"hatenaBookmark": false,
"instapaper": false,
"line": false,
"linkedin": false,
"messenger": false,
"pocket": false,
"qq": false,
"qzone": false,
"stumbleupon": false,
"twitter": true,
"viber": false,
"vk": false,
"weibo": true,
"whatsapp": false,
"all": [
"weibo",
"facebook",
"google",
"twitter",
"vk"
]
},
"anchor-navigation-ex": {
"associatedWithSummary": false,
"showLevel": true,
"multipleH1": false,
"mode": "float",
"pageTop": {
"showLevelIcon": true,
"level1Icon": "fa fa-angle-double-right",
"level2Icon": "fa fa-angle-double-right",
"level3Icon": "fa fa-angle-double-right"
}
},
"ga": {
"token": "UA-119047820-2"
}
}
}

230
config/config_en.json Executable file
View File

@@ -0,0 +1,230 @@
{
"locale": "en",
"navbar": {
"title": "wiki",
"logo": {
"alt": "sipeed wiki logo",
"src": "/static/image/logo.svg"
},
"home_url": "/en/",
"items": [
{
"label": "Products",
"position": "left",
"type": "list",
"items": [
{
"url": "/hardware/zh/maix/index.html",
"label": "Maix-I"
},
{
"url": "/hardware/zh/maixII/index.html",
"label": "Maix-II"
},
{
"url": "/hardware/zh/lichee/index.html",
"label": "Lichee-Pi"
},
{
"url": "/hardware/en/tang/index.html",
"label": "Tang"
},
{
"url": "/hardware/zh/longan/Nano/Longan_nano.html",
"label": "Longan"
},
{
"url":"/hardware/zh/modules_spmod/spmod_extender.html",
"label":"SP-Mod"
}
]
},
{
"label": "Software Docs",
"position": "left",
"type": "list",
"items": [
{
"url": "/soft/maixpy/en/index.html",
"label": "MaixPy"
},
{
"url": "/soft/maixpy3/zh/index.html",
"label": "MaixPy3"
},
{
"url": "/soft/Lichee/zh/index.html",
"label": "Lichee"
}
]
},
{
"label": "Online Service",
"position": "left",
"type":"list",
"items":[
{
"label":"AI Trainning platform",
"url":"https://www.maixhub.com",
"target": "_blank"
},
{
"label":"Download center",
"url":"https://dl.sipeed.com/",
"target": "_blank"
}
]
},
{
"label": "Online Group",
"url": "/community.html",
"position": "left"
},
{
"label":"Articles",
"url":"/news/",
"position":"left"
},
{
"label": "Online Store",
"url": "/store.html",
"position": "right"
},
{
"label":"Contribute docs",
"url":"/share_docs/en/",
"position": "right"
},
{
"label": "Github ",
"position": "right",
"url": "https://github.com/sipeed",
"target": "_blank"
},
{
"id": "language",
"label": "Language: ",
"position": "right",
"type": "language"
}
]
},
"footer":{
"top":[
{
"label": "Other links",
"items": [
{
"label": "Sipeed",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "BBS ",
"url": "https://bbs.sipeed.com/",
"target": "_blank"
},
{
"label": "Maixhub",
"url": "https://maixhub.sipeed.com/",
"target": "_blank"
},
{
"label": "Sipeed AliExpress",
"url": "https://sipeed.aliexpress.com/store/911876460",
"target": "_blank"
},
{
"label": "Build by teedoc ",
"url": "https://github.com/neutree/teedoc",
"target": "_blank"
}
]
},
{
"label": "Source Code",
"items": [
{
"label": "Website source code",
"url": "https://github.com/sipeed/sipeed_wiki",
"target": "_blank"
},
{
"label": "Open Souecr Code",
"url": "https://github.com/sipeed",
"target": "_blank"
}
]
},
{
"label": "Follow us",
"items": [
{
"label": "github",
"url": "https://github.com/sipeed",
"target":"_blank"
},
{
"label": "twitter",
"url": "https://twitter.com/SipeedIO",
"target":"_blank"
},
{
"label": "AliExpress",
"url": "https://sipeed.aliexpress.com/store/911876460",
"target":"_blank"
},
{
"label": "more",
"url": "/community.html"
}
]
},
{
"label": "Contact us",
"items": [
{
"label": "Tel: +86 0755-27808509"
},
{
"label": "Business mail: support@sipeed.com"
},
{
"label": "Adress: 深圳市宝安区新湖路4008号蘅芳科技办公大厦A座-2101C"
},
{
"label": "Join us",
"url": "/join_us.html"
}
]
}
],
"bottom": [
{
"label": "©2018-2021 深圳矽速科技有限公司",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "粤ICP备19015433号-1",
"url": "https://beian.miit.gov.cn/#/Integrated/index",
"target": "_blank"
}
]
},
"plugins": {
"teedoc-plugin-search":{
"config": {
"search_hint": "Search",
"input_hint": "Input keyword. Using Space to separate multiple keywords",
"loading_hint": "Loading, please wait",
"download_err_hint": "Fail download, Please retry or check network",
"other_docs_result_hint": "Results form other doc",
"curr_doc_result_hint": "Result form current doc"
}
}
},
"show_source": "Edit this page"
}

250
config/config_en_copy.json Normal file
View File

@@ -0,0 +1,250 @@
{
"navbar": {
"title": "wiki",
"logo": {
"alt": "sipeed wiki logo",
"src": "/static/image/logo.svg"
},
"home_url": "/en/",
"items": [
{
"url": "/en/",
"label": "Home",
"position": "left"
},
{
"url": "https://www.sipeed.com",
"label": "Sipeed",
"target": "_blank",
"position": "left"
},
{
"label": "software",
"position": "left",
"type": "list",
"items": [
{
"url": "/soft/maixpy/en/",
"label": "Maixpy"
},
{
"url": "/soft/maixpy3/en/",
"label": "Maixpy3"
},
{
"url":"/soft/Tang/en/",
"label":"Tang"
}
]
},
{
"label": "Hardware",
"position": "left",
"type": "list",
"items": [
{
"url": "/hardware/en/maix/index.html",
"label": "Maix-I"
},
{
"url": "/hardware/en/maixII/index.html",
"label": "Maix-II"
},
{
"url": "/hardware/en/maixIII/index.html",
"label": "Maix-III"
},
{
"url": "/hardware/en/maixIV/index.html",
"label": "Maix-IV"
},
{
"url": "/hardware/en/lichee/index.html",
"label": "Lichee Pi"
},
{
"url": "/hardware/en/tang/index.html",
"label": "Tang"
},
{
"url": "/hardware/en/longan/index.html",
"label": "Longan"
}
]
},
{
"label": "Commercial products",
"position": "left",
"type": "list",
"items": [
{
"url": "/hardware/maixface/zh/",
"label": "Maix Face"
}
]
},
{
"label": "Platform",
"position": "left",
"type": "list",
"items": [
{
"url": "https://www.maixhub.com",
"label": "Maixhub model training platform",
"target": "_blank"
},
{
"url": "https://www.maixhub.com/compile",
"label": "Firmware online compile",
"target": "_blank"
}
]
},
{
"label": "Community",
"url": "/en/community.html",
"position": "left"
},
{
"url": "/en/store.html",
"label": "Store",
"position": "left"
},
{
"id": "language",
"label": "Language: ",
"position": "right",
"type": "selection",
"items": [
{
"id": "zh",
"url": "/",
"label": "中文"
},
{
"id": "en",
"url": "/en/",
"label": "English"
}
]
}
]
},
"footer":{
"top":[
{
"label": "Links",
"items": [
{
"label": "Sipeed",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "BBS",
"url": "https://bbs.sipeed.com/",
"target": "_blank"
},
{
"label": "Maixhub",
"url": "https://maixhub.sipeed.com/",
"target": "_blank"
},
{
"label": "Sipeed Taobao",
"url": "https://sipeed.taobao.com/",
"target": "_blank"
},
{
"label": "Site generated by teedoc",
"url": "https://github.com/neutree/teedoc",
"target": "_blank"
}
]
},
{
"label": "Site and analytics",
"items": [
{
"label": "Baidu analytics",
"url": "https://tongji.baidu.com/web/welcome/ico?s=9cb07365544a53067c56c346c838181a",
"target": "_blank"
},
{
"label": "Sitemap",
"url": "/sitemap.xml"
}
]
},
{
"label": "Source code",
"items": [
{
"label": "Wiki source code",
"url": "https://github.com/sipeed/sipeed_wiki",
"target": "_blank"
},
{
"label": "Open source projects",
"url": "https://github.com/sipeed",
"target": "_blank"
}
]
},
{
"label": "Fllow us",
"items": [
{
"label": "github",
"url": "https://github.com/sipeed",
"target":"_blank"
},
{
"label": "twitter",
"url": "https://twitter.com/SipeedIO",
"target":"_blank"
},
{
"label": "Taobao store",
"url": "https://sipeed.taobao.com/",
"target":"_blank"
},
{
"label": "More",
"url": "/social_group.html"
}
]
},
{
"label": "Contact",
"items": [
{
"label": "Phone: +86 0755-27808509"
},
{
"label": "Commercial support: support@sipeed.com"
},
{
"label": "Address: 深圳市宝安区新湖路4008号蘅芳科技办公大厦A座-2101C"
},
{
"label": "Join us",
"url": "/join_us.html"
}
]
}
],
"bottom": [
{
"label": "©2018-2021 Sipeed Ltd",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "粤ICP备19015433号-1",
"url": "https://beian.miit.gov.cn/#/Integrated/index",
"target": "_blank"
}
]
}
}

248
config/config_zh.json Executable file
View File

@@ -0,0 +1,248 @@
{
"locale": "zh_CN",
"navbar": {
"title": "wiki",
"logo": {
"alt": "sipeed wiki logo",
"src": "/static/image/logo.svg"
},
"home_url": "/",
"items": [
{
"label": "产品",
"position": "left",
"type": "list",
"items": [
{
"url": "/hardware/zh/maix/index.html",
"label": "Maix-I"
},
{
"url": "/hardware/zh/maixII/index.html",
"label": "Maix-II"
},
{
"url": "/hardware/zh/lichee/index.html",
"label": "Lichee-Pi"
},
{
"url": "/hardware/zh/tang/index.html",
"label": "Tang"
},
{
"url": "/hardware/zh/longan/Nano/Longan_nano.html",
"label": "Longan"
},
{
"url":"/hardware/zh/modules_spmod/spmod_extender.html",
"label":"SP-Mod"
}
]
},
{
"label": "软件文档",
"position": "left",
"type": "list",
"items": [
{
"url": "/soft/maixpy/zh/index.html",
"label": "MaixPy"
},
{
"url": "/soft/maixpy3/zh/index.html",
"label": "MaixPy3"
},
{
"url": "/soft/Lichee/zh/index.html",
"label": "Lichee"
}
]
},
{
"label": "在线服务",
"position": "left",
"type":"list",
"items":[
{
"label":"AI 训练平台",
"url":"https://maix.sipeed.com",
"target": "_blank"
},
{
"label":"下载中心",
"url":"https://dl.sipeed.com/",
"target": "_blank"
},
{
"label": "在线社群",
"url": "/community.html",
"position": "left"
}
]
},
{
"label":"博文精选",
"url":"/news/",
"position":"left"
},
{
"label": "线上商城",
"url": "/store.html",
"position": "right"
},
{
"label":"贡献文档",
"url":"/share_docs/zh/",
"position": "right"
},
{
"label": "Github ",
"position": "right",
"url": "https://github.com/sipeed",
"target": "_blank"
},
{
"id": "language",
"label": "Language: ",
"position": "right",
"type": "language"
}
]
},
"footer":{
"top":[
{
"label": "其他链接",
"items": [
{
"label": "Sipeed 官网",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "BBS 论坛",
"url": "https://bbs.sipeed.com/",
"target": "_blank"
},
{
"label": "Maixhub",
"url": "https://maix.sipeed.com/",
"target": "_blank"
},
{
"label": "Sipeed 淘宝",
"url": "https://sipeed.taobao.com/",
"target": "_blank"
},
{
},
{
"label": "网站使用 teedoc 生成",
"url": "https://github.com/neutree/teedoc",
"target": "_blank"
}
]
},
{
"label": "网站统计",
"items": [
{
"label": "百度统计",
"url": "https://tongji.baidu.com/web/welcome/ico?s=9cb07365544a53067c56c346c838181a",
"target": "_blank"
},
{
"label": "网站地图",
"url": "/sitemap.xml"
}
]
},
{
"label": "源码",
"items": [
{
"label": "网站源码",
"url": "https://github.com/sipeed/sipeed_wiki",
"target": "_blank"
},
{
"label": "开源项目源码",
"url": "https://github.com/sipeed",
"target": "_blank"
}
]
},
{
"label": "关注我们",
"items": [
{
"label": "github",
"url": "https://github.com/sipeed",
"target":"_blank"
},
{
"label": "twitter",
"url": "https://twitter.com/SipeedIO",
"target":"_blank"
},
{
"label": "淘宝",
"url": "https://sipeed.taobao.com/",
"target":"_blank"
},
{
"label": "更多",
"url": "/community.html"
}
]
},
{
"label": "联系我们",
"items": [
{
"label": "电话: +86 0755-27808509"
},
{
"label": "商业支持: support@sipeed.com"
},
{
"label": "地址: 深圳市宝安区新湖路4008号蘅芳科技办公大厦A座-2101C"
},
{
"label": "加入我们",
"url": "/join_us.html"
}
]
}
],
"bottom": [
{
"label": "©2018-2021 深圳矽速科技有限公司",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "粤ICP备19015433号-1",
"url": "https://beian.miit.gov.cn/#/Integrated/index",
"target": "_blank"
}
]
},
"plugins": {
"teedoc-plugin-search":{
"config": {
"search_hint": "搜索",
"input_hint": "输入关键词,多关键词空格隔开",
"loading_hint": "正在加载,请稍候。。。",
"download_err_hint": "下载文件失败,请刷新重试或检查网络",
"other_docs_result_hint": "来自其它文档的结果",
"curr_doc_result_hint": "当前文档搜索结果"
}
}
},
"show_source": "编辑本页"
}

277
config/config_zh_copy.json Normal file
View File

@@ -0,0 +1,277 @@
{
"navbar": {
"title": "wiki",
"logo": {
"alt": "sipeed wiki logo",
"src": "/static/image/logo.svg"
},
"home_url": "/",
"items": [
{
"url": "/",
"label": "首页",
"position": "left"
},
{
"url": "https://www.sipeed.com",
"label": "矽速官网",
"target": "_blank",
"position": "left"
},
{
"label": "开源软件",
"position": "left",
"type": "list",
"items": [
{
"url": "/soft/maixpy/zh/",
"label": "MaixPy"
},
{
"url": "/soft/maixpy3/zh/",
"label": "MaixPy3"
},
{
"url":"/soft/maixduino/zh/",
"label":"MaixDuino"
},
{
"url": "/soft/Lichee/zh/",
"label": "Lichee"
},
{
"url": "/soft/longan/zh/index.html",
"label": "Longan"
},
{
"url": "/soft/Tang/zh/index_bak.html",
"label": "Tang"
}
]
},
{
"label": "开源硬件",
"position": "left",
"type": "list",
"items": [
{
"url": "/hardware/zh/maix/index.html",
"label": "Maix-I"
},
{
"url": "/hardware/zh/maixII/index.html",
"label": "Maix-II"
},
{
"url": "/hardware/zh/maixIII/index.html",
"label": "Maix-III"
},
{
"url": "/hardware/zh/maixIV/index.html",
"label": "Maix-IV"
},
{
"url": "/hardware/zh/lichee/index.html",
"label": "Lichee Pi"
},
{
"url": "/hardware/zh/tang/index.html",
"label": "Tang"
},
{
"url": "/hardware/zh/longan/index.html",
"label": "Longan"
}
]
},
{
"label": "商业产品",
"position": "left",
"type": "list",
"items": [
{
"url": "/hardware/maixface/zh/",
"label": "Maix Face"
}
]
},
{
"label": "云平台",
"position": "left",
"type": "list",
"items": [
{
"url": "https://www.maixhub.com",
"label": "Maixhub 模型训练平台",
"target": "_blank"
},
{
"url": "https://www.maixhub.com/onlinecompiler",
"label": "固件在线编译",
"target": "_blank"
}
]
},
{
"label": "社区",
"url": "/community.html",
"position": "left"
},
{
"url": "/store.html",
"label": "商城",
"position": "left"
},
{
"id": "language",
"label": "Language: ",
"position": "right",
"type": "selection",
"items": [
{
"id": "zh",
"url": "/",
"label": "中文"
},
{
"id": "en",
"url": "/en/",
"label": "English"
}
]
}
]
},
"footer":{
"top":[
{
"label": "链接",
"items": [
{
"label": "Sipeed",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "BBS 论坛",
"url": "https://bbs.sipeed.com/",
"target": "_blank"
},
{
"label": "Maixhub",
"url": "https://maixhub.sipeed.com/",
"target": "_blank"
},
{
"label": "Sipeed 淘宝",
"url": "https://sipeed.taobao.com/",
"target": "_blank"
},
{
"label": "网站使用 teedoc 生成",
"url": "https://github.com/neutree/teedoc",
"target": "_blank"
}
]
},
{
"label": "网站统计",
"items": [
{
"label": "百度统计",
"url": "https://tongji.baidu.com/web/welcome/ico?s=9cb07365544a53067c56c346c838181a",
"target": "_blank"
},
{
"label": "网站地图",
"url": "/sitemap.xml"
}
]
},
{
"label": "源码",
"items": [
{
"label": "文档源文件",
"url": "https://github.com/sipeed/sipeed_wiki",
"target": "_blank"
},
{
"label": "开源项目源码",
"url": "https://github.com/sipeed",
"target": "_blank"
}
]
},
{
"label": "关注我们",
"items": [
{
"label": "github",
"url": "https://github.com/sipeed",
"target":"_blank"
},
{
"label": "twitter",
"url": "https://twitter.com/SipeedIO",
"target":"_blank"
},
{
"label": "淘宝",
"url": "https://sipeed.taobao.com/",
"target":"_blank"
},
{
"label": "更多",
"url": "/community.html"
}
]
},
{
"label": "联系我们",
"items": [
{
"label": "电话: +86 0755-27808509"
},
{
"label": "商业支持: support@sipeed.com"
},
{
"label": "地址: 深圳市宝安区新湖路4008号蘅芳科技办公大厦A座-2101C"
},
{
"label": "加入我们",
"url": "/join_us.html"
}
]
}
],
"bottom": [
{
"label": "©2018-2021 深圳矽速科技有限公司",
"url": "https://www.sipeed.com",
"target": "_blank"
},
{
"label": "粤ICP备19015433号-1",
"url": "https://beian.miit.gov.cn/#/Integrated/index",
"target": "_blank"
}
]
},
"plugins": {
"teedoc-plugin-search":{
"config": {
"search_hint": "搜索",
"input_hint": "输入关键词,多关键词空格隔开",
"loading_hint": "正在加载,请稍候。。。",
"download_err_hint": "下载文件失败,请刷新重试或检查网络",
"other_docs_result_hint": "来自其它文档的结果",
"curr_doc_result_hint": "当前文档搜索结果"
}
}
},
"show_source": "编辑本页"
}

View File

@@ -1,69 +0,0 @@
#!/bin/bash
set -o errexit -o nounset
rev=$(git rev-parse --short HEAD)
BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, BRANCH=$BRANCH"
curr_branch=$TRAVIS_BRANCH
cp -f index.html build/index.html
cp -f assets/favicon.ico build/gitbook/images/favicon.ico
cp -f assets/icon_sipeed.png build/gitbook/images/apple-touch-icon-precomposed-152.png
git clone -b gh-pages https://github.com/sipeed/sipeed_wiki.git ./old
rm -rf ./old/.git/
echo "current build branch: --$curr_branch--"
if [[ "$curr_branch" == "master" ]]; then
echo "master"
if [[ -d './old/dev' ]]; then
echo "copy dev"
cp -r ./old/dev ./build/
fi
cd ./old
v_folder=`find ./ -maxdepth 1 -name 'v*.*'`
echo "version folder:$v_folder"
if [[ "x$v_folder" != "x" ]]; then
echo "copy version folder"
cp -r $v_folder ../build/
fi
cd ..
elif [[ "$curr_branch" == "dev" ]]; then
echo "dev"
rm -rf ./old/dev
mkdir ./old/dev
cp -r ./build/* ./old/dev
rm -rf ./build
mv ./old ./build
else
echo "not master or dev"
rm -rf ./old/$curr_branch
mkdir ./old/$curr_branch
cp -r ./build/* ./old/$curr_branch
rm -rf ./build
mv ./old ./build
fi
cd build
git init
git config user.name $GIT_NAME
git config user.email $GIT_EMAIL
git remote add upstream "https://$GITHUB_TOKEN@github.com/sipeed/sipeed_wiki.git"
# comment below because we don't need history of gh-pages, and use git push --force to cover history
# git fetch upstream
# git reset upstream/gh-pages
# echo "gprs.ai-thinker.com" > CNAME
git add -A
git commit -m "rebuild pages at ${rev}"
git push upstream HEAD:gh-pages --force

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 KiB

Some files were not shown because too many files have changed in this diff Show More