Skip to content

Commit

Permalink
docs: add attribution and license notices for adapted code
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Jan 24, 2025
1 parent 45f2deb commit 1fa9220
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 12 deletions.
1 change: 1 addition & 0 deletions .cspell/libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ embla
esbenp
fuma
fumadocs
heroui
hiett
knip
lightningcss
Expand Down
5 changes: 5 additions & 0 deletions .cspell/names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ joshwcomeau
karabiner
keka
keychron
Knut
leerob
lightroom
linktree
Expand All @@ -30,13 +31,17 @@ motrix
mounty
nerdfish
nikolovlazar
Oliveira
orbstack
peduarte
photoshop
pixelsnap
planetscale
raycast
Sadman
Sakib
samuelkraft
Sveidqvist
tableplus
tabtab
theodorusclarence
Expand Down
6 changes: 5 additions & 1 deletion apps/docs/src/components/mdx/heading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* Adapted from: https://github.com/fuma-nama/fumadocs/blob/82c273917280f63da95687852135f89a08593e71/packages/ui/src/components/heading.tsx
* fumadocs (MIT License)
* Copyright (c) fuma-nama
* Source: https://github.com/fuma-nama/fumadocs/blob/82c273917280f63da95687852135f89a08593e71/packages/ui/src/components/heading.tsx
*
* Modified by: tszhong0411
*/
import { cn } from '@tszhong0411/utils'
import { LinkIcon } from 'lucide-react'
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/app/api/avatar/[id]/route.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* Adapted from: https://github.com/vercel/avatar/blob/410bc1e438ef26a7456b037bbdd44d5aec49031a/pages/api/avatar/%5Bname%5D.tsx
* avatar (MIT License)
* Copyright (c) Vercel
* Source: https://github.com/vercel/avatar/blob/410bc1e438ef26a7456b037bbdd44d5aec49031a/pages/api/avatar/%5Bname%5D.tsx
*
* Modified by: tszhong0411
*/
import { getErrorMessage } from '@tszhong0411/utils'
import { ImageResponse } from 'next/og'
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/components/mdx/heading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* Adapted from: https://github.com/fuma-nama/fumadocs/blob/82c273917280f63da95687852135f89a08593e71/packages/ui/src/components/heading.tsx
* fumadocs (MIT License)
* Copyright (c) fuma-nama
* Source: https://github.com/fuma-nama/fumadocs/blob/82c273917280f63da95687852135f89a08593e71/packages/ui/src/components/heading.tsx
*
* Modified by: tszhong0411
*/
import { useTranslations } from '@tszhong0411/i18n/client'
import { cn } from '@tszhong0411/utils'
Expand Down
6 changes: 5 additions & 1 deletion packages/mdx/src/plugins/rehype/rehype-code.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* Adapted from: https://github.com/fuma-nama/fumadocs/blob/691f12aa93df25bd10fa5bd6f91f70766c1fef12/packages/core/src/mdx-plugins/rehype-code.ts
* fumadocs (MIT License)
* Copyright (c) fuma-nama
* Source: https://github.com/fuma-nama/fumadocs/blob/691f12aa93df25bd10fa5bd6f91f70766c1fef12/packages/core/src/mdx-plugins/rehype-code.ts
*
* Modified by: tszhong0411
*/
import type { Root } from 'hast'
import type { Plugin } from 'unified'
Expand Down
12 changes: 9 additions & 3 deletions packages/mdx/src/plugins/rehype/rehype-inline-code.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/**
* Adapted from:
* - https://github.com/wevm/vocs/blob/75e0cfc874e7abe8648be139a8554e1fe87a18d1/src/vite/plugins/rehype/inline-shiki.ts
* - https://github.com/shikijs/shiki/blob/481135b16287d7dabc2e155f427af63d3ff3536d/packages/rehype/src/index.ts
* vocs (MIT License)
* Copyright (c) weth, LLC
* Source: https://github.com/wevm/vocs/blob/75e0cfc874e7abe8648be139a8554e1fe87a18d1/src/vite/plugins/rehype/inline-shiki.ts
*
* shiki (MIT License)
* Copyright (c) Pine Wu and Anthony Fu
* Source: https://github.com/shikijs/shiki/blob/481135b16287d7dabc2e155f427af63d3ff3536d/packages/rehype/src/index.ts
*
* Modified by: tszhong0411
*/
import type { RehypeShikiCoreOptions } from '@shikijs/rehype/core'
import type { Root } from 'hast'
Expand Down
7 changes: 5 additions & 2 deletions packages/ui/src/blur-image.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/**
* Adapted from: https://github.com/delbaoliveira/website/blob/59e6f181ad75751342ceaa8931db4cbcef86b018/ui/BlurImage.tsx
* website
* Copyright (c) Delba de Oliveira
* Source: https://github.com/delbaoliveira/website/blob/59e6f181ad75751342ceaa8931db4cbcef86b018/ui/BlurImage.tsx
*
* Modified by: tszhong0411
*/

import { cn } from '@tszhong0411/utils'
import NextImage from 'next/image'
import { useState } from 'react'
Expand Down
6 changes: 5 additions & 1 deletion packages/ui/src/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@ const DataTableToolbar = <TData,>(props: DataTableToolbarProps<TData>) => {
}

/**
* Adapted from: https://github.com/sadmann7/shadcn-table/blob/88abb37998be2ceb1c9b558beff05bb7d839b8cc/src/components/data-table/data-table-skeleton.tsx
* shadcn-table (MIT License)
* Copyright (c) Sadman Sakib
* Source: https://github.com/sadmann7/shadcn-table/blob/88abb37998be2ceb1c9b558beff05bb7d839b8cc/src/components/data-table/data-table-skeleton.tsx
*
* Modified by: tszhong0411
*/
type DataTableSkeletonProps = {
columnCount: number
Expand Down
6 changes: 5 additions & 1 deletion packages/ui/src/kbd.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { cn } from '@tszhong0411/utils'

/**
* Inspired by: https://github.com/nextui-org/nextui/blob/93f68727c1cef10d8745d22099cf27011fd4dce3/packages/components/kbd/src/utils.ts
* heroui (MIT License)
* Copyright (c) Next UI Inc.
* Source: https://github.com/heroui-inc/heroui/blob/93f68727c1cef10d8745d22099cf27011fd4dce3/packages/components/kbd/src/utils.ts
*
* Modified by: tszhong0411
*/
type KbdKey =
| 'command'
Expand Down
6 changes: 5 additions & 1 deletion scripts/fix-cspell.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* Adapted from: https://github.com/mermaid-js/mermaid/blob/7bcba294930aadeaa3960865c26a06ebc7ff907a/scripts/fixCSpell.ts
* mermaid (MIT License)
* Copyright (c) Knut Sveidqvist
* Source: https://github.com/mermaid-js/mermaid/blob/7bcba294930aadeaa3960865c26a06ebc7ff907a/scripts/fixCSpell.ts
*
* Modified by: tszhong0411
*/
import fs from 'node:fs/promises'

Expand Down

0 comments on commit 1fa9220

Please sign in to comment.