Skip to content

Commit 8f3410b

Browse files
authored
Submit sitemap automatically (#3880)
1 parent 4adc3e4 commit 8f3410b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![published](https://github.com/viamrobotics/docs/actions/workflows/docs.yml/badge.svg)](https://github.com/viamrobotics/docs/actions/workflows/docs.yml)
22
[![external link check](https://github.com/viamrobotics/docs/actions/workflows/run-htmltest.yml/badge.svg)](https://github.com/viamrobotics/docs/actions/workflows/run-htmltest.yml)
3+
[![Netlify Status](https://api.netlify.com/api/v1/badges/f7bff5c9-699f-4753-9166-ffa405290d67/deploy-status)](https://app.netlify.com/sites/viam-docs/deploys)
34

45
# Welcome to the Viam Documentation
56

netlify.toml

+20-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
[plugins.inputs]
88
# If it should show more verbose logs (optional, default = true)
99
debug = true
10-
# Relative path to source directory in case you use Hugo's "--s" option
11-
srcdir = "public"
1210

1311
[[plugins]]
1412
# https://github.com/philhawksworth/netlify-plugin-minify-html#readme
@@ -30,3 +28,23 @@
3028
removeComments = true
3129
collapseInlineTagWhitespace = true
3230

31+
[[plugins]]
32+
# https://github.com/cdeleeuwe/netlify-plugin-submit-sitemap#readme
33+
package = "netlify-plugin-submit-sitemap"
34+
35+
[plugins.inputs]
36+
37+
# The base url of your site (optional, default = main URL set in Netlify)
38+
baseUrl = "https://docs.viam.com"
39+
40+
# Path to the sitemap URL (optional, default = /sitemap.xml)
41+
sitemapPath = "/sitemap.xml"
42+
43+
# Time in seconds to not submit the sitemap after successful submission
44+
ignorePeriod = 0
45+
46+
# Enabled providers to submit sitemap to (optional, default = 'google', 'yandex'). Possible providers are currently only 'google', 'yandex'.
47+
providers = [
48+
"google",
49+
"yandex"
50+
]

0 commit comments

Comments
 (0)