chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)
This commit is contained in:
commit
9097ee699d
5769 files changed
+1446466
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# Markdown extraction fixtures
|
||||
|
||||
These HTML fixtures are authored for the extraction regression tests:
|
||||
|
||||
- `article.html`: retains sibling sections around a nested `.content` element after
|
||||
successful Readability extraction.
|
||||
- `structure.html`: preserves links, lists, tables and code indentation while
|
||||
removing empty anchors and navigation noise.
|
||||
- `fallback.html`: retains directory entries and resolves relative links when
|
||||
article extraction falls back to document content.
|
||||
|
||||
Run the fixture tests from the repository root:
|
||||
|
||||
```sh
|
||||
go test ./internal/infrastructure/web_fetch -run TestMarkdownExtractionFixtures
|
||||
```
|
||||
|
||||
The tests assert content and structural preservation independently of incidental
|
||||
Markdown spacing and list marker choices.
|
||||
@@ -0,0 +1 @@
|
||||
<html><head><title>Article extraction fixture</title></head><body><nav>Navigation noise</nav><article><h1>Complete article</h1><div class="content"><p>FIRST_SECTION This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. </p></div><section><h2>Additional context</h2><p>SECOND_SECTION This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. This section describes the behavior of the public interface. It includes detailed explanations, examples, and constraints that should remain visible when the entire article is extracted. </p><p>FINAL_SECTION: See <a href="/reference">the reference</a>.</p></section></article><footer>Footer noise</footer></body></html>
|
||||
@@ -0,0 +1 @@
|
||||
<html><head><title>Directory</title></head><body><header>Header noise</header><main><h2>REFERENCE_DIRECTORY</h2><ul><li><a href="/item/0">Reference entry 0</a></li><li><a href="/item/1">Reference entry 1</a></li><li><a href="/item/2">Reference entry 2</a></li><li><a href="/item/3">Reference entry 3</a></li><li><a href="/item/4">Reference entry 4</a></li><li><a href="/item/5">Reference entry 5</a></li><li><a href="/item/6">Reference entry 6</a></li><li><a href="/item/7">Reference entry 7</a></li><li><a href="/item/8">Reference entry 8</a></li><li><a href="/item/9">Reference entry 9</a></li><li><a href="/item/10">Reference entry 10</a></li><li><a href="/item/11">Reference entry 11</a></li></ul></main><footer>Footer noise</footer></body></html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<html><head><title>Structured reference</title></head><body><main><h1>Guide</h1><p>Read <a href="../next">next page</a>. <a href="/empty"></a></p><ul><li>First item</li><li>Second item</li></ul><pre><code class="language-js">if (a < b) {
|
||||
return a;
|
||||
}</code></pre><table><tr><th>Name</th><th>Value</th></tr><tr><td>Count</td><td>2</td></tr></table></main></body></html>
|
||||
Reference in new issue
Block a user