GithubHelp home page GithubHelp logo

hartl3y94 / developer.chrome.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlechrome/developer.chrome.com

0.0 0.0 0.0 104.85 MB

Chrome Developers

Home Page: https://developer.chrome.com

License: Other

Shell 0.10% JavaScript 11.51% HTML 79.56% SCSS 4.32% Nunjucks 4.51%

developer.chrome.com's Introduction

developer.chrome.com

developer.chrome.com is the ultimate resource for developers of all backgrounds to learn about what's new in Chrome!

Found a bug? ๐Ÿ‘ทโ€โ™€๏ธ

Thanks for letting us know! Please file an issue and a team member should reply shortly.

Authoring content โœ๏ธ

Before you start writing take a moment to look over the developer.chrome.com handbook and familiarize yourself with the process.

Building the site ๐Ÿ—

You'll need a recent version of Node: v14 (LTS) or higher. To check your node version run node -v in your terminal.

If you don't have node, or if you need to upgrade, we recommend using the Node Version Manager (nvm).

Clone the repo

git clone https://github.com/GoogleChrome/developer.chrome.com.git

Install dependencies

npm ci

Set up build flags

Building the entire site can take a while because it's over a thousand pages. If you want to massively speed up your build times, we suggest setting some build flags to ignore certain sections.

  • Create a .env file in the root of your project
  • Optionally add the following:
# Ignore ALL /docs/
ELEVENTY_IGNORE_DOCS=true

# Only ignore /docs/native-client/
ELEVENTY_IGNORE_NACL=true

# Only ignore /docs/extensions/
ELEVENTY_IGNORE_EXTENSIONS=true

Start a local server to preview the site

npm run dev

Open http://localhost:8080/ to see the site locally. Changes to assets will rebuild the site. Refresh to see your changes.

Environments ๐ŸŒณ

To do a production build of the site and start the local server run npm run production && npm start.

Staging ๐Ÿ•บ

When you send in a pull request it will be automatically staged for you. Keep an eye out for the netlify bot to comment on the pull request with your unique URL.

(Googlers only) If you would like to stage your local changes to a unique url, run the command npm run stage:personal. This can be useful if you're not ready to create a pull request yet, or if you need to stage something private.

โ˜๏ธ You will need to be a member of our GCP project for this command to work.

Deploying the site ๐Ÿš€

Automatic deploys

The site will build and deploy the master branch automatically every hour, Mon-Fri. If you've just merged an article then it should go live at the top of the next hour.

developer.chrome.com's People

Contributors

agektmr avatar alesandroortiz avatar andresroberto avatar anupbs28 avatar awfuchs avatar celsius273 avatar davegaeddert avatar devnook avatar dotproto avatar eliedebrauwer avatar hanguokai avatar iamarpitpatidar avatar iifawzi avatar jakearchibald avatar jpmedley avatar karan173 avatar michaelsolati avatar mlcui-google avatar paulkinlan avatar petele avatar rdcronin avatar robdodson avatar samdutton avatar samthor avatar slightlyoff avatar surma avatar thedavidbarton avatar theskillwithin avatar tomayac avatar tylercarberry 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.