From 8f236e54d63bfe687fccfa69761f3161ed1afd6f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 19 Nov 2020 22:53:27 +0100 Subject: [PATCH] Update URLs to github.com/freeCodeCamp/devdocs --- docs/filter-reference.md | 34 ++++++++++++++++----------------- docs/scraper-reference.md | 40 +++++++++++++++++++-------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/filter-reference.md b/docs/filter-reference.md index f5c74c66..6c138771 100644 --- a/docs/filter-reference.md +++ b/docs/filter-reference.md @@ -11,7 +11,7 @@ Filters use the [HTML::Pipeline](https://github.com/jch/html-pipeline) library. They take an HTML string or [Nokogiri](http://nokogiri.org/) node as input, optionally perform modifications and/or extract information from it, and then outputs the result. Together they form a pipeline where each filter hands its output to the next filter's input. Every documentation page passes through this pipeline before being copied on the local filesystem. -Filters are subclasses of the [`Docs::Filter`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/core/filter.rb) class and require a `call` method. A basic implementation looks like this: +Filters are subclasses of the [`Docs::Filter`](https://github.com/freeCodeCamp/devdocs/blob/master/lib/docs/core/filter.rb) class and require a `call` method. A basic implementation looks like this: ```ruby module Docs @@ -46,7 +46,7 @@ The `call` method must return either `doc` or `html`, depending on the type of f - `:path` — the page's normalized path - `:store_path` — the path where the page will be stored (equal to `:path` with `.html` at the end) - `:internal_urls` — the list of distinct internal URLs found within the page - - `:entries` — the [`Entry`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/core/models/entry.rb) objects to add to the index + - `:entries` — the [`Entry`](https://github.com/freeCodeCamp/devdocs/blob/master/lib/docs/core/models/entry.rb) objects to add to the index * `css`, `at_css`, `xpath`, `at_xpath` Shortcuts for `doc.css`, `doc.xpath`, etc. @@ -73,23 +73,23 @@ The `call` method must return either `doc` or `html`, depending on the type of f ## Core filters -* [`ContainerFilter`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/filters/core/container.rb) — changes the root node of the document (remove everything outside) -* [`CleanHtmlFilter`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/filters/core/clean_html.rb) — removes HTML comments, `