Skip to content

Commit a47bf13

Browse files
committed
docs: revise structured data and add robots.txt
1 parent 78842d7 commit a47bf13

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

build-docs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ const html = `
7373
<script type="application/ld+json">
7474
{
7575
"@context": "http://schema.org",
76-
"@type": "WebSite",
77-
"name": "${docMeta['title']}",
76+
"@type": "DigitalDocument",
77+
"name": "${docMeta['title']} document",
78+
"keywords": "Web Components, Custom Element, github-corner, corner banner, octocat",
7879
"description": "${docMeta['description']}",
7980
"url": "${docMeta['url']}"
8081
}

docs/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,9 @@
11941194
<script type="application/ld+json">
11951195
{
11961196
"@context": "http://schema.org",
1197-
"@type": "WebSite",
1198-
"name": "github-corner-elemen",
1197+
"@type": "DigitalDocument",
1198+
"name": "github-corner-elemen document",
1199+
"keywords": "Web Components, Custom Element, github-corner, corner banner, octocat",
11991200
"description": "A web component for the corner banner of GitHub.",
12001201
"url": "https://yuskawu.github.io/github-corner-element/"
12011202
}

docs/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Allow: /

0 commit comments

Comments
 (0)