Skip to content

Commit 30c1001

Browse files
committed
docs: move content to another folder
1 parent 481cb1d commit 30c1001

File tree

211 files changed

+5
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+5
-12
lines changed

packages/docs/build/api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const docgen = require('react-docgen-typescript')
66
const fs = require('fs').promises
77
const path = require('path')
88
const globby = require('globby')
9-
const pkg = require('../package.json')
109

1110
const GLOB = ['**/src/**/*.tsx']
1211
const GLOBBY_OPTIONS = {
@@ -76,7 +75,7 @@ import ${name} from '@coreui${relativeFilename.replace('.tsx', '')}'
7675
}
7776

7877
await fs
79-
.writeFile(`content/${pkg.config.version_short}/api/${filename}.api.mdx`, content, {
78+
.writeFile(`content/api/${filename}.api.mdx`, content, {
8079
encoding: 'utf8',
8180
})
8281
.then(() => {

packages/docs/content/4.5/api/CTable.api.mdx renamed to packages/docs/content/api/CTable.api.mdx

Lines changed: 1 addition & 1 deletion

packages/docs/gatsby-config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-var-requires */
2-
const pkg = require(`./package.json`)
3-
41
module.exports = {
52
siteMetadata: {
63
title: `CoreUI for React.js`,
@@ -41,7 +38,7 @@ module.exports = {
4138
resolve: `gatsby-source-filesystem`,
4239
options: {
4340
name: `docs`,
44-
path: `${__dirname}/content/${pkg.config.version_short}/`,
41+
path: `${__dirname}/content/`,
4542
},
4643
},
4744
{
@@ -54,7 +51,7 @@ module.exports = {
5451
{
5552
resolve: require.resolve(`./src/plugins/gatsby-remark-import-markdown`),
5653
options: {
57-
directory: `${__dirname}/content/${pkg.config.version_short}/api/`,
54+
directory: `${__dirname}/content/api/`,
5855
},
5956
},
6057
{

packages/docs/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"license": "MIT",
1515
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
1616
"scripts": {
17-
"api": "rimraf \"content/$npm_package_config_version_short/api/*\" & node build/api.js",
17+
"api": "rimraf \"content/api/*\" & node build/api.js",
1818
"build": "gatsby build",
1919
"develop": "gatsby develop",
2020
"dist": "run-s api build",
@@ -23,9 +23,6 @@
2323
"serve": "gatsby serve",
2424
"clean": "gatsby clean"
2525
},
26-
"config": {
27-
"version_short": "4.5"
28-
},
2926
"dependencies": {
3027
"@coreui/chartjs": "^3.0.0",
3128
"@coreui/coreui": "^4.2.4",

0 commit comments

Comments
 (0)