Commit graph

2065 commits

Author SHA1 Message Date
Joey Perrott
046501fd33 refactor(docs-infra): make docs-alert an inline token
Migrate docs-alert to be inline instead of block, this ensures that the content is placed within a <p> tag as expected. This is important
for ensuring that the iconography is placed correctly within the wrapper div generated for the alert. Additionally, we refactor the matcher
code to be more efficient, running with fewer loops.
2025-11-24 13:25:59 -05:00
SkyZeroZx
2ac826867b docs: Update router docs to add references and components input fixed syntaxis 2025-11-24 13:18:28 -05:00
Shuaib Hasan Akib
b26fe73a91 docs(docs-infra): keep 'Show code' button aligned right and prevent metadata wrapping
Ensures the example viewer header displays correctly by keeping the "Show code"
button aligned to the right and preventing metadata text from wrapping.
Improves layout consistency across documentation examples.
2025-11-24 12:23:36 -05:00
Matthieu Riegler
b5ae62c02b docs: update devtools guide
- splits the injector inspector into its own guide
- update the screenshots
- add defer block section
- add hydration section
2025-11-24 11:11:26 -05:00
NicoPolazzi
325ab18084 docs: correct signals tutorial inconsistencies in chapters 6-10 2025-11-24 11:08:27 -05:00
Shuaib Hasan Akib
0203dad09b docs: html examples and replace <docs-code> with fenced code blocks
Replaced <docs-code language="html" with fenced html for improved readability and consistency across documentation.
2025-11-24 10:38:32 -05:00
Matthieu Riegler
119c6ddaeb docs(docs-infra): simplify tab selection
Tab selection relied on the tabs being visible whe nthe example is loaded. That didn't work when `hideCode` was used.

