Skip to content

Commit

Permalink
Add robots.txt and update docfx.json to include it (#52)
Browse files Browse the repository at this point in the history
Updated `docfx.json` to include `robots.txt` in the list of resource files. Added a new `robots.txt` file that:
- Allows all user agents.
- Disallows crawling of URLs with query strings.
- Specifies the sitemap location at `https://netcord.dev/sitemap.xml`.
  • Loading branch information
KubaZ2 authored Sep 30, 2024
1 parent b546a0a commit 9a04794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"resource": [
{
"files": ["images/**", "favicon.ico", "logo.svg"]
"files": ["images/**", "favicon.ico", "logo.svg", "robots.txt"]
}
],
"overwrite": [
Expand Down
4 changes: 4 additions & 0 deletions Documentation/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow: /*?

Sitemap: https://netcord.dev/sitemap.xml

0 comments on commit 9a04794

Please sign in to comment.