@sphido/sitemap 2.0.20 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/package.json +3 -4
- package/readme.md +0 -36
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) Roman Ožana <roman@ozana.cz> (https://ozana.cz/)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphido/sitemap",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.22",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Roman Ožana",
|
|
6
6
|
"email": "roman@ozana.cz",
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@sindresorhus/slugify": "^2.2.1",
|
|
18
|
-
"ava": "^6.
|
|
19
|
-
"got": "^14.0.0"
|
|
18
|
+
"ava": "^6.1.2"
|
|
20
19
|
},
|
|
21
20
|
"scripts": {
|
|
22
21
|
"test": "ava"
|
|
23
22
|
},
|
|
24
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "029458b8ac5d93f7bae6e18b5bcb20ecc544f7d7"
|
|
25
24
|
}
|
package/readme.md
CHANGED
|
@@ -39,42 +39,6 @@ for (const page of await allPages(pages)) {
|
|
|
39
39
|
map.end();
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
## Let them know
|
|
43
|
-
|
|
44
|
-
### Google
|
|
45
|
-
|
|
46
|
-
Google expects the standard sitemap protocol in all formats.
|
|
47
|
-
Google does not currently consume the `<priority>` attribute in sitemaps.
|
|
48
|
-
You can also submit RSS or Atom files.
|
|
49
|
-
|
|
50
|
-
Google doesn't check a sitemap every time a site is crawled; a sitemap is checked only
|
|
51
|
-
the first time that we notice it, and thereafter only when you ping us to let us know
|
|
52
|
-
that it's changed. Alert Google about a sitemap only when it's new or updated;
|
|
53
|
-
don't submit or ping unchanged sitemaps multiple times.
|
|
54
|
-
|
|
55
|
-
You can use e.g. [got](https://github.com/sindresorhus/got) an HTTP request library for Node.js
|
|
56
|
-
or visit [URL manually](https://www.google.com/webmasters/tools/ping?sitemap=https://sphido.cz/sitemap.xml)
|
|
57
|
-
|
|
58
|
-
```javascript
|
|
59
|
-
import got from 'got';
|
|
60
|
-
await got.get('https://www.google.com/webmasters/tools/ping?sitemap=URL');
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Bing, Seznam, Yandex
|
|
64
|
-
|
|
65
|
-
[IndexNow](https://www.indexnow.org/) is an open-source protocol that allows website publishers to
|
|
66
|
-
instantly index across participating search engines, updating results based upon the latest content changes.
|
|
67
|
-
[IndexNow](https://www.indexnow.org/) protocol is supported by [Microsoft Bing](https://www.bing.com/indexnow), [Seznam.cz](https://www.seznam.cz/) and Yandex.
|
|
68
|
-
|
|
69
|
-
1. **Generate an API Key** – This is submitted alongside URLs to ensure ownership of the domain. You can use [Microsoft Bing API Key generator](https://www.bing.com/indexnow).
|
|
70
|
-
2. **Host API Key** – Your API key is hosted on the root directory in `txt` format.
|
|
71
|
-
3. **Submit URLs with Parameters** – You can either submit URLs individually or in bulk as sitemap file.
|
|
72
|
-
|
|
73
|
-
```text
|
|
74
|
-
https://www.bing.com/indexnow?url=[URL]&key=[YOUR KEY]
|
|
75
|
-
https://search.seznam.cz/indexnow?url=[URL]&key=[YOUR KEY]
|
|
76
|
-
```
|
|
77
|
-
|
|
78
42
|
## Source codes
|
|
79
43
|
|
|
80
44
|
[@sphido/sitemap](https://github.com/sphido/sphido/tree/main/packages/sphido-sitemap)
|