Skip to content

Commit

Permalink
Submit sitemap automatically (#3880)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Jan 20, 2025
1 parent 4adc3e4 commit 8f3410b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![published](https://github.com/viamrobotics/docs/actions/workflows/docs.yml/badge.svg)](https://github.com/viamrobotics/docs/actions/workflows/docs.yml)
[![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)
[![Netlify Status](https://api.netlify.com/api/v1/badges/f7bff5c9-699f-4753-9166-ffa405290d67/deploy-status)](https://app.netlify.com/sites/viam-docs/deploys)

# Welcome to the Viam Documentation

Expand Down
22 changes: 20 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
[plugins.inputs]
# If it should show more verbose logs (optional, default = true)
debug = true
# Relative path to source directory in case you use Hugo's "--s" option
srcdir = "public"

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

[[plugins]]
# https://github.com/cdeleeuwe/netlify-plugin-submit-sitemap#readme
package = "netlify-plugin-submit-sitemap"

[plugins.inputs]

# The base url of your site (optional, default = main URL set in Netlify)
baseUrl = "https://docs.viam.com"

# Path to the sitemap URL (optional, default = /sitemap.xml)
sitemapPath = "/sitemap.xml"

# Time in seconds to not submit the sitemap after successful submission
ignorePeriod = 0

# Enabled providers to submit sitemap to (optional, default = 'google', 'yandex'). Possible providers are currently only 'google', 'yandex'.
providers = [
"google",
"yandex"
]

0 comments on commit 8f3410b

Please sign in to comment.