From 89ee15d9436c945656f13d4fb006948fadaf3e20 Mon Sep 17 00:00:00 2001 From: Chris Trevino Date: Thu, 4 Apr 2024 09:13:59 -0700 Subject: [PATCH] update docsite link in readme (#78) * update docsite link in readme * update docsite pathprefix * remove pr docsite publish --- .github/workflows/gh-pages.yml | 2 ++ README.md | 2 +- docsite/.eleventy.js | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 3948a39e94..6894947681 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -49,6 +49,8 @@ jobs: - name: Build docsite run: yarn build working-directory: docsite + env: + DOCSITE_BASE_URL: "graphrag" - name: List docsite files run: find docsite/_site diff --git a/README.md b/README.md index 87ba3148d1..548509e896 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GraphRAG -👉 [Check out our docsite!](https://ashy-glacier-0caaba110.4.azurestaticapps.net) +👉 [Read the docs](https://microsoft.github.io/graphrag) ## Overview diff --git a/docsite/.eleventy.js b/docsite/.eleventy.js index df20156473..3de2150c74 100644 --- a/docsite/.eleventy.js +++ b/docsite/.eleventy.js @@ -1,3 +1,4 @@ +const { EleventyHtmlBasePlugin } = require("@11ty/eleventy"); const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); const codeClipboard = require("eleventy-plugin-code-clipboard"); const pluginMermaid = require("@kevingimbel/eleventy-plugin-mermaid"); @@ -7,6 +8,9 @@ module.exports = (eleventyConfig) => { eleventyConfig.addPlugin(syntaxHighlight); eleventyConfig.addPlugin(codeClipboard); eleventyConfig.addPlugin(pluginMermaid); + eleventyConfig.addPlugin(EleventyHtmlBasePlugin, { + baseHref: process.env.DOCSITE_BASE_URL || "" + }); eleventyConfig.addPassthroughCopy("data"); eleventyConfig.addPassthroughCopy("img"); // Verbs and Workflows are auto-generated