File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
components/blocks/html-content Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 84
84
"lint-staged" : " ^10.4.0" ,
85
85
"wait-on" : " ^5.2.0"
86
86
}
87
- }
87
+ }
Original file line number Diff line number Diff line change 1
- import PropTypes from 'prop-types' ;
2
- import React , { useRef } from 'react' ;
3
-
4
- import styles from './html-content.module.scss' ;
5
-
6
1
import './html-content.scss' ;
7
2
import { MDXProvider } from '@mdx-js/react' ;
8
3
import { MDXRenderer } from 'gatsby-plugin-mdx' ;
9
4
import { useElementsReplacement } from 'hooks' ;
5
+ import PropTypes from 'prop-types' ;
6
+ import React , { useRef } from 'react' ;
10
7
11
8
import styles from './html-content.module.scss' ;
12
9
Original file line number Diff line number Diff line change @@ -23,6 +23,16 @@ const processMdxEntry = ({ children: [entry] }) => {
23
23
// avoid pushing empty records
24
24
return [ ] ;
25
25
}
26
+ /* @TODO : remove if clause after cloud rest api docs will be ported ,
27
+ * avoid indexing this section for a while to avoid
28
+ * search user's confusion
29
+ */
30
+ if ( / c l o u d r e s t a p i / i. test ( fileAbsolutePath ) ) {
31
+ // eslint-disable-next-line no-console
32
+ console . log ( 'exluded from algolia indecies pages:' , fileAbsolutePath ) ;
33
+ return [ ] ;
34
+ }
35
+
26
36
const strippedDirectory = stripDirectoryPath ( fileAbsolutePath , 'docs' ) ;
27
37
// cut the last piece (the actual name of a file) to match the generation
28
38
// in node
You can’t perform that action at this time.
0 commit comments