5 Commits
Author SHA1 Message Date
Kam cd033e5f12 fix(docs-infra): copy code blocks as they are rendered
The copy button read the whole block's `innerText` and then removed every
`\n\n\n` sequence, which dropped the blank lines between lines of code.
On blocks with line numbers, the same `innerText` also picked up the
number column, so pasting produced "1", the first line, "2", "3" and so
on.

Join the text of the visible `.line` elements instead. Line numbers sit
outside those elements, and lines hidden by an example's visible range
stay hidden, so the clipboard matches what the block shows.

The `.remove` branch goes with it, since no line has carried that class
since 8ec0a4ee5c dropped diff support from docs-code.
2026-09-16 15:41:25 +02:00
Matthieu Riegler 1938054f34 docs(docs-infra): remove explicit OnPush 2026-03-25 12:58:39 -07:00
Shuaib Hasan Akib cc1032bd92 docs(docs-infra): removed unused common module (#63915)
PR Close #63915
2025-09-19 14:44:44 +00:00
kirjs 6ff53b7437 docs(docs-infra): Drop standalone: true (#58914)
This is now the default value, so safe to remove

PR Close #58914
2024-11-28 09:43:28 +01:00
Joey Perrott 2d8635d29d refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132)
To increase the ease of development we are moving @angular/docs into the adev directory within this repo. While
we are doing this to improve our development experience in the short term, efforts are also in place
to maintain a division between this @angular/docs (shared) code and adev itself, so that it can be extracted
back out in the future when components is ready to leverage it as well.

PR Close #57132
2024-07-30 15:51:26 +00:00