Skip to content

Commit

Permalink
Begin glossary card exploration
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Jan 5, 2025
1 parent 10d79c3 commit 3e1c989
Show file tree
Hide file tree
Showing 6 changed files with 623 additions and 7 deletions.
29 changes: 29 additions & 0 deletions src/_data/glossary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
related_links:
- text: "Refactor"
link: "#refactor"
type: "term"
labels:
- "tools"
- "analyzer"
Expand Down Expand Up @@ -62,8 +63,10 @@
related_links:
- text: "Final and const variables"
link: "/language/variables#final-and-const"
type: "doc"
- text: "Don't use const redundantly"
link: "/effective-dart/usage#dont-use-const-redundantly"
type: "doc"
labels:
- "language"
- "const"
Expand Down Expand Up @@ -166,8 +169,10 @@
related_links:
- text: "Definite assignment specification"
link: "https://github.com/dart-lang/language/blob/main/resources/type-system/flow-analysis.md"
type: "doc"
- text: "Understanding definite assignment analysis"
link: "/null-safety/understanding-null-safety#definite-assignment-analysis"
type: "doc"
labels:
- "language"
- "flow analysis"
Expand All @@ -180,8 +185,10 @@
related_links:
- text: "Functions overview"
link: "/language/functions"
type: "doc"
- text: "Instance methods"
link: "/language/methods"
type: "doc"
labels:
- "language"
- "umbrella term"
Expand All @@ -202,8 +209,10 @@
related_links:
- text: "Places patterns can appear"
link: "/language/patterns#places-patterns-can-appear"
type: "doc"
- text: "Dive into Dart patterns and records"
link: "https://codelabs.developers.google.com/codelabs/dart-patterns-records"
type: "tutorial"
labels:
- "language"
- "patterns"
Expand Down Expand Up @@ -249,6 +258,7 @@
related_links:
- text: "Mixins in Dart"
link: "/language/mixins"
type: "doc"
labels:
- "language"
- "understanding diagnostics"
Expand Down Expand Up @@ -321,6 +331,7 @@
related_links:
- text: "Inheritance in Dart"
link: "/language/extend"
type: "doc"
labels:
- "language"
- "type inference"
Expand All @@ -335,8 +346,10 @@
related_links:
- text: "Guidance on libraries and parts"
link: "/tools/pub/create-packages#organizing-a-package"
type: "doc"
- text: "Use library URIs in `part of` directives"
link: "/effective-dart/usage#do-use-strings-in-part-of-directives"
type: "doc"
labels:
- "language"
- "libraries"
Expand Down Expand Up @@ -365,6 +378,7 @@
related_links:
- text: "Nullability and generics"
link: "/null-safety/understanding-null-safety#nullability-and-generics"
type: "doc"
labels:
- "language"
- "type system"
Expand All @@ -383,8 +397,10 @@
related_links:
- text: "Organizing a package's libraries"
link: "/tools/pub/create-packages#organizing-a-package"
type: "doc"
- text: "Public package directories"
link: "/tools/pub/package-layout#public-directories"
type: "doc"
labels:
- "language"
- "libraries"
Expand All @@ -396,10 +412,13 @@
related_links:
- text: "Quick fixes for analysis issues"
link: "https://medium.com/dartlang/quick-fixes-for-analysis-issues-c10df084971a"
type: "article"
- text: "Diagnostic messages"
link: "/tools/diagnostic-messages"
type: "doc"
- text: "Linter rules"
link: "/tools/linter-rules"
type: "doc"
labels:
- "tools"
- "understanding diagnostics"
Expand All @@ -415,6 +434,7 @@
related_links:
- text: "Assist"
link: "#assist"
type: "term"
labels:
- "tools"
- "analysis"
Expand All @@ -432,8 +452,10 @@
related_links:
- text: "Places patterns can appear"
link: "/language/patterns#places-patterns-can-appear"
type: "doc"
- text: "Dive into Dart patterns and records"
link: "https://codelabs.developers.google.com/codelabs/dart-patterns-records"
type: "tutorial"
labels:
- "language"
- "patterns"
Expand Down Expand Up @@ -472,8 +494,10 @@
related_links:
- text: "Inheritance in Dart"
link: "/language/extend"
type: "doc"
- text: "Subtype relationship"
link: "#subtype"
type: "term"
labels:
- "language"
- "type system"
Expand Down Expand Up @@ -519,8 +543,10 @@
related_links:
- text: "Subclass"
link: "#subclass"
type: "term"
- text: "Substituting types"
link: "/language/type-system#substituting-types"
type: "doc"
labels:
- "language"
- "type system"
Expand Down Expand Up @@ -611,10 +637,13 @@
related_links:
- text: "Subtype relationship"
link: "#subtype"
type: "term"
- text: "Covariance and contravariance"
link: "https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)"
type: "article"
- text: "The covariant keyword"
link: "/language/type-system#covariant-keyword"
type: "doc"
labels:
- "language"
- "type system"
Expand Down
1 change: 1 addition & 0 deletions src/_sass/_site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@use 'components/code';
@use 'components/cookie-notice';
@use 'components/form';
@use 'components/glossary';
@use 'components/header';
@use 'components/linter-rules';
@use 'components/search';
Expand Down
2 changes: 1 addition & 1 deletion src/_sass/components/_banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
background-color: $dash-callout;
padding: 12px 0;
text-align: center;
z-index: 1000;
z-index: 500;

&__text {
font-family: $site-font-family-alt;
Expand Down
Loading

0 comments on commit 3e1c989

Please sign in to comment.