diff --git a/.env.example b/.env.example index 078cd4de90..3dc60a1b23 100644 --- a/.env.example +++ b/.env.example @@ -6,8 +6,4 @@ GATSBY_ALGOLIA_APP_ID= GATSBY_ALGOLIA_SEARCH_ONLY_KEY= GATSBY_ALGOLIA_INDEX_NAME= ALGOLIA_ADMIN_KEY= -GATSBY_DRIFT_API= - -# leave empty to disable -# true to enable -GATSBY_FEATURE_EDIT_ARTICLE_BTN= \ No newline at end of file +GATSBY_DRIFT_API= \ No newline at end of file diff --git a/gatsby-node.js b/gatsby-node.js index b4e974782c..1c2833c221 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -268,10 +268,6 @@ async function createDocPages({ graphql, actions, pathPrefix }) { )(path); // injection of a link to an article in git repo - // NOTE, that this is part of feature/edit-article-btn - // so it won't be used unless you have - // GATSBY_FEATURE_EDIT_ARTICLE_BTN=true - // in your .env file remarkNode.frontmatter.fileOrigin = encodeURI( `https://github.com/loadimpact/k6-docs/blob/master/src/data/${relativeDirectory}/${name}.md`, ); diff --git a/src/components/pages/doc-page/doc-page-title-group/doc-page-title-group.view.js b/src/components/pages/doc-page/doc-page-title-group/doc-page-title-group.view.js index fa538ed054..372a94e2fe 100644 --- a/src/components/pages/doc-page/doc-page-title-group/doc-page-title-group.view.js +++ b/src/components/pages/doc-page/doc-page-title-group/doc-page-title-group.view.js @@ -4,21 +4,13 @@ import Pencil from './svg/pencil-icon.inline.svg'; import { Heading } from 'components/shared/heading'; export const DocPageTitleGroup = ({ title, articleSrc }) => { - if (process.env.GATSBY_FEATURE_EDIT_ARTICLE_BTN) { - console.log(typeof process.env.GATSBY_FEATURE_EDIT_ARTICLE_BTN); - return ( -