vscode-docs/README.md

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

2020-04-10 04:54:46 +03:00
<p align="center">
2019-06-05 22:54:24 +03:00
<img alt="vscode logo" src="images/logo-stable.png" width="100px" />
2019-03-12 00:39:40 +03:00
<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).
2019-03-11 23:57:10 +03:00
>**Note**: The vscode-docs repository uses [Git LFS](https://git-lfs.github.com/) (Large File Storage) for storing binary files such as images and `.gif`s. If you are contributing or updating images, please enable Git LFS per the instructions in the [Contributing](#cloning) section below.
2019-03-11 23:57:10 +03:00
## Index
2020-10-28 11:58:47 +03:00
- [Index](#index)
- [Visual Studio Code](#visual-studio-code)
- [Feedback](#feedback)
- [Documentation Issues](#documentation-issues)
- [Contributing](#contributing)
- [Workflow](#workflow)
- [Cloning](#cloning)
- [Cloning without binary files](#cloning-without-binary-files)
- [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, mobile, and cloud applications. It is free and available on your favorite platform - Linux, macOS, and Windows.
2019-03-11 23:57:10 +03:00
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 an 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-10-04 13:16:37 +03:00
To contribute 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-29 20:37:08 +03:00
1. Install [Git LFS](https://git-lfs.github.com/).
2. Run `git lfs install` to setup global git hooks. You only need to run this once per machine.
3. `git clone git@github.com:Microsoft/vscode-docs.git`.
4. Now you can `git add` binary files and commit them. They'll be tracked in LFS.
#### Cloning without binary files
You might want to clone the repo without the 1.6GB images. Here are the steps:
1. Install [Git LFS](https://git-lfs.github.com/).
2. Run `git lfs install` to setup global git hooks. You only need to run this once per machine.
2019-06-05 22:54:24 +03:00
3. Clone the repo without binary files.
2019-06-25 06:04:37 +03:00
- macOS / Linux: `GIT_LFS_SKIP_SMUDGE=1 git clone git@github.com:Microsoft/vscode-docs.git`.
- Windows: `$env:GIT_LFS_SKIP_SMUDGE="1"; git clone git@github.com:Microsoft/vscode-docs.git`.
2019-03-29 20:37:08 +03:00
4. Now you can selectively checkout some binary files to work with. For example:
2020-04-07 21:25:16 +03:00
- `git lfs pull -I "docs/nodejs"` to only download images in `docs/nodejs`
- `git lfs pull -I "release-notes/images/1_4*/*"` to only download images in `release-notes/images/1_4*`
- `git lfs pull -I "docs,api"` to download all images in `docs` and in `api`
- `git lfs pull -I <PATTERN>`, as long as `<PATTERN>` is a valid [Git LFS Include and Exclude pattern](https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-fetch.1.ronn#include-and-exclude).
2019-03-12 00:54:35 +03:00
The history of this repo before we adopted 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.