vscode-docs/README.md

79 строки
4.0 KiB
Markdown
Исходник Обычный вид История

2019-03-12 00:39:40 +03:00
<p align="center">
<img alt="vscode logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Visual_Studio_Code_1.18_icon.svg/1200px-Visual_Studio_Code_1.18_icon.svg.png" width="100px" />
<h1 align="center">Visual Studio Code Documentation</h1>
</p>
2019-03-11 23:57:10 +03:00
You've found the Visual Studio Code documentation GitHub repository, which contains the content for the [Visual Studio Code documentation](https://code.visualstudio.com/docs).
Topics submitted here will be published to the [Visual Studio Code](https://code.visualstudio.com) portal.
If you are looking for the VS Code product GitHub repository, you can find it [here](https://github.com/Microsoft/vscode).
## Index
2019-03-11 23:57:10 +03:00
1. [About Visual Studio Code](#visual-studio-code)
2. [Feedback](#feedback)
3. [Documentation Issues](#documentation-issues)
4. [Contributing to the documentation](#contributing)
5. [Publishing](#publishing)
2019-03-11 23:57:10 +03:00
## Visual Studio Code
[VS Code](https://code.visualstudio.com/) is a lightweight source code editor and powerful development environment for building and debugging modern web and cloud applications. It is free and available on your favorite platform - Linux, macOS, and Windows.
If you landed here looking for other information about VS Code, head over to [our website](https://code.visualstudio.com) for additional information.
## Feedback
If you want to give documentation feedback, please use the feedback control located at the bottom of each documentation page.
## Documentation Issues
To enter documentation bugs, please create a [new GitHub issue](https://github.com/Microsoft/vscode-docs/issues). Please check if there is existing issue first.
2019-03-11 23:57:10 +03:00
If you think the issue is with the VS Code product itself, please enter issues in the VS Code product repo [here](https://github.com/Microsoft/vscode/issues).
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
## Contributing
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
To contribute with new topics / information or make changes to existing documentation, please read the [Contributing Guideline](./CONTRIBUTING.md#contributing).
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
### Workflow
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
The two suggested workflows are:
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
- For small changes, use the "Edit" button on each page to edit the Markdown file directly on GitHub.
- If you plan to make significant changes or preview the Markdown files in VS Code, [clone](#cloning) the repo to [edit and preview](https://code.visualstudio.com/docs/languages/markdown) the files directly in VS Code.
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
![Markdown Preview Button](images/MDPreviewButton.png)
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
### Cloning
2019-03-11 23:57:10 +03:00
2019-03-26 02:10:48 +03:00
If you plan to add or modify `{gif,mp4,jpg,png}` files, please follow the [Git LFS Setup](#git-lfs-setup).
If you only plan to edit the MD files, you can use the normal Git workflow. Notice that **images will be broken in Markdown Preview** because images are not retrieved locally:
```bash
2019-03-29 12:41:11 +03:00
git clone git@github.com:Microsoft/vscode-docs.git
2019-03-26 02:10:48 +03:00
cd vscode-docs
yarn
```
#### Git LFS Setup
We have adopted [Git LFS](https://git-lfs.github.com/) to store the images in this repo. Here's the recommended setup:
2019-03-11 23:57:10 +03:00
2019-03-12 00:54:35 +03:00
- Install [Git LFS](https://git-lfs.github.com/).
2019-03-18 21:11:20 +03:00
- `GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/Microsoft/vscode-docs.git`. This only downloads text files that amount to ~16MB.
2019-03-26 02:10:48 +03:00
- `cd vscode-docs`
- `git lfs install` inside the `vscode-docs` repo. You only need to run this once.
2019-03-12 01:02:32 +03:00
- `git lfs pull -I <PATTERN>`, where [`<PATTERN>`](https://github.com/git-lfs/git-lfs/blob/master/docs/man/git-lfs-fetch.1.ronn#include-and-exclude) is a string of comma-separated globs. For example:
2019-03-12 01:12:03 +03:00
- `git lfs pull -I "docs/nodejs"`. Only download images in `docs/nodejs`.
- `git lfs pull -I "release-notes/images/1_3*/*"`. Only download images in latest release notes.
- Alternatively, use `git config lfs.fetchinclude "docs"` so future `git lfs pull` only pulls images in `docs`.
2019-03-12 00:54:35 +03:00
The history of this repo before we adopt LFS can be found at [microsoft/vscode-docs-archive](https://github.com/Microsoft/vscode-docs-archive).
2019-03-11 23:57:10 +03:00
## Publishing
Steps for how to publish documentation changes can be found [here](https://github.com/Microsoft/vscode-website#publishing-a-documentation-change) in the (private) repository of the VS Code website.