A repository to make changes to the TypeScript Wiki on GitHub
Перейти к файлу
Mark 5be8aa0e2f
Fix: typo in FAQ.md file (#340)
2024-10-25 08:35:28 -07:00
.github/workflows
.vscode
aspnet-screenshots
codebase
debugging
dev-mode-screenshots
images
reference
scripts
'this'-in-TypeScript.md
.gitignore
API-Breaking-Changes.md
All-The-Bots.md
Architectural-Overview.md
Blog-Post-Ideas.md
Breaking-Changes.md
Cancellation-Support-in-tsserver.md
Coding-guidelines.md
Common-Errors.md
Compiler-Internals.md
Compiler-Options.md
Configuring-MSBuild-projects-to-use-NuGet.md
Contributing-to-TypeScript.md
Debugging-Language-Service-in-VS-Code.md
Docker-Quickstart.md
FAQ.md
FAQs-for-API-Consumers.md
Getting-logs-from-TS-Server-in-VS-Code.md
Home.md
How-the-User-Tests-Work.md
How-to-maintain-Definitely-Typed-tests.md
Integrating-with-Build-Tools.md
JSDoc-support-in-JavaScript.md
JSX.md
JavaScript-Language-Service-in-Visual-Studio.md
LICENSE
Nightly-drops.md
No-New-Utility-Types.md
Node-Target-Mapping.md
Performance-Tracing.md
Performance.md
Preferred-Issue-Titles.md
Providing-Visual-Studio-Repro-Steps.md
README.md
Release-Activities.md
Resources.md
Roadmap.md
SECURITY.md
Setting-Compiler-Options-in-MSBuild-projects.md
Spec conformance testing.md
Standalone-Server-(tsserver).md
Tooling-On-The-Compiler-Repo.md
Triage-Instructions.md
Triggering-TypeScript-Bot.md
Type-Checking-JavaScript-Files.md
TypeScript's-Release-Process.md
TypeScript-Deployment.md
TypeScript-Design-Goals.md
TypeScript-Editor-Support.md
TypeScript-MSBuild-In-Depth.md
Typings-for-npm-packages.md
Updating-TypeScript-in-Visual-Studio-2017.md
Useful-Links-for-TypeScript-Issue-Management.md
Using-TypeScript-With-ASP.NET-5.md
Using-the-Compiler-API-(TypeScript-1.4).md
Using-the-Compiler-API.md
Using-the-Language-Service-API.md
Using-the-New-Language-Service-in-Visual-Studio-15-Preview.md
What's-new-in-TypeScript.md
Writing-Good-Design-Proposals.md
Writing-a-Language-Service-Plugin.md
_Footer.md
_Sidebar.md
package.json
tsconfig.json.md

README.md

The TypeScript wiki

This repo is a mirror of the TypeScript wiki. Changes on either the wiki or this repo are immediately mirrored to the other side. This is done in a GitHub Action here, and another in the TS repo, and the main work is done by a sync script.

The wiki root is Home.md.

You can run this locally if you have ruby installed via:

# Install the deps
gem install gollum

# Start the server
gollum

Then you can open: http://localhost:4567

Things to remember:

  • Gollum is a bit of a nightmare for testing, my current technique is:

    # before
    git branch -b thing_i_am_working_on
    
    # to iterate, amend the commit and re-run gollum against that bit of git
    git add .; git commit --amend --no-edit --no-verify; gollum --ref thing_i_am_working_on
    
  • Wikis don't support nesting, so filenames have to get a bit wild

    - compiler/testing/fourslash.md
    + compiler-testing-fourslash.md
    
  • You can use a custom link syntax for references to TypeScript code which will be looked up at deploy time:

    link to [`runFourSlashTest`][0]
    
    [0]: <src/harness/fourslash.ts - function runFourSlashTest(>
    

    Will look at the file src/harness/fourslash.ts in microsoft/TypeScript to find the line of code function runFourSlashTest and provide a direct link in the wiki. You can audit them via the script npm run lint.

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.