From a359b512ac1ff0f9ec8b1cc658a49e4b0445db1b Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 18 Feb 2022 11:23:40 +0900 Subject: [PATCH] Fix mkdocs workflow to use the same directory --- .github/workflows/mkdocs-deployment.yml | 1 + docs/mkdocs.yml | 4 ++++ docs/requirements.txt | 1 + 3 files changed, 6 insertions(+) create mode 100644 docs/requirements.txt diff --git a/.github/workflows/mkdocs-deployment.yml b/.github/workflows/mkdocs-deployment.yml index 15754f5d..38fe8234 100644 --- a/.github/workflows/mkdocs-deployment.yml +++ b/.github/workflows/mkdocs-deployment.yml @@ -16,3 +16,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CONFIG_FILE: docs/mkdocs.yml + REQUIREMENTS: docs/requirements.txt diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 0f3e0cd5..91d02c8e 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -3,6 +3,7 @@ site_name: 'doccano' site_description: 'A Text Annotation tool for Humans' site_author: 'Hiroki Nakayama' site_url: 'https://doccano.github.io/doccano/' +docs_dir: . # Repository repo_name: 'doccano/doccano' @@ -25,6 +26,9 @@ extra: - icon: 'fontawesome/brands/github' link: 'https://twitter.com/Hironsan13' +plugins: + - same-dir + # Page tree nav: - Doccano: index.md diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 00000000..fbee2369 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1 @@ +mkdocs-same-dir