Coder Social home page Coder Social logo

incubator-weex-site's Introduction

Weex Website

This is the source code of Weex official website.

Develop

Install

First you should install the Node.js, and install dependencies:

npm install

Develop

npm start

It will start a web server at http://localhost:8080. The pages will be updated automatically once you save the corresponding source file.

Package

npm run build

This will generate static files for publishing. The files are located in docs/.vuepress/dist/

Deploy

scripts/publish.sh

Run the above script to deploy the website. This script will add all files in docs/.vuepress/dist/ to asf-site branch, make a git commit and publish to the remote.

After executing, https://weex.apache.org/ will be updated automatically. If you're in China, you will need to wait several hours or one day before the CDN cache refreshing.

The above scripts only works for committers, if you are not a committer, then you don't have the privilege to do the git push.

Contribute

The documents are written in Markdown format located in the docs folder. Feel free to send pull requests!

How to add a blog

To write a blog, edit 'docs/.vuepress/config.js'.

  • Search 'blog' in this file. Edit blog section and add your article filename(without 'md' extension) and title.
'/blog/': [['write-a-blog', 'Write a Blog'], ['your-file-name', 'Your article title']]
'/zh/blog/': [['write-a-blog', '写一篇博客'], ['your-file-name', '你的文章标题']]
  • Add your file(with 'md' extension) in 'docs/blog' and 'docs/zn/blog' directories.

incubator-weex-site's People

Contributors

hanks10100 avatar yorkshen avatar zshshr avatar erha19 avatar wqyfavor avatar cnryb avatar acton393 avatar imyzf avatar miomin avatar mrraindrop avatar katherine95s avatar cxfeng1-zz avatar shikechen avatar doumafang avatar cxfeng1 avatar cyjb avatar dependabot[bot] avatar misakuo avatar shushu2013 avatar weex-issue-bot avatar wrmswindmill avatar wispy316 avatar zwwill avatar gubaojian avatar varun-paytm avatar postbird avatar jondong avatar isaacho avatar apuravchauhan avatar albertxiao1994 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.