From 9ab530f8fb467d73b1141bf963d48136471f67c0 Mon Sep 17 00:00:00 2001 From: bd_ Date: Sat, 25 Mar 2023 15:12:20 +0900 Subject: [PATCH] chore: add robots.txt --- .github/workflows/build-test-docs.yml | 6 ++++++ docs/docusaurus.config.js | 2 +- docs/robots.txt | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 docs/robots.txt diff --git a/.github/workflows/build-test-docs.yml b/.github/workflows/build-test-docs.yml index 06af4eb4..f416532a 100644 --- a/.github/workflows/build-test-docs.yml +++ b/.github/workflows/build-test-docs.yml @@ -69,6 +69,12 @@ jobs: yarn build ls -lR build + - name: Set robots.txt + run: | + if [ -e docs/robots.txt ]; then + cp docs/robots.txt docs/build/robots.txt + fi + - name: Upload artifact uses: actions/upload-artifact@v2 with: diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index ac04dc91..e37573db 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -8,7 +8,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); const config = { title: 'Modular Avatar', tagline: 'Drag-and-drop avatar assembly', - url: 'https://modular-avatar.fushizen.net', + url: 'https://modular-avatar.nadena.dev', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', diff --git a/docs/robots.txt b/docs/robots.txt new file mode 100644 index 00000000..b79eeb11 --- /dev/null +++ b/docs/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: /dev/ + +Sitemap: https://modular-avatar.nadena.dev/sitemap.xml \ No newline at end of file