diff --git a/site/src/hooks-doc/index.ts b/site/src/content/index.ts similarity index 95% rename from site/src/hooks-doc/index.ts rename to site/src/content/index.ts index 91b8c627..ed4bf4df 100644 --- a/site/src/hooks-doc/index.ts +++ b/site/src/content/index.ts @@ -1,4 +1,3 @@ -export * from '../hooks-hidden/useSiteMetadata' export * from './useBoolean' export * from './useClickAnyWhere' export * from './useCopyToClipboard' diff --git a/site/src/hooks-doc/useBoolean/index.ts b/site/src/content/useBoolean/index.ts similarity index 100% rename from site/src/hooks-doc/useBoolean/index.ts rename to site/src/content/useBoolean/index.ts diff --git a/site/src/hooks-doc/useBoolean/useBoolean.demo.tsx b/site/src/content/useBoolean/useBoolean.demo.tsx similarity index 90% rename from site/src/hooks-doc/useBoolean/useBoolean.demo.tsx rename to site/src/content/useBoolean/useBoolean.demo.tsx index 945bfb00..d18c9228 100644 --- a/site/src/hooks-doc/useBoolean/useBoolean.demo.tsx +++ b/site/src/content/useBoolean/useBoolean.demo.tsx @@ -6,7 +6,7 @@ export default function Component() { const { value, setValue, setTrue, setFalse, toggle } = useBoolean(false) // Just an example to use "setValue" - const customToggle = () => setValue(x => !x) + const customToggle = () => setValue((x: boolean) => !x) return ( <> diff --git a/site/src/hooks-doc/useBoolean/useBoolean.mdx b/site/src/content/useBoolean/useBoolean.mdx similarity index 100% rename from site/src/hooks-doc/useBoolean/useBoolean.mdx rename to site/src/content/useBoolean/useBoolean.mdx diff --git a/site/src/hooks-doc/useClickAnyWhere/index.ts b/site/src/content/useClickAnyWhere/index.ts similarity index 100% rename from site/src/hooks-doc/useClickAnyWhere/index.ts rename to site/src/content/useClickAnyWhere/index.ts diff --git a/site/src/hooks-doc/useClickAnyWhere/useClickAnyWhere.demo.tsx b/site/src/content/useClickAnyWhere/useClickAnyWhere.demo.tsx similarity index 100% rename from site/src/hooks-doc/useClickAnyWhere/useClickAnyWhere.demo.tsx rename to site/src/content/useClickAnyWhere/useClickAnyWhere.demo.tsx diff --git a/site/src/hooks-doc/useClickAnyWhere/useClickAnyWhere.mdx b/site/src/content/useClickAnyWhere/useClickAnyWhere.mdx similarity index 100% rename from site/src/hooks-doc/useClickAnyWhere/useClickAnyWhere.mdx rename to site/src/content/useClickAnyWhere/useClickAnyWhere.mdx diff --git a/site/src/hooks-doc/useCopyToClipboard/index.ts b/site/src/content/useCopyToClipboard/index.ts similarity index 100% rename from site/src/hooks-doc/useCopyToClipboard/index.ts rename to site/src/content/useCopyToClipboard/index.ts diff --git a/site/src/hooks-doc/useCopyToClipboard/useCopyToClipboard.demo.tsx b/site/src/content/useCopyToClipboard/useCopyToClipboard.demo.tsx similarity index 100% rename from site/src/hooks-doc/useCopyToClipboard/useCopyToClipboard.demo.tsx rename to site/src/content/useCopyToClipboard/useCopyToClipboard.demo.tsx diff --git a/site/src/hooks-doc/useCopyToClipboard/useCopyToClipboard.mdx b/site/src/content/useCopyToClipboard/useCopyToClipboard.mdx similarity index 100% rename from site/src/hooks-doc/useCopyToClipboard/useCopyToClipboard.mdx rename to site/src/content/useCopyToClipboard/useCopyToClipboard.mdx diff --git a/site/src/hooks-doc/useCountdown/index.ts b/site/src/content/useCountdown/index.ts similarity index 100% rename from site/src/hooks-doc/useCountdown/index.ts rename to site/src/content/useCountdown/index.ts diff --git a/site/src/hooks-doc/useCountdown/useCountdown.demo.tsx b/site/src/content/useCountdown/useCountdown.demo.tsx similarity index 100% rename from site/src/hooks-doc/useCountdown/useCountdown.demo.tsx rename to site/src/content/useCountdown/useCountdown.demo.tsx diff --git a/site/src/hooks-doc/useCountdown/useCountdown.mdx b/site/src/content/useCountdown/useCountdown.mdx similarity index 90% rename from site/src/hooks-doc/useCountdown/useCountdown.mdx rename to site/src/content/useCountdown/useCountdown.mdx index a1ea8202..2fe11ede 100644 --- a/site/src/hooks-doc/useCountdown/useCountdown.mdx +++ b/site/src/content/useCountdown/useCountdown.mdx @@ -7,8 +7,6 @@ date: '2022-01-01' A simple countdown implementation. Support increment and decrement. - - NEW VERSION: A simple countdown implementation. Accepts `countStop`(new), `countStart` (was `seconds`), `intervalMs`(was `interval`) and `isIncrement` as keys of the call argument. Support increment and decrement. Will stop when at `countStop`. Related hooks: diff --git a/site/src/hooks-doc/useCounter/index.ts b/site/src/content/useCounter/index.ts similarity index 100% rename from site/src/hooks-doc/useCounter/index.ts rename to site/src/content/useCounter/index.ts diff --git a/site/src/hooks-doc/useCounter/useCounter.demo.tsx b/site/src/content/useCounter/useCounter.demo.tsx similarity index 88% rename from site/src/hooks-doc/useCounter/useCounter.demo.tsx rename to site/src/content/useCounter/useCounter.demo.tsx index 0222de8d..0e3c7397 100644 --- a/site/src/hooks-doc/useCounter/useCounter.demo.tsx +++ b/site/src/content/useCounter/useCounter.demo.tsx @@ -5,7 +5,7 @@ import { useCounter } from 'usehooks-ts' export default function Component() { const { count, setCount, increment, decrement, reset } = useCounter(0) - const multiplyBy2 = () => setCount(x => x * 2) + const multiplyBy2 = () => setCount((x: number) => x * 2) return ( <> diff --git a/site/src/hooks-doc/useCounter/useCounter.mdx b/site/src/content/useCounter/useCounter.mdx similarity index 100% rename from site/src/hooks-doc/useCounter/useCounter.mdx rename to site/src/content/useCounter/useCounter.mdx diff --git a/site/src/hooks-doc/useDarkMode/index.ts b/site/src/content/useDarkMode/index.ts similarity index 100% rename from site/src/hooks-doc/useDarkMode/index.ts rename to site/src/content/useDarkMode/index.ts diff --git a/site/src/hooks-doc/useDarkMode/useDarkMode.demo.tsx b/site/src/content/useDarkMode/useDarkMode.demo.tsx similarity index 100% rename from site/src/hooks-doc/useDarkMode/useDarkMode.demo.tsx rename to site/src/content/useDarkMode/useDarkMode.demo.tsx diff --git a/site/src/hooks-doc/useDarkMode/useDarkMode.mdx b/site/src/content/useDarkMode/useDarkMode.mdx similarity index 100% rename from site/src/hooks-doc/useDarkMode/useDarkMode.mdx rename to site/src/content/useDarkMode/useDarkMode.mdx diff --git a/site/src/hooks-doc/useDebounce/index.ts b/site/src/content/useDebounce/index.ts similarity index 100% rename from site/src/hooks-doc/useDebounce/index.ts rename to site/src/content/useDebounce/index.ts diff --git a/site/src/hooks-doc/useDebounce/useDebounce.demo.tsx b/site/src/content/useDebounce/useDebounce.demo.tsx similarity index 100% rename from site/src/hooks-doc/useDebounce/useDebounce.demo.tsx rename to site/src/content/useDebounce/useDebounce.demo.tsx diff --git a/site/src/hooks-doc/useDebounce/useDebounce.mdx b/site/src/content/useDebounce/useDebounce.mdx similarity index 100% rename from site/src/hooks-doc/useDebounce/useDebounce.mdx rename to site/src/content/useDebounce/useDebounce.mdx diff --git a/site/src/hooks-doc/useEffectOnce/index.ts b/site/src/content/useEffectOnce/index.ts similarity index 100% rename from site/src/hooks-doc/useEffectOnce/index.ts rename to site/src/content/useEffectOnce/index.ts diff --git a/site/src/hooks-doc/useEffectOnce/useEffectOnce.demo.tsx b/site/src/content/useEffectOnce/useEffectOnce.demo.tsx similarity index 100% rename from site/src/hooks-doc/useEffectOnce/useEffectOnce.demo.tsx rename to site/src/content/useEffectOnce/useEffectOnce.demo.tsx diff --git a/site/src/hooks-doc/useEffectOnce/useEffectOnce.mdx b/site/src/content/useEffectOnce/useEffectOnce.mdx similarity index 100% rename from site/src/hooks-doc/useEffectOnce/useEffectOnce.mdx rename to site/src/content/useEffectOnce/useEffectOnce.mdx diff --git a/site/src/hooks-doc/useElementSize/index.ts b/site/src/content/useElementSize/index.ts similarity index 100% rename from site/src/hooks-doc/useElementSize/index.ts rename to site/src/content/useElementSize/index.ts diff --git a/site/src/hooks-doc/useElementSize/useElementSize.demo.tsx b/site/src/content/useElementSize/useElementSize.demo.tsx similarity index 100% rename from site/src/hooks-doc/useElementSize/useElementSize.demo.tsx rename to site/src/content/useElementSize/useElementSize.demo.tsx diff --git a/site/src/hooks-doc/useElementSize/useElementSize.mdx b/site/src/content/useElementSize/useElementSize.mdx similarity index 100% rename from site/src/hooks-doc/useElementSize/useElementSize.mdx rename to site/src/content/useElementSize/useElementSize.mdx diff --git a/site/src/hooks-doc/useEventListener/index.ts b/site/src/content/useEventListener/index.ts similarity index 100% rename from site/src/hooks-doc/useEventListener/index.ts rename to site/src/content/useEventListener/index.ts diff --git a/site/src/hooks-doc/useEventListener/useEventListener.demo.tsx b/site/src/content/useEventListener/useEventListener.demo.tsx similarity index 100% rename from site/src/hooks-doc/useEventListener/useEventListener.demo.tsx rename to site/src/content/useEventListener/useEventListener.demo.tsx diff --git a/site/src/hooks-doc/useEventListener/useEventListener.mdx b/site/src/content/useEventListener/useEventListener.mdx similarity index 100% rename from site/src/hooks-doc/useEventListener/useEventListener.mdx rename to site/src/content/useEventListener/useEventListener.mdx diff --git a/site/src/hooks-doc/useFetch/index.ts b/site/src/content/useFetch/index.ts similarity index 100% rename from site/src/hooks-doc/useFetch/index.ts rename to site/src/content/useFetch/index.ts diff --git a/site/src/hooks-doc/useFetch/useFetch.demo.tsx b/site/src/content/useFetch/useFetch.demo.tsx similarity index 100% rename from site/src/hooks-doc/useFetch/useFetch.demo.tsx rename to site/src/content/useFetch/useFetch.demo.tsx diff --git a/site/src/hooks-doc/useFetch/useFetch.mdx b/site/src/content/useFetch/useFetch.mdx similarity index 100% rename from site/src/hooks-doc/useFetch/useFetch.mdx rename to site/src/content/useFetch/useFetch.mdx diff --git a/site/src/hooks-doc/useHover/index.ts b/site/src/content/useHover/index.ts similarity index 100% rename from site/src/hooks-doc/useHover/index.ts rename to site/src/content/useHover/index.ts diff --git a/site/src/hooks-doc/useHover/useHover.demo.tsx b/site/src/content/useHover/useHover.demo.tsx similarity index 100% rename from site/src/hooks-doc/useHover/useHover.demo.tsx rename to site/src/content/useHover/useHover.demo.tsx diff --git a/site/src/hooks-doc/useHover/useHover.mdx b/site/src/content/useHover/useHover.mdx similarity index 100% rename from site/src/hooks-doc/useHover/useHover.mdx rename to site/src/content/useHover/useHover.mdx diff --git a/site/src/hooks-doc/useImageOnLoad/index.ts b/site/src/content/useImageOnLoad/index.ts similarity index 100% rename from site/src/hooks-doc/useImageOnLoad/index.ts rename to site/src/content/useImageOnLoad/index.ts diff --git a/site/src/hooks-doc/useImageOnLoad/useImageOnLoad.demo.tsx b/site/src/content/useImageOnLoad/useImageOnLoad.demo.tsx similarity index 100% rename from site/src/hooks-doc/useImageOnLoad/useImageOnLoad.demo.tsx rename to site/src/content/useImageOnLoad/useImageOnLoad.demo.tsx diff --git a/site/src/hooks-doc/useImageOnLoad/useImageOnLoad.mdx b/site/src/content/useImageOnLoad/useImageOnLoad.mdx similarity index 100% rename from site/src/hooks-doc/useImageOnLoad/useImageOnLoad.mdx rename to site/src/content/useImageOnLoad/useImageOnLoad.mdx diff --git a/site/src/hooks-doc/useIntersectionObserver/index.ts b/site/src/content/useIntersectionObserver/index.ts similarity index 100% rename from site/src/hooks-doc/useIntersectionObserver/index.ts rename to site/src/content/useIntersectionObserver/index.ts diff --git a/site/src/hooks-doc/useIntersectionObserver/useIntersectionObserver.demo.tsx b/site/src/content/useIntersectionObserver/useIntersectionObserver.demo.tsx similarity index 100% rename from site/src/hooks-doc/useIntersectionObserver/useIntersectionObserver.demo.tsx rename to site/src/content/useIntersectionObserver/useIntersectionObserver.demo.tsx diff --git a/site/src/hooks-doc/useIntersectionObserver/useIntersectionObserver.mdx b/site/src/content/useIntersectionObserver/useIntersectionObserver.mdx similarity index 100% rename from site/src/hooks-doc/useIntersectionObserver/useIntersectionObserver.mdx rename to site/src/content/useIntersectionObserver/useIntersectionObserver.mdx diff --git a/site/src/hooks-doc/useInterval/index.ts b/site/src/content/useInterval/index.ts similarity index 100% rename from site/src/hooks-doc/useInterval/index.ts rename to site/src/content/useInterval/index.ts diff --git a/site/src/hooks-doc/useInterval/useInterval.demo.tsx b/site/src/content/useInterval/useInterval.demo.tsx similarity index 100% rename from site/src/hooks-doc/useInterval/useInterval.demo.tsx rename to site/src/content/useInterval/useInterval.demo.tsx diff --git a/site/src/hooks-doc/useInterval/useInterval.mdx b/site/src/content/useInterval/useInterval.mdx similarity index 100% rename from site/src/hooks-doc/useInterval/useInterval.mdx rename to site/src/content/useInterval/useInterval.mdx diff --git a/site/src/hooks-doc/useIsClient/index.ts b/site/src/content/useIsClient/index.ts similarity index 100% rename from site/src/hooks-doc/useIsClient/index.ts rename to site/src/content/useIsClient/index.ts diff --git a/site/src/hooks-doc/useIsClient/useIsClient.demo.tsx b/site/src/content/useIsClient/useIsClient.demo.tsx similarity index 100% rename from site/src/hooks-doc/useIsClient/useIsClient.demo.tsx rename to site/src/content/useIsClient/useIsClient.demo.tsx diff --git a/site/src/hooks-doc/useIsClient/useIsClient.mdx b/site/src/content/useIsClient/useIsClient.mdx similarity index 100% rename from site/src/hooks-doc/useIsClient/useIsClient.mdx rename to site/src/content/useIsClient/useIsClient.mdx diff --git a/site/src/hooks-doc/useIsFirstRender/index.ts b/site/src/content/useIsFirstRender/index.ts similarity index 100% rename from site/src/hooks-doc/useIsFirstRender/index.ts rename to site/src/content/useIsFirstRender/index.ts diff --git a/site/src/hooks-doc/useIsFirstRender/useIsFirstRender.demo.tsx b/site/src/content/useIsFirstRender/useIsFirstRender.demo.tsx similarity index 100% rename from site/src/hooks-doc/useIsFirstRender/useIsFirstRender.demo.tsx rename to site/src/content/useIsFirstRender/useIsFirstRender.demo.tsx diff --git a/site/src/hooks-doc/useIsFirstRender/useIsFirstRender.mdx b/site/src/content/useIsFirstRender/useIsFirstRender.mdx similarity index 100% rename from site/src/hooks-doc/useIsFirstRender/useIsFirstRender.mdx rename to site/src/content/useIsFirstRender/useIsFirstRender.mdx diff --git a/site/src/hooks-doc/useIsMounted/index.ts b/site/src/content/useIsMounted/index.ts similarity index 100% rename from site/src/hooks-doc/useIsMounted/index.ts rename to site/src/content/useIsMounted/index.ts diff --git a/site/src/hooks-doc/useIsMounted/useIsMounted.demo.tsx b/site/src/content/useIsMounted/useIsMounted.demo.tsx similarity index 100% rename from site/src/hooks-doc/useIsMounted/useIsMounted.demo.tsx rename to site/src/content/useIsMounted/useIsMounted.demo.tsx diff --git a/site/src/hooks-doc/useIsMounted/useIsMounted.mdx b/site/src/content/useIsMounted/useIsMounted.mdx similarity index 100% rename from site/src/hooks-doc/useIsMounted/useIsMounted.mdx rename to site/src/content/useIsMounted/useIsMounted.mdx diff --git a/site/src/hooks-doc/useIsomorphicLayoutEffect/index.ts b/site/src/content/useIsomorphicLayoutEffect/index.ts similarity index 100% rename from site/src/hooks-doc/useIsomorphicLayoutEffect/index.ts rename to site/src/content/useIsomorphicLayoutEffect/index.ts diff --git a/site/src/hooks-doc/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.demo.tsx b/site/src/content/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.demo.tsx similarity index 100% rename from site/src/hooks-doc/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.demo.tsx rename to site/src/content/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.demo.tsx diff --git a/site/src/hooks-doc/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mdx b/site/src/content/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mdx similarity index 100% rename from site/src/hooks-doc/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mdx rename to site/src/content/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mdx diff --git a/site/src/hooks-doc/useLocalStorage/index.ts b/site/src/content/useLocalStorage/index.ts similarity index 100% rename from site/src/hooks-doc/useLocalStorage/index.ts rename to site/src/content/useLocalStorage/index.ts diff --git a/site/src/hooks-doc/useLocalStorage/useLocalStorage.demo.tsx b/site/src/content/useLocalStorage/useLocalStorage.demo.tsx similarity index 87% rename from site/src/hooks-doc/useLocalStorage/useLocalStorage.demo.tsx rename to site/src/content/useLocalStorage/useLocalStorage.demo.tsx index e1b91833..d1326047 100644 --- a/site/src/hooks-doc/useLocalStorage/useLocalStorage.demo.tsx +++ b/site/src/content/useLocalStorage/useLocalStorage.demo.tsx @@ -7,7 +7,7 @@ export default function Component() { const [isDarkTheme, setDarkTheme] = useLocalStorage('darkTheme', true) const toggleTheme = () => { - setDarkTheme(prevValue => !prevValue) + setDarkTheme((prevValue: boolean) => !prevValue) } return ( diff --git a/site/src/hooks-doc/useLocalStorage/useLocalStorage.mdx b/site/src/content/useLocalStorage/useLocalStorage.mdx similarity index 100% rename from site/src/hooks-doc/useLocalStorage/useLocalStorage.mdx rename to site/src/content/useLocalStorage/useLocalStorage.mdx diff --git a/site/src/hooks-doc/useLockedBody/index.ts b/site/src/content/useLockedBody/index.ts similarity index 100% rename from site/src/hooks-doc/useLockedBody/index.ts rename to site/src/content/useLockedBody/index.ts diff --git a/site/src/hooks-doc/useLockedBody/useLockedBody.demo.tsx b/site/src/content/useLockedBody/useLockedBody.demo.tsx similarity index 100% rename from site/src/hooks-doc/useLockedBody/useLockedBody.demo.tsx rename to site/src/content/useLockedBody/useLockedBody.demo.tsx diff --git a/site/src/hooks-doc/useLockedBody/useLockedBody.mdx b/site/src/content/useLockedBody/useLockedBody.mdx similarity index 100% rename from site/src/hooks-doc/useLockedBody/useLockedBody.mdx rename to site/src/content/useLockedBody/useLockedBody.mdx diff --git a/site/src/hooks-doc/useMap/index.ts b/site/src/content/useMap/index.ts similarity index 100% rename from site/src/hooks-doc/useMap/index.ts rename to site/src/content/useMap/index.ts diff --git a/site/src/hooks-doc/useMap/useMap.demo.tsx b/site/src/content/useMap/useMap.demo.tsx similarity index 100% rename from site/src/hooks-doc/useMap/useMap.demo.tsx rename to site/src/content/useMap/useMap.demo.tsx diff --git a/site/src/hooks-doc/useMap/useMap.mdx b/site/src/content/useMap/useMap.mdx similarity index 100% rename from site/src/hooks-doc/useMap/useMap.mdx rename to site/src/content/useMap/useMap.mdx diff --git a/site/src/hooks-doc/useMediaQuery/index.ts b/site/src/content/useMediaQuery/index.ts similarity index 100% rename from site/src/hooks-doc/useMediaQuery/index.ts rename to site/src/content/useMediaQuery/index.ts diff --git a/site/src/hooks-doc/useMediaQuery/useMediaQuery.demo.tsx b/site/src/content/useMediaQuery/useMediaQuery.demo.tsx similarity index 100% rename from site/src/hooks-doc/useMediaQuery/useMediaQuery.demo.tsx rename to site/src/content/useMediaQuery/useMediaQuery.demo.tsx diff --git a/site/src/hooks-doc/useMediaQuery/useMediaQuery.mdx b/site/src/content/useMediaQuery/useMediaQuery.mdx similarity index 100% rename from site/src/hooks-doc/useMediaQuery/useMediaQuery.mdx rename to site/src/content/useMediaQuery/useMediaQuery.mdx diff --git a/site/src/hooks-doc/useOnClickOutside/index.ts b/site/src/content/useOnClickOutside/index.ts similarity index 100% rename from site/src/hooks-doc/useOnClickOutside/index.ts rename to site/src/content/useOnClickOutside/index.ts diff --git a/site/src/hooks-doc/useOnClickOutside/useOnClickOutside.demo.tsx b/site/src/content/useOnClickOutside/useOnClickOutside.demo.tsx similarity index 100% rename from site/src/hooks-doc/useOnClickOutside/useOnClickOutside.demo.tsx rename to site/src/content/useOnClickOutside/useOnClickOutside.demo.tsx diff --git a/site/src/hooks-doc/useOnClickOutside/useOnClickOutside.mdx b/site/src/content/useOnClickOutside/useOnClickOutside.mdx similarity index 100% rename from site/src/hooks-doc/useOnClickOutside/useOnClickOutside.mdx rename to site/src/content/useOnClickOutside/useOnClickOutside.mdx diff --git a/site/src/hooks-doc/useReadLocalStorage/index.ts b/site/src/content/useReadLocalStorage/index.ts similarity index 100% rename from site/src/hooks-doc/useReadLocalStorage/index.ts rename to site/src/content/useReadLocalStorage/index.ts diff --git a/site/src/hooks-doc/useReadLocalStorage/useReadLocalStorage.demo.tsx b/site/src/content/useReadLocalStorage/useReadLocalStorage.demo.tsx similarity index 100% rename from site/src/hooks-doc/useReadLocalStorage/useReadLocalStorage.demo.tsx rename to site/src/content/useReadLocalStorage/useReadLocalStorage.demo.tsx diff --git a/site/src/hooks-doc/useReadLocalStorage/useReadLocalStorage.mdx b/site/src/content/useReadLocalStorage/useReadLocalStorage.mdx similarity index 100% rename from site/src/hooks-doc/useReadLocalStorage/useReadLocalStorage.mdx rename to site/src/content/useReadLocalStorage/useReadLocalStorage.mdx diff --git a/site/src/hooks-doc/useScreen/index.ts b/site/src/content/useScreen/index.ts similarity index 100% rename from site/src/hooks-doc/useScreen/index.ts rename to site/src/content/useScreen/index.ts diff --git a/site/src/hooks-doc/useScreen/useScreen.demo.tsx b/site/src/content/useScreen/useScreen.demo.tsx similarity index 100% rename from site/src/hooks-doc/useScreen/useScreen.demo.tsx rename to site/src/content/useScreen/useScreen.demo.tsx diff --git a/site/src/hooks-doc/useScreen/useScreen.mdx b/site/src/content/useScreen/useScreen.mdx similarity index 100% rename from site/src/hooks-doc/useScreen/useScreen.mdx rename to site/src/content/useScreen/useScreen.mdx diff --git a/site/src/hooks-doc/useScript/index.ts b/site/src/content/useScript/index.ts similarity index 100% rename from site/src/hooks-doc/useScript/index.ts rename to site/src/content/useScript/index.ts diff --git a/site/src/hooks-doc/useScript/useScript.demo.tsx b/site/src/content/useScript/useScript.demo.tsx similarity index 100% rename from site/src/hooks-doc/useScript/useScript.demo.tsx rename to site/src/content/useScript/useScript.demo.tsx diff --git a/site/src/hooks-doc/useScript/useScript.mdx b/site/src/content/useScript/useScript.mdx similarity index 100% rename from site/src/hooks-doc/useScript/useScript.mdx rename to site/src/content/useScript/useScript.mdx diff --git a/site/src/hooks-doc/useSessionStorage/index.ts b/site/src/content/useSessionStorage/index.ts similarity index 100% rename from site/src/hooks-doc/useSessionStorage/index.ts rename to site/src/content/useSessionStorage/index.ts diff --git a/site/src/hooks-doc/useSessionStorage/useSessionStorage.demo.tsx b/site/src/content/useSessionStorage/useSessionStorage.demo.tsx similarity index 60% rename from site/src/hooks-doc/useSessionStorage/useSessionStorage.demo.tsx rename to site/src/content/useSessionStorage/useSessionStorage.demo.tsx index e3fc76ec..ec5fa325 100644 --- a/site/src/hooks-doc/useSessionStorage/useSessionStorage.demo.tsx +++ b/site/src/content/useSessionStorage/useSessionStorage.demo.tsx @@ -8,8 +8,8 @@ export default function Component() { return (

Count: {value}

- - + +
) } diff --git a/site/src/hooks-doc/useSessionStorage/useSessionStorage.mdx b/site/src/content/useSessionStorage/useSessionStorage.mdx similarity index 100% rename from site/src/hooks-doc/useSessionStorage/useSessionStorage.mdx rename to site/src/content/useSessionStorage/useSessionStorage.mdx diff --git a/site/src/hooks-doc/useSsr/index.ts b/site/src/content/useSsr/index.ts similarity index 100% rename from site/src/hooks-doc/useSsr/index.ts rename to site/src/content/useSsr/index.ts diff --git a/site/src/hooks-doc/useSsr/useSsr.demo.tsx b/site/src/content/useSsr/useSsr.demo.tsx similarity index 100% rename from site/src/hooks-doc/useSsr/useSsr.demo.tsx rename to site/src/content/useSsr/useSsr.demo.tsx diff --git a/site/src/hooks-doc/useSsr/useSsr.mdx b/site/src/content/useSsr/useSsr.mdx similarity index 100% rename from site/src/hooks-doc/useSsr/useSsr.mdx rename to site/src/content/useSsr/useSsr.mdx diff --git a/site/src/hooks-doc/useStep/index.ts b/site/src/content/useStep/index.ts similarity index 100% rename from site/src/hooks-doc/useStep/index.ts rename to site/src/content/useStep/index.ts diff --git a/site/src/hooks-doc/useStep/useStep.demo.tsx b/site/src/content/useStep/useStep.demo.tsx similarity index 100% rename from site/src/hooks-doc/useStep/useStep.demo.tsx rename to site/src/content/useStep/useStep.demo.tsx diff --git a/site/src/hooks-doc/useStep/useStep.mdx b/site/src/content/useStep/useStep.mdx similarity index 100% rename from site/src/hooks-doc/useStep/useStep.mdx rename to site/src/content/useStep/useStep.mdx diff --git a/site/src/hooks-doc/useTernaryDarkMode/index.ts b/site/src/content/useTernaryDarkMode/index.ts similarity index 100% rename from site/src/hooks-doc/useTernaryDarkMode/index.ts rename to site/src/content/useTernaryDarkMode/index.ts diff --git a/site/src/hooks-doc/useTernaryDarkMode/useTernaryDarkMode.demo.tsx b/site/src/content/useTernaryDarkMode/useTernaryDarkMode.demo.tsx similarity index 100% rename from site/src/hooks-doc/useTernaryDarkMode/useTernaryDarkMode.demo.tsx rename to site/src/content/useTernaryDarkMode/useTernaryDarkMode.demo.tsx diff --git a/site/src/hooks-doc/useTernaryDarkMode/useTernaryDarkMode.mdx b/site/src/content/useTernaryDarkMode/useTernaryDarkMode.mdx similarity index 100% rename from site/src/hooks-doc/useTernaryDarkMode/useTernaryDarkMode.mdx rename to site/src/content/useTernaryDarkMode/useTernaryDarkMode.mdx diff --git a/site/src/hooks-doc/useTimeout/index.ts b/site/src/content/useTimeout/index.ts similarity index 100% rename from site/src/hooks-doc/useTimeout/index.ts rename to site/src/content/useTimeout/index.ts diff --git a/site/src/hooks-doc/useTimeout/useTimeout.demo.tsx b/site/src/content/useTimeout/useTimeout.demo.tsx similarity index 100% rename from site/src/hooks-doc/useTimeout/useTimeout.demo.tsx rename to site/src/content/useTimeout/useTimeout.demo.tsx diff --git a/site/src/hooks-doc/useTimeout/useTimeout.mdx b/site/src/content/useTimeout/useTimeout.mdx similarity index 100% rename from site/src/hooks-doc/useTimeout/useTimeout.mdx rename to site/src/content/useTimeout/useTimeout.mdx diff --git a/site/src/hooks-doc/useUpdateEffect/index.ts b/site/src/content/useUpdateEffect/index.ts similarity index 100% rename from site/src/hooks-doc/useUpdateEffect/index.ts rename to site/src/content/useUpdateEffect/index.ts diff --git a/site/src/hooks-doc/useUpdateEffect/useUpdateEffect.demo.tsx b/site/src/content/useUpdateEffect/useUpdateEffect.demo.tsx similarity index 100% rename from site/src/hooks-doc/useUpdateEffect/useUpdateEffect.demo.tsx rename to site/src/content/useUpdateEffect/useUpdateEffect.demo.tsx diff --git a/site/src/hooks-doc/useUpdateEffect/useUpdateEffect.mdx b/site/src/content/useUpdateEffect/useUpdateEffect.mdx similarity index 100% rename from site/src/hooks-doc/useUpdateEffect/useUpdateEffect.mdx rename to site/src/content/useUpdateEffect/useUpdateEffect.mdx diff --git a/site/src/hooks-doc/useWindowSize/index.ts b/site/src/content/useWindowSize/index.ts similarity index 100% rename from site/src/hooks-doc/useWindowSize/index.ts rename to site/src/content/useWindowSize/index.ts diff --git a/site/src/hooks-doc/useWindowSize/useWindowSize.demo.tsx b/site/src/content/useWindowSize/useWindowSize.demo.tsx similarity index 100% rename from site/src/hooks-doc/useWindowSize/useWindowSize.demo.tsx rename to site/src/content/useWindowSize/useWindowSize.demo.tsx diff --git a/site/src/hooks-doc/useWindowSize/useWindowSize.mdx b/site/src/content/useWindowSize/useWindowSize.mdx similarity index 100% rename from site/src/hooks-doc/useWindowSize/useWindowSize.mdx rename to site/src/content/useWindowSize/useWindowSize.mdx