Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayhesselberth/d0db7caa43c57134c682063a519fac01 to your computer and use it in GitHub Desktop.
Save jayhesselberth/d0db7caa43c57134c682063a519fac01 to your computer and use it in GitHub Desktop.
{
"index_name": "usethis",
"start_urls": [
{
"url": "https://usethis.r-lib.org/index.html",
"selectors_key": "homepage",
"tags": [
"homepage"
]
},
{
"url": "https://usethis.r-lib.org/reference",
"selectors_key": "reference",
"tags": [
"reference"
]
},
{
"url": "https://usethis.r-lib.org/articles",
"selectors_key": "articles",
"tags": [
"articles"
]
}
],
"stop_urls": [
"/reference/$",
"/reference/index.html",
"/articles/$",
"/articles/index.html"
],
"sitemap_urls": [
"https://usethis.r-lib.org/sitemap.xml"
],
"selectors": {
"homepage": {
"lvl0": {
"selector": ".contents h1",
"default_value": "usethis Home page"
},
"lvl1": {
"selector": ".contents h2"
},
"lvl2": {
"selector": ".contents h3",
"default_value": "Context"
},
"lvl3": ".ref-arguments td, .ref-description",
"text": ".contents p, .contents li, .contents .pre"
},
"reference": {
"lvl0": {
"selector": ".contents h1"
},
"lvl1": {
"selector": ".contents .name",
"default_value": "Argument"
},
"lvl2": {
"selector": ".ref-arguments th",
"default_value": "Description"
},
"lvl3": ".ref-arguments td, .ref-description",
"text": ".contents p, .contents li"
},
"articles": {
"lvl0": {
"selector": ".contents h1"
},
"lvl1": {
"selector": ".contents .name"
},
"lvl2": {
"selector": ".contents h2, .contents h3",
"default_value": "Context"
},
"text": ".contents p, .contents li, .tempate-article .contents .pre"
},
"default": {
"lvl1": ".contents h2",
"lvl2": ".contents h3, .contents th",
"lvl3": ".contents h4",
"lvl4": ".contents h5",
"text": ".contents p, .contents li, .usage, .template-article .contents .pre"
}
},
"selectors_exclude": [
".dont-index"
],
"min_indexed_level": 2,
"custom_settings": {
"separatorsToIndex": "_",
"attributesToRetrieve": [
"hierarchy",
"content",
"anchor",
"url",
"url_without_anchor"
]
},
"conversation_id": [
"641427970"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment