From b7223fe2197aac9a36fd2f2347a78ab1572bb43e Mon Sep 17 00:00:00 2001 From: Robert Main <50675045+rmainwork@users.noreply.github.com> Date: Fri, 6 Sep 2024 13:35:12 -0400 Subject: [PATCH] Revert "Remove "Edit on GitHub" link from terraform docs" (#2562) Revert "Remove "Edit on GitHub" link from terraform docs (#2540)" This reverts commit c6ce421ad37cc4802f23039c6e219429fba0f4db. --- src/views/docs-view/server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/docs-view/server.ts b/src/views/docs-view/server.ts index effa868f41..84424c41ed 100644 --- a/src/views/docs-view/server.ts +++ b/src/views/docs-view/server.ts @@ -418,9 +418,9 @@ export function getStaticGenerationFunctions< * Note: If we need more granularity here, we could change this to be * part of `rootDocsPath` configuration in `src/data/.json`. */ - const isPublicContentRepo = !['hcp', 'sentinel', 'terraform'].includes( - product.slug - ) + const isHcp = product.slug == 'hcp' + const isSentinel = product.slug == 'sentinel' + const isPublicContentRepo = !isHcp && !isSentinel if (isPublicContentRepo) { layoutProps.githubFileUrl = githubFileUrl }