Skip to content

Commit 22d2fad

Browse files
authored
Merge pull request #92 from vtex-apps/feature/ignore-all-contributors-section
Add support for custom tokens to ignore sections of documentation
2 parents b23c787 + 393879d commit 22d2fad

29 files changed

+1165
-385
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Added
10+
- Support for `<!-- DOCS-IGNORE:start -->` and `<!-- DOCS-IGNORE:end -->` tokens.
11+
912
### Security
1013
- Bump multiple package versions.
1114

react/AppDocs.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import DocsRenderer from './components/DocsRenderer'
66
import Skeleton from './components/Skeleton'
77
import EmptyDocs from './components/EmptyDocs'
88
import { useApp } from './hooks/useApp'
9-
import { maybeAddMdExtension } from './utils'
9+
import { maybeAddMdExtension } from './modules'
1010
import MarkdownFile from './graphql/markdownFile.graphql'
1111

1212
const AppDocs: FC = () => {

react/ComponentsGrid.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { useRuntime } from 'vtex.render-runtime'
55

66
import ComponentGridItem from './components/ComponentGridItem'
77
import EmptyDocs from './components/EmptyDocs'
8-
import { slug, removeFileExtension } from './utils'
9-
import { IO_DOCUMENTATION } from './utils/constants'
8+
import { slug, removeFileExtension } from './modules'
9+
import { IO_DOCUMENTATION } from './modules/constantExports'
1010
import ComponentList from './graphql/componentsList.graphql'
1111

1212
const ComponentsGrid: FC = () => {

react/Concept.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Query } from 'react-apollo'
33
import { ApolloError } from 'apollo-client'
44
import { useRuntime } from 'vtex.render-runtime'
55

6-
import { IO_DOCUMENTATION } from './utils/constants'
6+
import { IO_DOCUMENTATION } from './modules/constantExports'
77
import DocsRenderer from './components/DocsRenderer'
88
import Skeleton from './components/Skeleton'
99
import EmptyDocs from './components/EmptyDocs'
10-
import { maybeAddMdExtension } from './utils'
10+
import { maybeAddMdExtension } from './modules'
1111
import MarkdownFile from './graphql/markdownFile.graphql'
1212

1313
const Concept: FC = () => {

react/ConceptList.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { FormattedMessage } from 'react-intl'
33
import { useQuery } from 'react-apollo'
44
import { Link } from 'vtex.render-runtime'
55

6-
import { IO_DOCUMENTATION } from './utils/constants'
7-
import { slug } from './utils'
6+
import { IO_DOCUMENTATION } from './modules/constantExports'
7+
import { slug } from './modules'
88
import ConceptListQuery from './graphql/conceptList.graphql'
99
import Skeleton from './components/Skeleton'
1010
import UnderConstruction from './UnderConstruction'

react/GettingStartedArticle.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { compose, renderNothing, branch } from 'recompose'
55
import { FormattedMessage } from 'react-intl'
66
import { withRuntimeContext, Link, InjectedRuntime } from 'vtex.render-runtime'
77

8-
import { IO_DOCUMENTATION } from './utils/constants'
8+
import { IO_DOCUMENTATION } from './modules/constantExports'
99
import DocsRenderer from './components/DocsRenderer'
1010
import Skeleton from './components/Skeleton'
1111
import EmptyDocs from './components/EmptyDocs'

react/Home.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { FC } from 'react'
22
import { FormattedMessage, useIntl } from 'react-intl'
33
import { Link } from 'vtex.render-runtime'
44

5-
import { slug } from './utils'
5+
import { slug } from './modules'
66
import LatestFeatures from './components/LatestFeatures'
77
import Community from './components/Community'
88
import Recipes from './components/icons/Recipes'

react/IntroductionArticle.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { useRuntime } from 'vtex.render-runtime'
66
import DocsRenderer from './components/DocsRenderer'
77
import Skeleton from './components/Skeleton'
88
import EmptyDocs from './components/EmptyDocs'
9-
import { IO_DOCUMENTATION } from './utils/constants'
10-
import { maybeAddMdExtension } from './utils'
9+
import { IO_DOCUMENTATION } from './modules/constantExports'
10+
import { maybeAddMdExtension } from './modules'
1111
import MarkdownFile from './graphql/markdownFile.graphql'
1212

1313
const IntroductionArticle: FC = () => {

react/Recipe.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { useRuntime } from 'vtex.render-runtime'
66
import DocsRenderer from './components/DocsRenderer'
77
import Skeleton from './components/Skeleton'
88
import EmptyDocs from './components/EmptyDocs'
9-
import { IO_DOCUMENTATION } from './utils/constants'
10-
import { maybeAddMdExtension } from './utils'
9+
import { IO_DOCUMENTATION } from './modules/constantExports'
10+
import { maybeAddMdExtension } from './modules'
1111
import MarkdownFile from './graphql/markdownFile.graphql'
1212

1313
const Recipe: FC = () => {

react/RecipesList.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { ApolloError } from 'apollo-client'
55
import { branch, compose, renderComponent, renderNothing } from 'recompose'
66
import { withRuntimeContext, InjectedRuntime } from 'vtex.render-runtime'
77

8-
import { IO_DOCUMENTATION } from './utils/constants'
8+
import { IO_DOCUMENTATION } from './modules/constantExports'
99
import RecipeListItem from './components/RecipeListItem'
1010
import EmptyDocs from './components/EmptyAppDocs'
11-
import { slug } from './utils'
11+
import { slug } from './modules'
1212
import RecipeList from './graphql/recipesList.graphql'
1313

1414
const RecipesList: FC<OuterProps & InjectedRuntime> = ({

react/ReleaseArticle.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useRuntime } from 'vtex.render-runtime'
66
import DocsRenderer from './components/DocsRenderer'
77
import Skeleton from './components/Skeleton'
88
import EmptyDocs from './components/EmptyDocs'
9-
import { maybeAddMdExtension } from './utils'
9+
import { maybeAddMdExtension } from './modules'
1010
import MarkdownFile from './graphql/markdownFile.graphql'
1111

1212
const ReleaseArticle: FC = () => {

0 commit comments

Comments
 (0)