History

Add base_urls attribute in scraper-reference.md

Enoc committed 5 years ago

Commit fa45fd31 parent de58a631 file · +2 −0Browse files

Unified · Split

docs/scraper-reference.md+2−0
@@ -60,6 +60,8 @@ Configuration is done via class attributes and divided into three main categorie · 59 unmodified lines
6060 Defaults to `localhost` in `FileScraper`. _(Note: any iframe, image, or skipped link pointing to localhost will be removed by the `CleanLocalUrls` filter; the value should be overridden if the documents are available online.)_
6161 Unless `root_path` is set, the root/initial URL is equal to `base_url`.
6262
63+* `base_urls` [Array] **(the `MultipleBaseUrls` module must be included)** Documentation's locations. Almost the same as `base_url` but in this case more than one URL can be added, should be used when a documentation is split in different URLs or needs more URLs to be completed. See [`typescript.rb`](https://github.com/freeCodeCamp/devdocs/blob/main/lib/docs/scrapers/typescript.rb).
64+
6365 * `root_path` [String] **(inherited)**
6466 The path from the `base_url` of the root URL.
6567