fix(content-blog): links in feed should be absolute #3445
Annotations
10 errors
packages/docusaurus-plugin-content-blog/src/__tests__/index.test.ts#L328
expect(received).toHaveLength(expected)
Expected length: 9
Received length: 10
Received array: [{"content": "[absolute full url](https://github.com/facebook/docusaurus)·
[absolute url with implicit domain name](/tests/blog/2023/07/19/b)·
[relative url](2023-07-19-b.mdx)·
[anchor](#title)", "id": "/blog-with-links", "metadata": {"authors": [], "date": 2023-07-21T07:53:43.000Z, "description": "absolute full url", "editUrl": "https://baseEditUrl.com/edit/blog/blog-with-links.md", "formattedDate": "21 juillet 2023", "frontMatter": {"title": "Test if href in feed resolved correctly"}, "hasTruncateMarker": false, "nextItem": {"permalink": "/blog/mdx-require-blog-post", "title": "MDX Blog Sample with require calls"}, "permalink": "/blog/blog-with-links", "readingTime": 0.06, "source": "@site/blog/blog-with-links.md", "tags": [], "title": "Test if href in feed resolved correctly", "unlisted": false}}, {"content": "Test MDX with require calls·
import useBaseUrl from '@docusaurus/useBaseUrl';·
<img src={useBaseUrl('/img/docusaurus.png')} />·
<img src={require('../static/img/docusaurus.png').default} />·
<img src={require('@site/static/img/docusaurus.png').default} />", "id": "/mdx-require-blog-post", "metadata": {"authors": [], "date": 2021-03-06T00:00:00.000Z, "description": "Test MDX with require calls", "editUrl": "https://baseEditUrl.com/edit/blog/mdx-require-blog-post.mdx", "formattedDate": "6 mars 2021", "frontMatter": {"date": 2021-03-06T00:00:00.000Z, "title": "MDX Blog Sample with require calls"}, "hasTruncateMarker": false, "nextItem": {"permalink": "/blog/mdx-blog-post", "title": "Full Blog Sample"}, "permalink": "/blog/mdx-require-blog-post", "prevItem": {"permalink": "/blog/blog-with-links", "title": "Test if href in feed resolved correctly"}, "readingTime": 0.09, "source": "@site/blog/mdx-require-blog-post.mdx", "tags": [], "title": "MDX Blog Sample with require calls", "unlisted": false}}, {"content": "<h1>HTML Heading 1</h1>
<h2>HTML Heading 2</h2>
<p>HTML Paragraph</p>·
import Typography from '../../component/Typography'·
<Typography>Import DOM</Typography>·
# Heading 1·
## Heading 2·
### Heading 3·
#### Heading 4·
##### Heading 5·
- list1
- list2
- list3··
* list1
* list2
* list3·
Normal Text *Italics Text* **Bold Text**·
[link](https://v2.docusaurus.io/)
![image](https://v2.docusaurus.io/)", "id": "/mdx-blog-post", "metadata": {"authors": [], "date": 2021-03-05T00:00:00.000Z, "description": "HTML Heading 1", "editUrl": "https://baseEditUrl.com/edit/blog/mdx-blog-post.mdx", "formattedDate": "5 mars 2021", "frontMatter": {"date": 2021-03-05T00:00:00.000Z, "title": "Full Blog Sample"}, "hasTruncateMarker": false, "nextItem": {"permalink": "/blog/hey/my super path/héllô", "title": "Complex Slug"}, "permalink": "/blog/mdx-blog-post", "prevItem": {"permalink": "/blog/mdx-require-blog-post", "title": "MDX Blog Sample with require calls"}, "readingTime": 0.245, "source": "@site/blog/mdx-blog-post.mdx", "tags": [], "title": "Full Blog Sample", "unlisted": false}}, {"content": "complex url slug", "id": "/hey/my super path/héllô", "metadata": {"authors": [], "date": 2020-08-16T00:00:00.000Z, "description": "complex url slug", "editUrl": "https://baseEditUrl.com/edit/blog/complex-slug.md", "formattedDate": "16 août 2020", "frontMatter": {"date": "2020/08/16", "slug": "/hey/my super path/héllô", "tags": ["date", "complex"], "title": "Complex Slug"}, "hasTruncateMarker": false, "nextItem": {"permalink": "/blog/simple/slug", "title": "Simple Slug"}, "permalink": "/blog/hey/my super path/héllô", "prevItem": {"permalink": "/blog/mdx-blog-post", "title": "Full Blog Sample"}, "readingTime": 0.015, "source": "@site/blog/complex-slug.md", "tags": [{"label": "date", "permalink": "/blog/tags/date"}, {"label": "complex", "permalink": "/blog/tags/complex"}], "title": "Complex Slug", "unlisted": false}}, {"content": "simple url slug", "id": "/simple/slug", "metadata": {"authors": [{"imageURL": undefined, "name": "Sébastien Lorber", "title": "Docusaurus maintainer", "url": "https://sebastienlorber.com"}], "date": 2020-08-15T00:00:00.000
|
packages/docusaurus-plugin-content-blog/src/__tests__/index.test.ts#L380
expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 9
Received number of calls: 10
at Object.toHaveBeenCalledTimes (packages/docusaurus-plugin-content-blog/src/__tests__/index.test.ts:380:29)
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L175
expect(received).toMatchSnapshot()
Snapshot name: `atom has feed item for each post 1`
- Snapshot - 2
+ Received + 2
@@ -1,21 +1,21 @@
[
"<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://docusaurus.io/myBaseUrl/blog</id>
<title>Hello Blog</title>
- <updated>2023-07-19T08:15:33.000Z</updated>
+ <updated>2023-07-21T07:53:43.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://docusaurus.io/myBaseUrl/blog"/>
<subtitle>Hello Blog</subtitle>
<icon>https://docusaurus.io/myBaseUrl/image/favicon.ico</icon>
<rights>Copyright</rights>
<entry>
<title type="html"><![CDATA[Test if href in feed resolved correctly]]></title>
<id>https://docusaurus.io/myBaseUrl/blog/blog-with-links</id>
<link href="https://docusaurus.io/myBaseUrl/blog/blog-with-links"/>
- <updated>2023-07-19T08:15:33.000Z</updated>
+ <updated>2023-07-21T07:53:43.000Z</updated>
<summary type="html"><![CDATA[absolute full url]]></summary>
<content type="html"><![CDATA[<p><a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">absolute full url</a></p>
<p><a href="https://docusaurus.io/blog-only/tests/blog/2023/07/19/b">absolute url with implicit domain name</a></p>
<p><a href="https://docusaurus.io/blog-only/2023-07-19-b.mdx">relative url</a></p>
<p><a href="https://docusaurus.io/myBaseUrl/blog/blog-with-links#title">anchor</a></p>]]></content>
at Object.toMatchSnapshot (packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts:175:7)
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L227
expect(received).toMatchSnapshot()
Snapshot name: `atom filters to the first two entries 1`
- Snapshot - 2
+ Received + 2
@@ -1,21 +1,21 @@
[
"<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://docusaurus.io/myBaseUrl/blog</id>
<title>Hello Blog</title>
- <updated>2023-07-19T08:15:33.000Z</updated>
+ <updated>2023-07-21T07:53:43.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://docusaurus.io/myBaseUrl/blog"/>
<subtitle>Hello Blog</subtitle>
<icon>https://docusaurus.io/myBaseUrl/image/favicon.ico</icon>
<rights>Copyright</rights>
<entry>
<title type="html"><![CDATA[Test if href in feed resolved correctly]]></title>
<id>https://docusaurus.io/myBaseUrl/blog/blog-with-links</id>
<link href="https://docusaurus.io/myBaseUrl/blog/blog-with-links"/>
- <updated>2023-07-19T08:15:33.000Z</updated>
+ <updated>2023-07-21T07:53:43.000Z</updated>
<summary type="html"><![CDATA[absolute full url]]></summary>
<content type="html"><![CDATA[<p><a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">absolute full url</a></p>
<p><a href="https://docusaurus.io/blog-only/tests/blog/2023/07/19/b">absolute url with implicit domain name</a></p>
<p><a href="https://docusaurus.io/blog-only/2023-07-19-b.mdx">relative url</a></p>
<p><a href="https://docusaurus.io/myBaseUrl/blog/blog-with-links#title">anchor</a></p>]]></content>
at Object.toMatchSnapshot (packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts:227:7)
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L175
expect(received).toMatchSnapshot()
Snapshot name: `rss has feed item for each post 1`
- Snapshot - 2
+ Received + 2
@@ -3,20 +3,20 @@
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Hello Blog</title>
<link>https://docusaurus.io/myBaseUrl/blog</link>
<description>Hello Blog</description>
- <lastBuildDate>Wed, 19 Jul 2023 08:15:33 GMT</lastBuildDate>
+ <lastBuildDate>Fri, 21 Jul 2023 07:53:43 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
<copyright>Copyright</copyright>
<item>
<title><![CDATA[Test if href in feed resolved correctly]]></title>
<link>https://docusaurus.io/myBaseUrl/blog/blog-with-links</link>
<guid>https://docusaurus.io/myBaseUrl/blog/blog-with-links</guid>
- <pubDate>Wed, 19 Jul 2023 08:15:33 GMT</pubDate>
+ <pubDate>Fri, 21 Jul 2023 07:53:43 GMT</pubDate>
<description><![CDATA[absolute full url]]></description>
<content:encoded><![CDATA[<p><a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">absolute full url</a></p>
<p><a href="https://docusaurus.io/blog-only/tests/blog/2023/07/19/b">absolute url with implicit domain name</a></p>
<p><a href="https://docusaurus.io/blog-only/2023-07-19-b.mdx">relative url</a></p>
<p><a href="https://docusaurus.io/myBaseUrl/blog/blog-with-links#title">anchor</a></p>]]></content:encoded>
at Object.toMatchSnapshot (packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts:175:7)
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L227
expect(received).toMatchSnapshot()
Snapshot name: `rss filters to the first two entries 1`
- Snapshot - 2
+ Received + 2
@@ -3,20 +3,20 @@
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Hello Blog</title>
<link>https://docusaurus.io/myBaseUrl/blog</link>
<description>Hello Blog</description>
- <lastBuildDate>Wed, 19 Jul 2023 08:15:33 GMT</lastBuildDate>
+ <lastBuildDate>Fri, 21 Jul 2023 07:53:43 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
<copyright>Copyright</copyright>
<item>
<title><![CDATA[Test if href in feed resolved correctly]]></title>
<link>https://docusaurus.io/myBaseUrl/blog/blog-with-links</link>
<guid>https://docusaurus.io/myBaseUrl/blog/blog-with-links</guid>
- <pubDate>Wed, 19 Jul 2023 08:15:33 GMT</pubDate>
+ <pubDate>Fri, 21 Jul 2023 07:53:43 GMT</pubDate>
<description><![CDATA[absolute full url]]></description>
<content:encoded><![CDATA[<p><a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">absolute full url</a></p>
<p><a href="https://docusaurus.io/blog-only/tests/blog/2023/07/19/b">absolute url with implicit domain name</a></p>
<p><a href="https://docusaurus.io/blog-only/2023-07-19-b.mdx">relative url</a></p>
<p><a href="https://docusaurus.io/myBaseUrl/blog/blog-with-links#title">anchor</a></p>]]></content:encoded>
at Object.toMatchSnapshot (packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts:227:7)
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L175
expect(received).toMatchSnapshot()
Snapshot name: `json has feed item for each post 1`
- Snapshot - 1
+ Received + 1
@@ -9,11 +9,11 @@
"id": "https://docusaurus.io/myBaseUrl/blog/blog-with-links",
"content_html": "<p><a href=\"https://github.com/facebook/docusaurus\" target=\"_blank\" rel=\"noopener noreferrer\">absolute full url</a></p>/n<p><a href=\"https://docusaurus.io/blog-only/tests/blog/2023/07/19/b\">absolute url with implicit domain name</a></p>/n<p><a href=\"https://docusaurus.io/blog-only/2023-07-19-b.mdx\">relative url</a></p>/n<p><a href=\"https://docusaurus.io/myBaseUrl/blog/blog-with-links#title\">anchor</a></p>",
"url": "https://docusaurus.io/myBaseUrl/blog/blog-with-links",
"title": "Test if href in feed resolved correctly",
"summary": "absolute full url",
- "date_modified": "2023-07-19T08:15:33.000Z",
+ "date_modified": "2023-07-21T07:53:43.000Z",
"tags": []
},
{
"id": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post",
"content_html": "<p>Test MDX with require calls</p><img src=\"/foo/img/docusaurus.png\"><img src=\"data:image/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AwMpI4dO1Lbtm3pueeeo61btzrUV1ZWFj3++ONWKxseffRRMpvNLe7vzTffrClF5ONDEydOhIuldb53ZqNTxpyfn08RERFWBsiM2mQytbi/+fPn29zCnJSU1KK+ioqKyNe3poTpU089RRs3bqTt27dTQEBAvUiuXr2quL8ff/xRFgYT7e7duxGk64E/FBsdFsfhw4epR48eNTsvO3WioKAgmjRpEvXu3Vv+rHPnzvTTTz8p7u/dd9+tqXwouS/Lly+nS5cuUUlJCa1fv17ui11j7pFSTJs2Tf4O+7tu3bpV//ndu3fr3v40Y8YMRX1VVFTQkCFD5O8sW7YMmXS98MLdQofEYbFYqFu3brLBsBGEBa11KC0tpcTERPkaa8NGGXs4ePCg/HZu06YN7du3z+r6/v3769/e6enpdvvbs2dPTeHrnj1l968xLl68SN2712yR/vbbb+3299lnn8ltn3jiCbp37x4y6XphedWdFouDBbiDBw+WDWb27NlUWVlp1aaqqooiIyPlNsOHD3/IqBrj9u3bNGjQILnt4sWLbbZbuHCh3Mbf37/J31kH9rvq+mPBuS2w0Yi18fPzk4NvW2C/iwmDtd22bRsy6RAINWvM48aNq48z2L9tgblH/fv3l9suWLDAZrt58+bJbZ5++ulmhcRGpscee8yu4a9YsUJuM2zYMNk1soXy
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L227
expect(received).toMatchSnapshot()
Snapshot name: `json filters to the first two entries 1`
- Snapshot - 1
+ Received + 1
@@ -9,11 +9,11 @@
"id": "https://docusaurus.io/myBaseUrl/blog/blog-with-links",
"content_html": "<p><a href=\"https://github.com/facebook/docusaurus\" target=\"_blank\" rel=\"noopener noreferrer\">absolute full url</a></p>/n<p><a href=\"https://docusaurus.io/blog-only/tests/blog/2023/07/19/b\">absolute url with implicit domain name</a></p>/n<p><a href=\"https://docusaurus.io/blog-only/2023-07-19-b.mdx\">relative url</a></p>/n<p><a href=\"https://docusaurus.io/myBaseUrl/blog/blog-with-links#title\">anchor</a></p>",
"url": "https://docusaurus.io/myBaseUrl/blog/blog-with-links",
"title": "Test if href in feed resolved correctly",
"summary": "absolute full url",
- "date_modified": "2023-07-19T08:15:33.000Z",
+ "date_modified": "2023-07-21T07:53:43.000Z",
"tags": []
},
{
"id": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post",
"content_html": "<p>Test MDX with require calls</p><img src=\"/foo/img/docusaurus.png\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAT3UlEQVR42u1dCVQVV5pWXNt2N0czykl33KImZ7IgKgqIghq3KCDK+qowCek2c2K0Mx3idBxakzYxJnZiq3Gf6Bg7UdN2R51MxnTSia3gew9Rwccm7oqiiIK4sPxTt1hEHo9XvPVW1fed852Dr+67UNb/1f3/+9/731atAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO8i2CxGjDUJXzMGmcSZnmoHAF7B6GMJvYPNwq5gk1AmMS/YJMbaahtkNsRLbeghmoU4d7cDAO+NCEbhQCMjrZbe5q81bhdyVOwuXbtqZdDSZ+yau9oBgNcgGeIvmzDQJkUy1ix8ZKMtsWvuagcAXsNYs/iyLSNlIgk2GebLQjKJQ6R/32+mbcWYI8KTrm6HJwR4170yCV80Y6T1I4kklH122lFNG9e2wxMC3Ao/U1KnQLPgF2SK/xeri5TiIxlikX1DBXVANpoXSy/DzGCjYfdYs2FRiFkcxWxEu/GF0RAm3fT1Bv8JJyV+LLlV08ccnNuFCQeGAdrheWkkXxaSGueruZFDurlrzfn4QSbDGRgAqJD3JK4NMcU8oo3RIz1hOB4q6AZeCzKK0aoXCIs58DBBt9Esfip5Ke3UPkN1Eg8TdB8N+5grr+JRxPAJHiLoTgaZhf97MiuqvVqTgNPxEEEPcK0qBTIyNa6rnWw1CLooJjHMUZc6KMWnNs9xDg8Q9ACLQtMMvbhfeFi7tuoLZMhBz1NczaUw2H4OFizhAYFe5l0uM+61m53wgMAWM+C7aBr425Ey2c8umPpdxmO+oxQPWz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80a+CaEYi7M+ngA7JR4ERpHgFqEogbM+lgDSelv0LfFx+B1SNIBxtzWsarlH27ABavZoF4YsOUHhliEuX4AlCOwsJC2rVrF7+JwjHGuU8Em4X9MHDn+afzOzRtzGVlZbR69WqKjY2lqKgoev/996m4uNihvqqrqyklJYU6dKhf3Kq/Pel6izuKK246bYQXLlygvXv30ldffUWZmZlO9cX6CAwMpI4dO1Lbtm3pueeeo61btzrUV1ZWFj3++ONWKxseffRRMpvNLe7vzTffrClF5ONDEydOhIuldb53ZqNTxpyfn08RERFWBsiM2mQytbi/+fPn29zCnJSU1KK+ioqKyNe3poTpU089RRs3bqTt27dTQEBAvUiuXr2quL8ff/xRFgYT7e7duxGk64E/FBsdFsfhw4epR48eNTsvO3WioKAgmjRpEvXu3Vv+rHPnzvTTTz8p7u/dd9+tqXwouS/Lly+nS5cuUUlJCa1fv17ui11j7pFSTJs2Tf4O+7tu3bpV//ndu3fr3v40Y8YMRX1VVFTQkCFD5O8sW7YMmXS98MLdQofEYbFYqFu3brLBsBGEBa11KC0tpcTERPkaa8NGGXs4ePCg/HZu06YN7du3z+r6/v3769/e6enpdvvbs2dPTeHrnj1l968xLl68SN2712yR/vbbb+3299lnn8ltn3jiCbp37x4y6XphedWdFouDBbiDBw+WDWb27NlUWVlp1aaqqooiIyPlNsOHD3/IqBrj9u3bNGjQILnt4sWLbbZbuHCh3Mbf37/J31kH9rvq+mPBuS2w0Yi18fPzk4NvW2C/iwmDtd22bRsy6RAINWvM48aNq48z2L9tgblH/fv3l9suWLDAZrt58+bJbZ5++ulmhcRGpscee8yu4a9YsUJuM2zYMNk
|
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts#L319
expect(received).toMatchSnapshot()
Snapshot name: `Test defaultCreateFeedItems links in feeds are resolved correctly 1`
- Snapshot - 5
+ Received + 5
@@ -1,21 +1,21 @@
[
"<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://docusaurus.io/myBaseUrl/blog</id>
<title>Hello Blog</title>
- <updated>2023-07-19T08:15:33.000Z</updated>
+ <updated>2023-07-21T07:53:43.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://docusaurus.io/myBaseUrl/blog"/>
<subtitle>Hello Blog</subtitle>
<icon>https://docusaurus.io/myBaseUrl/image/favicon.ico</icon>
<rights>Copyright</rights>
<entry>
<title type="html"><![CDATA[Test if href in feed resolved correctly]]></title>
<id>https://docusaurus.io/myBaseUrl/blog/blog-with-links</id>
<link href="https://docusaurus.io/myBaseUrl/blog/blog-with-links"/>
- <updated>2023-07-19T08:15:33.000Z</updated>
+ <updated>2023-07-21T07:53:43.000Z</updated>
<summary type="html"><![CDATA[absolute full url]]></summary>
<content type="html"><![CDATA[<p><a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">absolute full url</a></p>
<p><a href="https://docusaurus.io/blog-only/tests/blog/2023/07/19/b">absolute url with implicit domain name</a></p>
<p><a href="https://docusaurus.io/blog-only/2023-07-19-b.mdx">relative url</a></p>
<p><a href="https://docusaurus.io/myBaseUrl/blog/blog-with-links#title">anchor</a></p>]]></content>
@@ -93,20 +93,20 @@
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Hello Blog</title>
<link>https://docusaurus.io/myBaseUrl/blog</link>
<description>Hello Blog</description>
- <lastBuildDate>Wed, 19 Jul 2023 08:15:33 GMT</lastBuildDate>
+ <lastBuildDate>Fri, 21 Jul 2023 07:53:43 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
<copyright>Copyright</copyright>
<item>
<title><![CDATA[Test if href in feed resolved correctly]]></title>
<link>https://docusaurus.io/myBaseUrl/blog/blog-with-links</link>
<guid>https://docusaurus.io/myBaseUrl/blog/blog-with-links</guid>
- <pubDate>Wed, 19 Jul 2023 08:15:33 GMT</pubDate>
+ <pubDate>Fri, 21 Jul 2023 07:53:43 GMT</pubDate>
<description><![CDATA[absolute full url]]></description>
<content:encoded><![CDATA[<p><a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">absolute full url</a></p>
<p><a href="https://docusaurus.io/blog-only/tests/blog/2023/07/19/b">absolute url with implicit domain name</a></p>
<p><a href="https://docusaurus.io/blog-only/2023-07-19-b.mdx">relative url</a></p>
<p><a href="https://docusaurus.io/myBaseUrl/blog/blog-with-links#title">anchor</a></p>]]></content:encoded>
@@ -181,11 +181,11 @@
"id": "https://docusaurus.io/myBaseUrl/blog/blog-with-links",
"content_html": "<p><a href=\"https://github.com/facebook/docusaurus\" target=\"_blank\" rel=\"noopener noreferrer\">absolute full url</a></p>/n<p><a href=\"https://docusaurus.io/blog-only/tests/blog/2023/07/19/b\">absolute url with implicit domain name</a></p>/n<p><a href=\"https://docusaurus.io/blog-only/2023-07-19-b.mdx\">relative url</a></p>/n<p><a href=\"https://docusaurus.io/myBaseUrl/blog/blog-with-links#title\">anchor</a></p>",
"url": "https://docusaurus.io/myBaseUrl/blog/blog-with-links",
"title": "Test if href in feed resolved correctly",
"summary": "absolute full url",
- "date_modified": "2023-07-19T08:15:33.000Z",
+ "date_modified": "2023-07-21T07:53:43.000Z",
"tags": []
|
|
The logs for this run have expired and are no longer available.
Loading