Skip to content

Commit

Permalink
Build clean up (#7788)
Browse files Browse the repository at this point in the history
* clean up some build errors

* removed unused shortcodes

* remove import gen script

* dont source non-team member profiles
  • Loading branch information
smallbrownbike authored Feb 13, 2024
1 parent c545183 commit 7256f9e
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 170 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
},
"husky": {
"hooks": {
"pre-commit": "node ./scripts/mdxImportGen && git add src/mdxGlobalComponents.js && lint-staged"
"pre-commit": "lint-staged"
}
},
"workspaces": [
Expand Down
7 changes: 7 additions & 0 deletions plugins/gatsby-source-squeak/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export const sourceNodes: GatsbyNode['sourceNodes'] = async (
while (true) {
let profileQuery = qs.stringify(
{
filters: {
teams: {
id: {
$notNull: true,
},
},
},
pagination: {
page,
pageSize: 100,
Expand Down
44 changes: 0 additions & 44 deletions scripts/mdxImportGen.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Docs/InternalSidebarLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export default function InternalSidebarLink({ url, name, depth, onClick, classNa
<span>
<Link
offset={compact ? -70 : breakpoints.md ? -56 : -108}
style={style}
style={{ ...style, ...{ paddingLeft: `${(depth || 0) + 1}rem` } }}
smooth
duration={300}
to={url}
hashSpy
className={`relative block py-1 pl-[calc(1rem_+_${depth}rem)] pr-4 text-primary dark:text-primary-dark hover:bg-accent dark:hover:bg-accent-dark leading-tight font-medium hover:text-primary dark:hover:text-primary-dark cursor-pointer ${className} ${
className={`relative block py-1 pr-4 text-primary dark:text-primary-dark hover:bg-accent dark:hover:bg-accent-dark leading-tight font-medium hover:text-primary dark:hover:text-primary-dark cursor-pointer ${className} ${
depth === 0 ? 'font-semibold' : ''
}`}
spy
Expand Down
3 changes: 1 addition & 2 deletions src/components/GettingStarted/NextSteps.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import { StaticImage } from 'gatsby-plugin-image'
import { Link } from 'gatsby'
import { quickLinks as productAnalyticsLinks } from '../../pages/docs/product-analytics'
import { quickLinks as featureFlagsLinks } from '../../pages/docs/feature-flags'
import { quickLinks as experimentsLinks } from '../../pages/docs/experiments'
import { quickLinks as sessionRecordingLinks } from '../../pages/docs/session-replay'
Expand Down Expand Up @@ -45,7 +44,7 @@ export const NextStep: React.FC<NextStepProps> = ({ title, url, links, children

export const ProductAnalytics = () => {
return (
<NextStep title="Product Analytics" url="/docs/product-analytics" links={productAnalyticsLinks}>
<NextStep title="Product Analytics" url="/docs/product-analytics" links={[]}>
<StaticImage
alt=""
placeholder="none"
Expand Down
121 changes: 0 additions & 121 deletions src/mdxGlobalComponents.js

This file was deleted.

35 changes: 35 additions & 0 deletions src/mdxGlobalComponents.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { ArrayCTA } from './components/ArrayCTA'
import { BasicHedgehogImage } from './components/BasicHedgehogImage'
import { BorderWrapper } from './components/BorderWrapper'
import { CallToAction } from './components/CallToAction'
import { Caption } from './components/Caption'
import { ComparisonTable } from './components/ComparisonTable'
import { CompensationCalculator } from './components/CompensationCalculator'
import { Emoji } from './components/Emoji'
import { FeatureAvailability } from './components/FeatureAvailability'
import { FormulaScreenshot } from './components/FormulaScreenshot'
import { GDPRForm } from './components/GDPRForm'
import { OverflowXSection } from './components/OverflowXSection'
import { Quote } from './components/Pricing/Quote'
import { PrivateLink } from './components/PrivateLink'
import { ProductScreenshot } from './components/ProductScreenshot'
import { StarRepoButton } from './components/StarRepoButton'

export const shortcodes = {
ArrayCTA,
BasicHedgehogImage,
BorderWrapper,
CallToAction,
Caption,
ComparisonTable,
CompensationCalculator,
Emoji,
FeatureAvailability,
FormulaScreenshot,
GDPRForm,
OverflowXSection,
Quote,
PrivateLink,
ProductScreenshot,
StarRepoButton,
}

0 comments on commit 7256f9e

Please sign in to comment.