forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.js
26 lines (22 loc) · 812 Bytes
/
utils.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import _ from 'lodash/fp'
import * as semanticUIReact from 'src'
import { META } from 'src/lib'
export const typeOrder = [
META.TYPES.ELEMENT,
META.TYPES.COLLECTION,
META.TYPES.VIEW,
META.TYPES.MODULE,
META.TYPES.ADDON,
]
export const parentComponents = _.flow(
_.filter(META.isParent),
_.sortBy('_meta.name')
)(semanticUIReact)
/**
* Get the Webpack Context for all doc site examples.
*/
export const exampleContext = require.context('docs/app/Examples/', true, /(\w+Example\w*|index)\.js$/)
export const repoURL = 'https://github.com/Semantic-Org/Semantic-UI-React'
export const semanticUIDocsURL = 'http://semantic-ui.com/'
export const semanticUIRepoURL = 'https://github.com/Semantic-Org/Semantic-UI'
export const semanticUICSSRepoURL = 'https://github.com/Semantic-Org/Semantic-UI-CSS'