Skip to content

Commit

Permalink
chore: removed examples from patternhub (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Feb 5, 2024
1 parent c93f2dd commit 462dc6c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 189 deletions.
4 changes: 0 additions & 4 deletions showcases/patternhub/data/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ export const ROUTES: NavigationItem[] = [
label: 'Properties',
path: `/components/${component.name}/properties`
},
{
label: 'Examples',
path: `/components/${component.name}/examples`
},
{
label: 'How to use',
path: `/components/${component.name}/how-to-use`
Expand Down
5 changes: 0 additions & 5 deletions showcases/patternhub/scripts/generate-docs-mdx.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable unicorn/prefer-top-level-await, no-await-in-loop */

import FS from 'node:fs';
import getExampleFile from './get-example-file.js';
import getPropertiesFile from './get-properties-file.js';
import getHowToFile from './get-how-to-file.js';
import writeCodeFiles from './get-code-files.js';
Expand All @@ -28,10 +27,6 @@ const generateDocsMdx = async () => {
`${componentPath}/properties.mdx`,
getPropertiesFile(componentValue)
);
FS.writeFileSync(
`${componentPath}/examples.tsx`,
getExampleFile(componentName, componentValue)
);

const docsPath = `./../../packages/components/src/components/${componentName}/docs`;
if (FS.existsSync(docsPath)) {
Expand Down
180 changes: 0 additions & 180 deletions showcases/patternhub/scripts/get-example-file.js

This file was deleted.

0 comments on commit 462dc6c

Please sign in to comment.