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
Copy file name to clipboardexpand all lines: content/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -228,9 +228,9 @@ includeGuides:
228
228
- Optional.
229
229
230
230
### `topics`
231
-
- Purpose: Indicate the topics covered by the article.
232
-
- Type: `String`
233
-
- Optional.
231
+
- Purpose: Indicate the topics covered by the article. The topics are used to filter guides on some landing pages. For example, the guides at the bottom of [this page](https://docs.github.com/en/actions/guides) can be filtered by topics and the topics are listed under the guide intro. Topics are also added to all search records that get created for each page. The search records contain a `topics` property that is used to filter search results by topics. For more information, see the [Search](/contributing/search.md) contributing guide. Refer to the content models for more details around adding topics. A full list of existing topics is located in the [allowed topics file](/data/allowed-topics.js). If topics in article frontmatter and the allow-topics list become out of sync, the [topics CI test](/tests/unit/search/topics.js) will fail.
232
+
- Type: Array of `String`s
233
+
- Optional: Topics are preferred for each article, but, there may be cases where existing articles don't yet have topics or a adding a topic to a new article may not add value.
234
234
235
235
### `contributor`
236
236
- Purpose: Indicate an article is contributed and maintained by a third-party organization, typically a GitHub Technology Partner.
Copy file name to clipboardexpand all lines: contributing/search.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,10 @@ To see all existing search-related issues and pull requests, visit [github.com/g
15
15
## How to search
16
16
17
17
The site search is part of every version of docs.github.com. On any page, you can use the search box to search the documents we've indexed.
18
-
You can also query our search endpoint directly at: https://docs.github.com/search?language=en&version=dotcom&query=jekyll
18
+
You can also query our search endpoint directly at: https://docs.github.com/search?language=en&version=dotcom&query=jekyll+topics:actions
19
+
20
+
Using the attribute `topics` in your query will only return results that have the matching topic value. You can find a full list of topics in [the allowed topics file](/data/allowed-topics.js). The `topics` attribute is configured as a [`filter only` facet in Algolia](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
21
+
19
22
This endpoint responds in JSON format, and fronts Algolia and Lunr. We recommend using this endpoint over directly integrating with Algolia or Lunr, as the endpoint will be more stable.
0 commit comments