• This repository has been archived on 03/Apr/2020
  • Stars
    star
    241
  • Rank 167,643 (Top 4 %)
  • Language
    HTML
  • License
    Other
  • Created about 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Crosswalk Website

Introduction

This repository contains the source code for the Crosswalk website. The live website is generated from this code.

Any bugs for the website should be logged on the Crosswalk Jira, under the Website component.

Pull requests for the website should be submitted via github.

This document gives an overview of the source and how to build the project on your system.

Building the project

This static site for Crosswalk is built with:

  • Node.js
  • Harp, the static web server with build-in preprocessing
  • KSS, which creates the styleguide

First, install Node.js. Then, run the following commands:

# Install Harp. You may need to preface this command with `sudo`
# Note that v 0.14.0 of Harp is required to build the website. 
# Using later versions will produce errors.
npm install --global [email protected]

# Clone this project from GitHub
git clone https://github.com/crosswalk-project/crosswalk-website.git

# Install the project’s dependencies
cd crosswalk-website/
npm install

# Serve the project
harp server

# The project is now available at http://localhost:9000

Create static web content for production

Harp can be used to create static web content. This is the content that the current website uses.

Build the Styleguide

The styleguide should be created first. The markup and CSS modules are documented in a Styleguide. It’s comparable to a miniature version of the documentation for Bootstrap, where each module has an example and the accompanying code.

To build the Styleguide, run the following commands:

# Install dependencies
npm install -g kss

# Build the Styleguide
npm run styleguide

Compile and generate static content

This site has been built to take advantage of Harp’s niceties, so the web server should:

  • Create clean URLs by rewriting, for example, about.html to about/
  • Allow absolute paths from/
harp compile

The results are placed in "www" directory and can be viewed on your local system with apache server by simply setting DocumentRoot <path to www directory> in the apache configuration file.

Adding Blog Posts

The Crosswalk blog accepts static posts written in Markdown. If your post was called “Meet Crosswalk”, create the file meet-crosswalk.md in public/blog/. Add your post’s metadata in public/blog/_data.json. It will probably look something like this:

"meet-crosswalk": {
  "title": "Meet Crosswalk",
  "date": "2014-10-16T12:00",
  "author": "Annie Person"
},

If you’d like, you can also include a path to a large “Hero” image for the blog post:

"meet-crosswalk": {
  "title": "Meet Crosswalk",
  "date": "2014-10-16T12:00",
  "author": "Annie Person",
  "hero": "/assets/illustrations/my-hero-image.png"
},

Adding Remote Blog Posts

If you are linking to a remote post rather than a local post—for example, a post on the Chromium blog about Crosswalk—you only need to edit the public/blog/_data.json file. The key, in this case chrome-apps-for-mobile, must be unique, but the url will be what’s used to link to the external post.

"chrome-apps-for-mobile": {
  "title": "Chrome Apps for Mobile: Now with a faster dev workflow and a modern WebView",
  "date": "2014-09-22T09:00",
  "author": "Michal Mocny",
  "url": "http://blog.chromium.org/2014/09/now-with-faster-dev-workflow-and-modern.html",
  "desc": "…now you have a way to leverage the latest Chromium WebView on any device running Android versions back to Ice Cream Sandwich by bundling your Chrome App with an embeddable Chromium WebView, provided by the Crosswalk open source project."
},

More Repositories

1

crosswalk

A web runtime built on Chrome. This project is currently unmaintained.
C++
2,328
star
2

crosswalk-cordova-android

DEPRECATED - Crosswalk-based Cordova Android
Java
208
star
3

chromium-crosswalk

163
star
4

crosswalk-samples

Crosswalk sample applications
JavaScript
136
star
5

crosswalk-ios

Crosswalk Project for iOS
Swift
117
star
6

v8-crosswalk

C++
38
star
7

crosswalk-app-tools

Command line tool to create and package Crosswalk applications
JavaScript
38
star
8

crosswalk-test-suite

HTML
36
star
9

demo-express

A demo application to showcase Crosswalk's features and APIs
Java
34
star
10

crosswalk-web-driver

C++
20
star
11

tizen-extensions-crosswalk

C++
20
star
12

crosswalk-tizen

Crosswalk for Tizen project
Python
18
star
13

blink-crosswalk

DEPRECATED: Blink has been merged into Chromium, this repository is no longer in use.
18
star
14

DEPRECATED-crosswalk-apk-generator

A generator for Crosswalk Android application packages. NOTE: This project is not being actively maintained. You will have better luck using the crosswalk-app-tools (https://github.com/crosswalk-project/crosswalk-app-tools).
JavaScript
16
star
15

ios-extensions-crosswalk

repo to host iOS crosswalk extensions
Objective-C
14
star
16

crosswalk-demos

Sample applications and demos for Crosswalk.
Python
12
star
17

crosswalk-android-extensions

Repo for external crosswalk extensions for Android port
Python
12
star
18

crosswalk-app-tools-ios

Crosswalk App Tools iOS Backend
JavaScript
12
star
19

chromium-efl

C++
10
star
20

realsense-extensions-crosswalk

The Crosswalk Project Extensions for RealSense
JavaScript
9
star
21

meta-crosswalk

Crosswalk layer for OpenEmbedded and Yocto
BitBake
6
star
22

crosswalk-app-tools-deb

JavaScript
5
star
23

crosswalk-developer-tools-eclipse-plugin

Tools for Eclipse
Java
4
star
24

grunt-crosswalk

A grunt plugin for packaging crosswalk apps on android.
JavaScript
4
star
25

crosswalk-extensions-sdk

SDK for external crosswalk extensions development
C++
3
star
26

web-testing-service

HTML
3
star
27

crosswalk-github-webhooks

Python
2
star
28

crosswalk-efl

C++
2
star
29

crosswalk-extensions-twoinone

Crosswalk extensions to support detachable keyboards and other 2:1 use cases.
C#
2
star
30

crosswalk-website-v2

This repository is no longer active. Please go to the original crosswalk website repo:
CSS
2
star
31

blink-crosswalk-efl

blink-crosswalk used by the EFL WebView
C++
2
star
32

iotivity-extensions-crosswalk

Iotivity API for Crosswalk on Tizen/Linux
C++
2
star
33

chromium-crosswalk-efl

chromium-crosswalk used by the EFL WebView
C++
1
star
34

brackets-crosswalk

Set of extensions for Crosswalk for running Brackets editor
C++
1
star
35

khronos-cl-api-1.2

Git copy of https://cvs.khronos.org/svn/repos/registry/trunk/public/cl/api/1.2
C++
1
star
36

pycrosswalk

C
1
star
37

libpxc

The open source headers and library loader of Intel RealSense(TM) SDK
C++
1
star
38

ffmpeg-crosswalk

Chromium FFMPEG fork, primarily to retain ICS support
C
1
star
39

crosswalk-test-results

Github repo for the public Crosswalk test results
1
star
40

pages

Test repo for github project pages
HTML
1
star