jmalonzo / TypeScript-Website

The Website for TypeScript

Home Page:https://www.typescriptlang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Website

This is the current website for TypeScript. It uses Jekyll for the majority of the work, and uses git-submodules for the playground and the handbook.

Meta

Staging

A live version with the daily build can be found here.

Configure your build environment:

  1. Install the latest Ruby and add it to your environment's PATH during setup. Allow the installer to install MSYS2 via ridk install.

  2. Install the latest Node.js.

  3. Establish your new environment by opening up a new PowerShell/Command Prompt.

  4. Fork https://github.com/Microsoft/TypeScript-Website to your own GitHub account

  5. Clone https://github.com/[YOUR_ACCOUNT]/TypeScript-Website

  6. Run the following from the cloned repository:

    gem install bundler
    bundler install
    
    yarn install
    npm install -g gulp-cli
    
    git submodule init
    git submodule update
    
    cd src/play
    yarn install
    yarn setup
    cd ../..

Build the site:

Ensure that you have configured your build environment as explained above. In a shell, navigate to your clone of this repository and run:

gulp

Your default web browser should start up and show the built site.

Note: If you want to make changes to the playground, you have a bit of a dance to do. Run ^ then press save on a file inside both the examples/ subfolder, and the src/play subfolder. The playground is a submodule, so that'll need a PR to a different repo.

Deployment

Deployment is automatic:

  • Merges to the branch archived deploy to staging.
  • Pushes to the branch release deploy to production. You can use: git push origin origin/master:release.

To deploy manually, first use these commands to push to staging:

# Creates a ./site folder
gulp publish

# Pushes to a staging
gulp deploy

# Syncs production with staging
sh sync-staging-to-prod.ps1

Direct Links to Downloads for Windows:

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.

About

The Website for TypeScript

https://www.typescriptlang.org

License:Creative Commons Attribution 4.0 International


Languages

Language:JavaScript 33.7%Language:CSS 31.7%Language:HTML 26.0%Language:TypeScript 5.0%Language:Ruby 3.6%Language:PowerShell 0.1%