Skip to content

Commit

Permalink
update markdown-toc to prevent duplicate links (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Aug 7, 2023
1 parent 514f73f commit d8006f3
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 52 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-spiders-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/docgen": patch
---

patch markdown-toc to prevent duplicate links
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"effect": "2.0.0-next.24",
"fs-extra": "^11.1.1",
"glob": "^10.3.3",
"markdown-toc": "^1.2.0",
"markdown-toc": "github:effect-ts/markdown-toc",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"ts-morph": "^19.0.0",
Expand Down
86 changes: 37 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions scripts/copy-package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import * as FileSystem from "../src/FileSystem"

const excludedPrefixes = ["@effect", "effect", "chalk"]

const excludeEffectPackages = (deps: Record<string, string>): Record<string, string> => {
return ReadonlyRecord.filter(deps, (_, k) => !excludedPrefixes.some((_) => k.startsWith(_)))
const excludeEffectPackages = (
deps: Record<string, string>
): Record<string, string> => {
return ReadonlyRecord.filter(
deps,
(_, k) => !excludedPrefixes.some((_) => k.startsWith(_))
)
}

const read = FileSystem.FileSystem.pipe(
Expand Down

0 comments on commit d8006f3

Please sign in to comment.