Skip to content

Commit 07d038a

Browse files
committed
refactor: remove docs version from urls
1 parent 31e296e commit 07d038a

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"test:cov": "npm test -- --coverage --watchAll=false",
2323
"test:debug": "react-scripts --inspect-brk test --runInBand"
2424
},
25-
"config": {
26-
"coreui_library_short_version": "4.3"
27-
},
2825
"dependencies": {
2926
"@coreui/chartjs": "^3.0.0",
3027
"@coreui/coreui": "^4.2.0",

src/components/DocsCallout.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ import PropTypes from 'prop-types'
22
import React from 'react'
33
import { CCallout, CLink } from '@coreui/react'
44

5-
import packageJson from '../../package.json'
6-
75
const DocsCallout = (props) => {
86
const { content, href, name } = props
97

108
const plural = name.slice(-1) === 's' ? true : false
119

12-
const _href = `https://coreui.io/react/docs/${packageJson.config.coreui_library_short_version}/${href}`
10+
const _href = `https://coreui.io/react/docs/${href}`
1311

1412
return (
1513
<CCallout color="info" className="bg-white">

src/components/DocsExample.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import { CNav, CNavItem, CNavLink, CTabContent, CTabPane } from '@coreui/react'
44
import CIcon from '@coreui/icons-react'
55
import { cilCode, cilMediaPlay } from '@coreui/icons'
66

7-
import packageJson from '../../package.json'
8-
97
const DocsExample = (props) => {
108
const { children, href } = props
119

12-
const _href = `https://coreui.io/react/docs/${packageJson.config.coreui_library_short_version}/${href}`
10+
const _href = `https://coreui.io/react/docs/${href}`
1311

1412
return (
1513
<div className="example">

0 commit comments

Comments
 (0)