You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fde566c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/filter-reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The `call` method must return either `doc` or `html`, depending on the type of f
31
31
32
32
*`doc`[Nokogiri::XML::Node]
33
33
The Nokogiri representation of the container element.
34
-
See [Nokogiri's API docs](http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/Node) for the list of available methods.
34
+
See [Nokogiri's API docs](https://nokogiri.org/rdoc/Nokogiri/XML/Node.html) for the list of available methods.
35
35
36
36
*`html`[String]
37
37
The string representation of the container element.
@@ -96,7 +96,7 @@ Scrapers can have any number of custom filters but require at least the two desc
96
96
97
97
The `CleanHtml` filter is tasked with cleaning the HTML markup where necessary and removing anything superfluous or nonessential. Only the core documentation should remain at the end.
98
98
99
-
Nokogiri's many jQuery-like methods make it easy to search and modify elements — see the [API docs](http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/Node).
99
+
Nokogiri's many jQuery-like methods make it easy to search and modify elements — see the [API docs](https://nokogiri.org/rdoc/Nokogiri/XML/Node.html).
100
100
101
101
Here's an example implementation that covers the most common use-cases:
102
102
@@ -159,7 +159,7 @@ Each scraper must implement its own `EntriesFilter` by subclassing the [`Docs::E
159
159
160
160
*`include_default_entry?`[Boolean]
161
161
Whether to include the default entry.
162
-
Used when a page consists of multiple entries (returned by `additional_entries`) but doesn't have a name/type of its own, or to remove a page from the index (if it has no additional entries), in which case it won't be copied on the local filesystem and any link to it in the other pages will be broken (as explained on the [Scraper Reference](./scraper-reference.md) page, this is used to keep the `:skip` / `:skip_patterns` options to a maintainable size, or if the page includes links that can't reached from anywhere else).
162
+
Used when a page consists of multiple entries (returned by `additional_entries`) but doesn't have a name/type of its own, or to remove a page from the index (if it has no additional entries), in which case it won't be copied on the local filesystem and any link to it in the other pages will be broken (as explained on the [Scraper Reference](./scraper-reference.md) page, this is used to keep the `:skip` / `:skip_patterns` options to a maintainable size, or if the page includes links that can't be reached from anywhere else).
Copy file name to clipboardExpand all lines: docs/scraper-reference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Configuration is done via class attributes and divided into three main categorie
85
85
86
86
Each scraper has two [filter](https://github.com/freeCodeCamp/devdocs/blob/main/lib/docs/core/filter.rb)[stacks](https://github.com/freeCodeCamp/devdocs/blob/main/lib/docs/core/filter_stack.rb): `html_filters` and `text_filters`. They are combined into a pipeline (using the [HTML::Pipeline](https://github.com/jch/html-pipeline) library) which causes each filter to hand its output to the next filter's input.
87
87
88
-
HTML filters are executed first and manipulate a parsed version of the document (a [Nokogiri](http://nokogiri.org/Nokogiri/XML/Node.html) node object), whereas text filters manipulate the document as a string. This separation avoids parsing the document multiple times.
88
+
HTML filters are executed first and manipulate a parsed version of the document (a [Nokogiri](https://nokogiri.org/rdoc/Nokogiri/XML/Node.html) node object), whereas text filters manipulate the document as a string. This separation avoids parsing the document multiple times.
89
89
90
90
Filter stacks are like sorted sets. They can be modified using the following methods:
0 commit comments