1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-18 16:31:44 +02:00

Add robots.txt and sitemap.txt

This commit is contained in:
DarthSim 2022-02-16 20:54:37 +06:00
parent 74b977fb60
commit b75b6cb5a2
5 changed files with 12 additions and 4 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ tmp/
.gitmodules
docker-base
docs/sitemap.txt

5
build-docs-sitemap.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
echo "https://docs.imgproxy.net" > docs/sitemap.txt
RE='^\* \[.+\]\((.+)\)'
grep -E "$RE" docs/_sidebar.md | sed -E "s/$RE/https:\\/\\/docs.imgproxy.net\\/\\1/" >> docs/sitemap.txt

View File

@ -12,7 +12,7 @@
* [Serving local files](serving_local_files)
* [Serving files from Amazon S3](serving_files_from_s3)
* [Serving files from Google Cloud Storage](serving_files_from_google_cloud_storage)
* [Serving files from Azure Blob Storage](serving_files_from_azure_blob_storage.md)
* [Serving files from Azure Blob Storage](serving_files_from_azure_blob_storage)
* [New Relic](new_relic)
* [Prometheus](prometheus)
* [Datadog<i class='badge badge-v3'></i>](datadog)

2
docs/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Allow: /

View File

@ -1,7 +1,7 @@
[build]
base="docs"
publish="/"
command=""
base="/"
publish="docs/"
command="./build-docs-sitemap.sh"
[[redirects]]
from = "/*"