Skip to content

Commit 651c347

Browse files
twerskeatscott
authored andcommitted
docs: add angular.dev (angular#52536)
PR Close angular#52536
1 parent 8bbec83 commit 651c347

File tree

3,179 files changed

+193754
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,179 files changed

+193754
-0
lines changed

.bazelignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ integration/typings_test_ts49/node_modules
3838
integration/typings_test_ts50/node_modules
3939
integration/typings_test_ts51/node_modules
4040
integration/typings_test_ts52/node_modules
41+
42+
43+
# Temporarily ignore all of adev
44+
adev/

.ng-dev/format.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export const format: FormatConfig = {
2929
'!packages/core/src/i18n/locale_en.ts',
3030
'!packages/common/locales/closure-locale.ts',
3131
'!packages/common/src/i18n/currencies.ts',
32+
// Temporarily disable formatting for adev
33+
'!adev/**',
3234
],
3335
},
3436
'buildifier': true,

.pullapprove.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,22 @@ groups:
10571057
- dylhunn
10581058
- mgechev
10591059

1060+
# =========================================================
1061+
# Docs: Angular Dev Site
1062+
# =========================================================
1063+
angular-dev:
1064+
<<: *defaults
1065+
conditions:
1066+
- >
1067+
contains_any_globs(files, [
1068+
'adev/**/{.*,*}'
1069+
])
1070+
reviewers:
1071+
users:
1072+
- twerske
1073+
- josephperrott
1074+
- jelbourn
1075+
10601076
# =========================================================
10611077
# Docs-infra
10621078
# =========================================================

adev/.gitignore

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
/src/assets/tutorials
9+
/src/assets/previews
10+
/TEMP
11+
12+
# Node
13+
node_modules
14+
npm-debug.log
15+
yarn-error.log
16+
17+
# IDEs and editors
18+
.idea/
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# Visual Studio Code
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# Miscellaneous
35+
/.angular/cache
36+
.sass-cache/
37+
/connect.lock
38+
/coverage
39+
/libpeerconnection.log
40+
testem.log
41+
/typings
42+
43+
# Ignore ng-dev logs and user-config
44+
.ng-dev.err*
45+
.ng-dev.log
46+
.ng-dev.user*
47+
48+
# System files
49+
.DS_Store
50+
Thumbs.db
51+
52+
53+
# Yarn v2+. Zero installs disabled since we are not using PnP.
54+
.pnp.*
55+
.yarn/*
56+
!.yarn/patches
57+
!.yarn/plugins
58+
!.yarn/releases
59+
!.yarn/sdks
60+
!.yarn/versions
61+
!.yarn/yarn.js
62+
63+
64+
# Firebase
65+
.firebase
66+
*-debug.log
67+
.runtimeconfig.json

adev/.markdownlint.jsonc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// Default state for all rules
3+
"default": true,
4+
5+
// MD013/line-length - Line length
6+
"MD013": {
7+
// Number of characters
8+
"line_length": 750,
9+
// Include code blocks
10+
"code_blocks": false,
11+
// Include tables
12+
"tables": false
13+
},
14+
15+
// MD034/bare-URL-used - Do not lint bare url - we display links in config code that does not match linter styles
16+
"MD034": false,
17+
18+
// MD038 - Spaces inside code span elements - We display inline templates in codeblocks
19+
"MD038": false,
20+
21+
// MD046/code-block-style - Do not lint inline code blocks - we display formatted CLI output in code that does not match linter styles
22+
"MD046": false,
23+
24+
// MD049/emphasis-style - Emphasis style should be consistent
25+
"MD049": false,
26+
27+
// TODO: Enable the following rules as MD improvements:
28+
// MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
29+
"MD024": false,
30+
31+
// MD033/no-inline-html - Inline HTML
32+
"MD033": false,
33+
34+
// MD051/link-fragments - Link fragments should be valid
35+
"MD051": false,
36+
37+
// MD052/reference-links-images - Reference links and images should use a label that is defined
38+
"MD052": false,
39+
40+
// MD037/no-space-in-emphasis - Inline lists (such as in tables) incorrectly trigger this warning.
41+
"MD037": false
42+
}

adev/.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

adev/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.yarn/releases/*.cjs
2+
src/content/examples/**/*.*

adev/.stylelintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignoring documentation style examples
2+
/src/content/api-examples
3+
/src/content/examples
4+
/src/content/tutorials
5+
node_modules/

