angular/aio/tools/transforms/angular-base-package
George Kalpakas 3fdcf991c7 build(docs-infra): be able to resolve root-relative image URLs in getImageDimensions() (#46138)
Previously, `getImageDimensions()` would try to resolve image URLs
relative to the base path using `path.resolve()`. This resulted in
root-relative URLs (i.e. URLs starting with `/`) being treated as
absolute filesystem paths and thus resolving incorrectly
([example failure][1]).

This commit fixes it by using `.join()` instead, which is more
appropriate in this case. (Originally discussed [here][2].)

[1]: https://circleci.com/gh/angular/angular/1173150
[2]: https://github.com/angular/angular/pull/46134#issuecomment-1137191996

PR Close #46138
2022-05-26 11:25:07 -07:00
..
inline-tag-defs/custom-search-defs build(docs-infra): remove {@searchKeywords} from content when rendering (#37132) 2020-05-15 10:04:45 -07:00
post-processors fix(docs-infra): avoid internal symbols from being referenced during auto-linking (#45689) 2022-04-20 09:11:22 -07:00
processors fix(docs-infra): add member name to search index without ignore list (#46060) 2022-05-23 09:56:08 -07:00
readers build(aio): refactor dgeni packages 2017-04-23 22:50:33 +01:00
rendering docs: fix several typos (#44508) 2022-01-04 12:13:46 -08:00
services build(docs-infra): be able to resolve root-relative image URLs in getImageDimensions() (#46138) 2022-05-26 11:25:07 -07:00
ignore-words.json refactor(docs-infra): include more info in search index data (#41368) 2021-04-01 12:02:37 -07:00
index.js build(docs-infra): remove disambiguator doc-type (#42414) 2021-06-17 18:14:53 +00:00