Skip to content

Commit

Permalink
Merge remote-tracking branch 'Parent/main' into Current
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Jul 14, 2024
2 parents 8cc5038 + d7fa4a3 commit 5030e98
Show file tree
Hide file tree
Showing 16 changed files with 2,857 additions and 18 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mcr.microsoft.com/vscode/devcontainers/base:0-debian-10

# Install Git LFS, add a locale
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
&& apt-get install -yq git-lfs \
&& git lfs install \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json
{
"name": "VS Code Docs",
"dockerFile": "Dockerfile",
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
"yzhang.markdown-all-in-one",
"streetsidesoftware.code-spell-checker",
"DavidAnson.vscode-markdownlint",
"bierner.github-markdown-preview",
"github.vscode-pull-request-github"
],
"remoteUser": "vscode"
}
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*]
end_of_line = lf
trim_trailing_whitespace = true
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jquery": true
},
"extends": [
"plugin:security/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"root": true
}
3 changes: 3 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
git lfs post-checkout "$@"
3 changes: 3 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-commit' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
git lfs post-commit "$@"
3 changes: 3 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-merge' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
git lfs post-merge "$@"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/lint-staged
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
git lfs pre-push "$@"
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore all Markdown files:
*.md
17 changes: 17 additions & 0 deletions .vscode/release-notes-snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Place your vscode-docs workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"code-setting": {
"scope": "markdown",
"prefix": "setting",
"body": [
"<code codesetting=\"$1${2::${3:value}}\">$1</code>"
],
"description": "Interactive VS Code Setting"
}
}
29 changes: 29 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Place your settings in this file to overwrite default and user settings.
{
"git.branchProtection": [
"main"
],
"git.branchProtectionPrompt": "alwaysCommitToNewBranch",
"editor.wordWrap": "on",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.associations": {
"**/toc.json": "jsonc"
},
"markdown.validate.enabled": true,
"markdown.validate.ignoredLinks": [
"/Download",
"/insiders"
],
"markdown.copyFiles.destination": {
// /release-notes/v123.md -> /release-notes/images/123/img.png
"/release-notes/**/*": "/release-notes/images/${documentBaseName/v(.*)/$1/}/",

// Put into 'images' directory next to file
"/api/**/*": "images/${documentBaseName}/"
},
"editor.codeActionsOnSave": {
"source.organizeLinkDefinitions": "explicit"
},
"markdown.editor.filePaste.videoSnippet": "<video src=\"${src}\" title=\"${title}\" autoplay loop controls muted></video>"
}
6 changes: 6 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Copyright (c) Microsoft Corporation. All rights reserved. Distributed under the following terms:

1. Documentation is licensed under the [Creative Commons Attribution 3.0 United States License](https://creativecommons.org/licenses/by/3.0/us/legalcode). Code is licensed under the [MIT License](https://opensource.org/licenses/MIT).

2. This license does not grant you rights to use any trademarks or logos of Microsoft. For Microsoft’s general trademark guidelines, go to https://go.microsoft.com/fwlink/?LinkID=254653.

5 changes: 5 additions & 0 deletions api/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 92,
"tabWidth": 2,
"singleQuote": true
}
48 changes: 30 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
{
"devDependencies": {
"lint-staged": "^12.3.3",
"shelljs": "^0.8.5"
},
"lint-staged": {
"*.{gif,mp4,jpg,png,GIF,MP4,JPG,PNG}": [
"yarn check-lfs"
]
},
"name": "vscode-docs",
"resolutions": {
"glob-parent": ">=5.1.2",
"hosted-git-info": "^3.0.8"
},
"scripts": {
"check-lfs": "node ./build/check-lfs.js",
"prepare": "husky install"
}
"name": "vscode-docs",
"version": "0.10.3",
"author": {
"name": "Microsoft Corporation"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode-docs.git"
},
"scripts": {
"check-lfs": "node ./build/check-lfs.js",
"lint": "eslint **/*.js",
"prepare": "husky install"
},
"devDependencies": {
"eslint-plugin-security": "^1.7.1",
"gulp": "^4.0.2",
"husky": "^7.0.0",
"lint-staged": "^12.3.3",
"shelljs": "^0.8.5"
},
"lint-staged": {
"*.{gif,mp4,jpg,png,GIF,MP4,JPG,PNG}": [
"yarn check-lfs"
]
},
"resolutions": {
"glob-parent": ">=5.1.2",
"hosted-git-info": "^3.0.8"
}
}
Loading

0 comments on commit 5030e98

Please sign in to comment.