adev/.stylelintrc.json

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"customSyntax": "postcss-scss",
3+
"defaultSeverity": "error",
4+
"reportNeedlessDisables": true,
5+
"reportInvalidScopeDisables": true,
6+
"plugins": [
7+
"./tools/stylelint/loader-rule.js",
8+
"./tools/stylelint/no-concrete-rules.ts",
9+
"./tools/stylelint/no-import.ts",
10+
"./tools/stylelint/no-unused-import.ts",
11+
"./tools/stylelint/selector-no-deep.ts",
12+
"./tools/stylelint/single-line-comment-only.ts"
13+
],
14+
"rules": {
15+
"@angular/selector-no-deep": true,
16+
"@angular/no-unused-import": true,
17+
"@angular/single-line-comment-only": true,
18+
"@angular/no-import": true,
19+
20+
"color-hex-case": "lower",
21+
"color-no-invalid-hex": true,
22+
23+
"function-calc-no-unspaced-operator": true,
24+
"function-comma-space-after": "always-single-line",
25+
"function-comma-space-before": "never",
26+
"function-name-case": "lower",
27+
"function-url-quotes": "always",
28+
"function-url-scheme-disallowed-list": ["data"],
29+
"function-whitespace-after": "always",
30+
31+
"number-leading-zero": "always",
32+
"number-no-trailing-zeros": true,
33+
"length-zero-no-unit": true,
34+
35+
"string-no-newline": true,
36+
"string-quotes": "single",
37+
38+
"unit-case": "lower",
39+
"unit-no-unknown": true,
40+
"unit-allowed-list": [
41+
"px",
42+
"%",
43+
"deg",
44+
"s",
45+
"ms",
46+
"em",
47+
"rem",
48+
"vh",
49+
"vw",
50+
"vmin",
51+
"fr",
52+
"ch",
53+
"lvh",
54+
"svh",
55+
"dvh"
56+
],
57+
58+
"value-list-comma-space-after": "always-single-line",
59+
"value-list-comma-space-before": "never",
60+
61+
"shorthand-property-no-redundant-values": true,
62+
63+
"property-case": "lower",
64+
"no-duplicate-at-import-rules": true,
65+
66+
"declaration-block-no-duplicate-properties": [
67+
true,
68+
{
69+
"ignore": ["consecutive-duplicates-with-different-values"]
70+
}
71+
],
72+
"declaration-block-trailing-semicolon": "always",
73+
"declaration-block-single-line-max-declarations": 1,
74+
"declaration-block-semicolon-space-before": "never",
75+
"declaration-block-semicolon-space-after": "always-single-line",
76+
"declaration-block-semicolon-newline-before": "never-multi-line",
77+
"declaration-block-semicolon-newline-after": "always-multi-line",
78+
"declaration-colon-space-after": "always-single-line",
79+
"declaration-property-value-disallowed-list": [
80+
{"/.*/": ["initial"]},
81+
{"message": "The `initial` value is not supported in IE."}
82+
],
83+
84+
"block-closing-brace-newline-after": "always",
85+
"block-closing-brace-newline-before": "always-multi-line",
86+
"block-opening-brace-newline-after": "always-multi-line",
87+
"block-opening-brace-space-before": "always-multi-line",
88+
89+
"selector-attribute-brackets-space-inside": "never",
90+
"selector-attribute-operator-space-after": "never",
91+
"selector-attribute-operator-space-before": "never",
92+
"selector-combinator-space-after": "always",
93+
"selector-combinator-space-before": "always",
94+
"selector-pseudo-class-case": "lower",
95+
"selector-pseudo-class-parentheses-space-inside": "never",
96+
"selector-pseudo-element-case": "lower",
97+
"selector-pseudo-element-colon-notation": "double",
98+
"selector-pseudo-element-no-unknown": true,
99+
"selector-type-case": "lower",
100+
"selector-max-id": 0,
101+
"no-missing-end-of-source-newline": true,
102+
"no-eol-whitespace": true,
103+
"max-line-length": [
104+
100,
105+
{
106+
"ignorePattern": "/https?://.*/"
107+
}
108+
],
109+
"linebreaks": "unix",
110+
"selector-class-pattern": [
111+
"^_?(docs-|adev-|cm-|mat-|mdc-|xterm|ͼ3|ͼ2u|ͼ1|ng-|hljs-|as-|cdk-)",
112+
{
113+
"resolveNestedSelectors": true
114+
}
115+
]
116+
},
117+
"overrides": [
118+
{
119+
"files": ["projects/shared/src/lib/styles/_split.scss"],
120+
"rules": {
121+
"selector-pseudo-element-no-unknown": [
122+
true,
123+
{
124+
"ignorePseudoElements": ["ng-deep"]
125+
}
126+
]
127+
}
128+
}
129+
]
130+
}

adev/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Angular.dev: The new home for Angular developers (https://angular.dev)
2+
3+
Read more about our initial launch on the [Angular blog](https://goo.gle/angular-dot-dev).

0 commit comments

Comments
 (0)