README.md 1.5 KB

Build Status

Cordova Docs / Website

This repository contains the source code for the Cordova website at cordova.apache.org.

The site is also reachable with the short domain cordova.io, the important subareas as docs.cordova.io, blog.cordova.io and plugins.cordova.io.

中文网站构架

git clone https://github.com/jianboy/cordova-docs-cn.git

<!-- docker build --rm -f "Dockerfile-dev" -t cordova-docs:latest2 .  -->

docker-compose up -d

docker attach containerid -it /bin/bash

npm install

bundle config mirror.https://rubygems.org https://gems.ruby-china.com
bundle install --path ./ruby_modules

<!-- 构建 -->
npm run build

<!-- run dev -->
npm run serve

或者手动执行(更快):

node tools/bin/toc.js www/docs www/_data/toc

bundle exec jekyll build --config conf/_config.yml,conf/_defaults.yml,conf/_version.yml,conf/_prod.yml --watch

docker run -it cordova-docs:latest2 -v /home/ubuntu/cordova-docs/:/root/app/ /bin/bash

## 构建镜像
docker build -t hub.tencentyun.com/google/cordava-docs:v1.0.0 .

1、登录 hub 
docker login --username=google hub.tencentyun.com

2、pull/push
docker tag [ImageId] hub.tencentyun.com/google/cordava-docs:v1.0.0
docker push hub.tencentyun.com/google/cordava-docs:v1.0.1