Browse Source

Merge pull request #798 from imgproxy/chore/docs-style-and-seo

Docs style and seo
Sergey Alexandrovich 3 years ago
parent
commit
081f82c62f
6 changed files with 16 additions and 4 deletions
  1. 1 0
      .gitignore
  2. 5 0
      build-docs-sitemap.sh
  3. 1 1
      docs/_sidebar.md
  4. 4 0
      docs/assets/style.css
  5. 2 0
      docs/robots.txt
  6. 3 3
      netlify.toml

+ 1 - 0
.gitignore

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

+ 5 - 0
build-docs-sitemap.sh

@@ -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

+ 1 - 1
docs/_sidebar.md

@@ -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)

+ 4 - 0
docs/assets/style.css

@@ -1,4 +1,6 @@
 :root {
+  --base-color: rgb(255, 255, 255);
+
   --mono-hue: var(--theme-hue);
   --mono-saturation: 10%;
 
@@ -26,6 +28,8 @@
   --copycode-background: var(--link-color);
 
   --table-row-even-background: var(--base-background-color);
+
+  --selection-color: rgba(255, 255, 255, 0.3);
 }
 
 .app-name-link img {

+ 2 - 0
docs/robots.txt

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

+ 3 - 3
netlify.toml

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