fixes #65550
2025-11-24 10:24:39 -05:00
HyperLife1119
b6b6fae483 docs: fix order of render phases in lifecycle documentation 2025-11-24 10:22:28 -05:00
Shuaib Hasan Akib
8f89507a0b docs: fix internal links showing as external
Replace absolute URLs (https://angular.dev/...) with relative URLs
(/...) to prevent internal documentation links from being treated
as external links and opening in new tabs.
2025-11-24 10:21:38 -05:00
Kristiyan Kostadinov
26e2092dd1 test: remove unnecessary test calls
Removes calls to `TestBed.configureTestingModule` since they aren't necessary.
2025-11-24 10:18:18 -05:00
Shuaib Hasan Akib
16a0b7dfdb fix(docs-infra): update deprecated API link to use correct status value
Replaced `status=deprecated` with the correct numeric value `status=8`
to ensure the Deprecated APIs link resolves properly in the docs.
2025-11-24 10:17:32 -05:00
Yahya-Almubarak
e501b7e445 docs: fix typo in tutorial 2025-11-24 10:15:01 -05:00
Alan Agius
b28570b227 docs: update ng serve builder to @angular/build:dev-server and detail proxy path matching behavior.
Closes #53652
2025-11-24 09:33:24 -05:00
Matthieu Riegler
48a05dd38c docs: fix v21 event header image
fixes #65572
2025-11-24 09:08:19 -05:00
Hussein Mahmoud Kandil
72b1f7fd43 docs: fix router event subscription in error handler example
The example incorrectly persisted the error message after a successful
navigation retry because the stream only emitted NavigationError events.
This update removes the filter and returns an empty string for non-error
events, allowing the signal to clear the message on normal navigation.
2025-11-22 09:10:54 -05:00
SkyZeroZx
38a354ffa2 docs: Adds signal type checking documentation 2025-11-21 16:31:13 -05:00
Shuaib Hasan Akib
f884c181b3 docs: format JSON examples and replace <docs-code> with fenced code blocks
Replaced <docs-code language="json" for improved
readability and consistency across documentation.
2025-11-21 16:23:52 -05:00
Shuaib Hasan Akib
68aa83e8cf docs: format JSON examples and replace <docs-code> with fenced code blocks
Replaced <docs-code language="json" header=".postcssrc.json"> with fenced
JSON code blocks using ```json {header: '.postcssrc.json'} for improved
readability and consistency across documentation.
2025-11-21 15:48:42 -05:00
cexbrayat
88546ab127 docs: consistent casing for onpush zoneless migration MCP tool name
The tool has been renamed in the CLI for consistency https://github.com/angular/angular-cli/pull/31866
2025-11-21 13:25:59 -05:00
SkyZeroZx
46269be842 feat(docs-infra): add docs-image extension for enhanced image handling in markdown
Extends the Markdown parser to support `loading`, `decoding`, and `fetchpriority` attributes for images via curly brace syntax.
2025-11-21 13:24:59 -05:00
Shuaib Hasan Akib
6f1329f34a docs: format example code blocks for consistency and readability 2025-11-21 13:24:23 -05:00
Joey Perrott
f61e61ac4f refactor(docs-infra): remove the multiple code example view modes
Rather than using multiple view modes for code examples, we can just treat the previous snippet mode as
as multifile mode that just only has one file in it.
2025-11-21 13:22:00 -05:00
Joey Perrott
88753d6a5a refactor(docs-infra): improve code efficiency for adding line numbers
Only run the code for adding line numbers if line numbers are required, otherwise skip the code block
2025-11-21 13:20:46 -05:00
Joey Perrott
a873c4eb1a refactor(docs-infra): remove the unnecessary whitespace using shiki
Use a transformer within shiki to remove the unnecessary whitespace between code lines
2025-11-21 13:20:46 -05:00
Joey Perrott
8ec0a4ee5c refactor(docs-infra): drop support for providing a file diff in docs-code
Drop support for exposing a diff view in the docs-code element as it is unused and costly to even check for
2025-11-21 13:20:46 -05:00
Joey Perrott
fee79e37d5 refactor(docs-infra): use shiki for highlighting
Use shiki to perform highlighting instead of a postprocessing action
2025-11-21 13:20:46 -05:00
Joey Perrott
a8f46e598a fix(docs-infra): link to the snippet location at the proper commit for examples
Within examples, we now link to the github URL using the commit that was made to create adev, rather than
always on main, which may change over time.
2025-11-21 13:19:53 -05:00
Shuaib Hasan Akib
9565938534 docs: format example code blocks for consistency and readability and keep only file name in header 2025-11-21 13:17:17 -05:00
Shuaib Hasan Akib
34fa11ec9d docs: clarify strictInputAccessModifiers applies to both input types
Update the strictInputAccessModifiers documentation to clarify that:
- The flag applies to both @Input() decorator and input() signal-based inputs
- The checking only applies to inputs, not outputs
- format interface with fenced block

Fixes docs part of #65243
2025-11-21 13:16:08 -05:00
SkyZeroZx
1672493d1a docs(docs-infra): update syntax highlighting for inline templates in decorators
Updates syntax highlighting rules to properly handle inline templates defined within decorators, improving readability and consistency in code examples
2025-11-21 13:14:53 -05:00
Shuaib Hasan Akib
aafc8e75a1 docs: Indented the <docs-code> blocks inside numbered list items to ensure correct Markdown rendering and prevent the steps from breaking visually.
- Remove path from header
2025-11-21 13:14:10 -05:00
Ben Hong
8f346ad070 docs: move aria tabs into content organization category 2025-11-21 12:25:36 -05:00
voi99
5685e3879c docs(forms): update error class to error-list in signal forms example 2025-11-21 12:23:49 -05:00
Shuaib Hasan Akib
f825547353 docs: remove unnecessary standalone: true from examples
Standalone components are now the default, so explicitly specifying
`standalone: true` is no longer required. Updated relevant documentation
examples to avoid redundant configuration and keep the guides concise.
2025-11-21 12:23:27 -05:00
Shuaib Hasan Akib
68f5ceeb46 docs: fix incorrect Signal Forms link
Updated outdated link guide/forms/signal-forms/ to the correct path guide/forms/signals/ to ensure proper navigation.

Fixes: #65461 #65462
2025-11-21 10:55:52 -05:00
Ben Hong
b7d91a796b docs: iterate on signal forms essentials guide 2025-11-21 10:48:01 -05:00
Shuaib Hasan Akib
cea19803d8 docs: add missing ARIA patterns and API reference
Adds the missing ARIA usage patterns and links to the relevant API reference
sections to improve accessibility guidance and ensure examples follow recommended
best practices.
2025-11-21 10:18:36 -05:00
Alessio Pelliccione
2ddf26e699 refactor(docs-infra): automate algolia index name based on package version
Previously, the Algolia index name was hardcoded in the configuration, requiring manual updates for every new major release branch.

This commit automates the index name selection by deriving the version directly @angular/core. It dynamically assigns:
- `angular_next_dev` for pre-releases (`-next`, `-rc`) and local snapshots (`0.0.0`).
- `angular_vXX` (e.g., `angular_v19`) for stable releases.
2025-11-20 19:21:32 -05:00
SkyZeroZx
889afe9aa2 docs: updates code block language tags in signal forms 2025-11-20 19:20:30 -05:00
Raxabi
ee57b0f2fa docs: Fix missing single quote in the first navigateByUrl example. 2025-11-20 19:19:43 -05:00
marktechson
c4722820e7 docs: fix update guide typo
The update from 20 to 21 featured the wrong number, this fixes that
2025-11-20 19:19:17 -05:00
Doug Parker
2ecdb221d3 docs: correct v21 LTS end date and v20 active end date
Updated to align the v20 active end date with the v21 release date and fix the v21 LTS to be 1-year after the active period ends.
2025-11-20 16:47:27 -05:00
Charles Lyding
396c25ef5a docs: prioritize ng add for Tailwind CSS and clarify manual steps
This commit updates the Tailwind CSS integration guide (`adev/src/content/guide/tailwind.md`) to introduce `ng add tailwindcss` as the primary, automated method for integrating Tailwind CSS.
2025-11-20 15:00:24 -05:00
Angular Robot
5ddeafced7 docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2025-11-20 14:27:51 -05:00
Devin Chasanoff
b8fa9cc7d5 docs: add v21 event game 2025-11-20 13:27:46 -05:00
Ben Hong
be6f2f066f docs: consolidate patterns and iterate on conclusion for angular aria overview 2025-11-20 12:38:19 -05:00
kirjs
bea7358225 docs: remove unnecessary @ts-ignore from signal forms playground
The @ts-ignore comment is no longer needed as the module resolution
issue has been fixed in the playground editor configuration.
2025-11-20 12:26:21 -05:00
marktechson
183d194025 docs: add 20 to 21 update guide 2025-11-20 11:46:46 -05:00
Wagner Maciel
29185a864f docs: fix standlone menu overlay 2025-11-20 11:20:37 -05:00
Charles Lyding
80202bffee docs: add note about Karma/Jasmine examples in testing services guide
This guide currently contains Karma/Jasmine specific code examples.
Adding a note to inform readers that Vitest equivalents are being worked on.
2025-11-20 10:47:34 -05:00