Skip to content

Commit

Permalink
FEATURE: can collapse TOC in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Oct 17, 2024
1 parent 60d5039 commit fd2a111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.example.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

[See a live demo](https://namespace.github.io/package-name/)

<details><summary><h2>Contents</h2></summary>
<!-- toc -->
</details>

## install

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"build-docs": "typedoc ./src/index.ts",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-esm:min && npm run build-cjs:min",
"start": "vite",
"preversion": "npm run lint",
"toc": "markdown-toc --maxdepth 3 -i README.md",
"preversion": "npm run lint",
"version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
"postversion": "git push --follow-tags && npm publish",
"prepublishOnly": "npm run build"
Expand Down

0 comments on commit fd2a111

Please sign in to comment.