GithubHelp home page GithubHelp logo

mathiasbynens / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ampproject/amp.dev

1.0 3.0 0.0 23.11 MB

The AMP Project Website.

Home Page: https://ampproject.org

License: Other

CSS 43.19% HTML 41.85% JavaScript 14.96%

docs's Introduction

AMPProject.org Build Status

You're looking at the source code of the official website of the AMP Project. Even if you don't plan on contributing, explore how we've built the site for a good example of how to build a canonical, responsive standalone AMP site.

How to build the site

Install Grow and npm dependencies:

$ curl https://install.growsdk.org | bash
$ npm install

Get a GitHub client id and secret:

Out of the box, the reference docs are not bundled with the rest of the documentation. We'll fetch them via GitHub, and the only thing you have to do is the following:

  1. Register for a GitHub application here
  2. Find the client id and secret
  3. In your shell, export the id as AMP_DOC_ID and the secret as AMP_DOC_SECRET

Develop

Note: Be sure to run grow build at least once to pull in reference docs before running the following command.

$ grow run

You can now open http://localhost:8080/ and continue working on the source files, then reload the page to see changes appear.

Build

$ grow build

This will generate a static, complete build of the site into the *build folder.

Support

If you've found an error or inconsistency, please file an issue: https://github.com/ampproject/docs/issues

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

License

All image and audio files except in folders "source/img/partners", "source/img/publishers" and "source/img/quotes" (including *.png, *.jpg, *.svg, *.mp3, *.wav and *.ogg) are licensed under the CC-BY-NC license. Images in the excluded folders are not licensed.

All other files are licensed under the Apache 2 license.


Copyright 2015 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

docs's People

Contributors

adamcbrewer avatar adamzr avatar aghassemi avatar aileen avatar alphayang avatar andreban avatar aricheimer avatar avimehta avatar christosap avatar cramforce avatar d13r avatar dandv avatar dbs avatar dereknongeneric avatar dvoytenko avatar erwinmombay avatar filisantillan avatar gregable avatar hasanain avatar jeremydw avatar jmadler avatar kaddopur avatar kul3r4 avatar lannka avatar mattdeco avatar meggin avatar pbakaus avatar powdercloud avatar techhtml avatar yunelee avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.