Commit d00cb12
authored
build: fix chips drag-drop example not working and improve example-module generation (angular#20003)
* build: fix chips drag-drop example not working and improve example-module generation
Loading the chips-drag-drop example in the docs site is currently not
possible, as the example files fail to load. This is because the example
id does not match up with the directory that the example is stored within.
This highlights an issue as the docs site assumes a certain folder
structure. This is not ideal and an implementation detail specific to
the Angular Components repository. The docs site should not need to
make any assumptions about where code lives, but instead should just
retrieve this information through the example information. That way we
are free to change layout/file conventions in the components repository
without having to worry about it breaking the docs site.
This is implemented as part of this commit. Also a few sanity checks
that enforce consistency (for improved code health) have been added. The
new concept for examples also allows us to remove empty CSS files for
examples without CSS.
* chore: remove empty CSS files from examples
We now can have examples without CSS files. This was previously not
possible and the docs site just failed loading as it assumed a CSS file
per example. We remove those empty stylesheets as they are superflous to
examples and rather can confuse/distract the examples in the docs.1 parent 23170af commit d00cb12
File tree
148 files changed
+98
-163
lines changed- src
- components-examples
- cdk
- platform/cdk-platform-overview
- stepper/cdk-linear-stepper-with-form
- material-experimental
- column-resize
- default-enabled-column-resize-flex
- default-enabled-column-resize
- opt-in-column-resize
- mdc-form-field
- mdc-form-field-custom-control
- material
- autocomplete/autocomplete-optgroup
- badge/badge-overview
- bottom-sheet/bottom-sheet-overview
- button-toggle/button-toggle-overview
- card/card-overview
- chips
- chips-drag-drop
- chips-overview
- datepicker
- date-range-picker-forms
- date-range-picker-overview
- date-range-picker-selection-strategy
- datepicker-custom-header
- datepicker-custom-icon
- datepicker-disabled
- datepicker-filter
- datepicker-formats
- datepicker-min-max
- datepicker-moment
- datepicker-overview
- datepicker-start-view
- datepicker-touch
- dialog
- dialog-content
- dialog-data
- dialog-elements
- dialog-overview
- divider/divider-overview
- form-field
- form-field-appearance
- form-field-custom-control
- form-field-overview
- grid-list/grid-list-dynamic
- icon
- icon-overview
- icon-svg
- list/list-overview
- paginator/paginator-overview
- progress-bar
- progress-bar-buffer
- progress-bar-determinate
- progress-bar-indeterminate
- progress-bar-query
- progress-spinner/progress-spinner-overview
- select
- select-disabled
- select-error-state-matcher
- select-form
- select-hint-error
- select-initial-value
- select-multiple
- select-no-ripple
- select-optgroup
- select-overview
- select-reactive-form
- select-reset
- select-value-binding
- slide-toggle/slide-toggle-overview
- slider/slider-overview
- tabs
- tab-group-async
- tab-group-basic
- tab-group-header-below
- tab-group-lazy-loaded
- tooltip
- tooltip-modified-defaults
- tooltip-overview
- dev-app/mdc-input
- tools/example-module
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
148 files changed
+98
-163
lines changedLines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
0 commit comments