Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"baseBranch": "main",
"changelog": [
"@changesets/changelog-github",
{ "repo": "openpatch/hyperbook" }
{
"repo": "openpatch/hyperbook"
}
],
"privatePackages": {
"version": true,
"tag": true
},
"commit": false,
"ignore": [],
"fixed": [["@platforms/web", "hyperbook"]],
"updateInternalDependencies": "patch"
}
35 changes: 35 additions & 0 deletions .changeset/fuzzy-colts-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
"@hyperbook/web-component-excalidraw": minor
"hyperbook": minor
"@hyperbook/markdown": minor
"hyperbook-studio": minor
"@hyperbook/types": minor
"@hyperbook/fs": minor
---

The release is a complete rewrite of the underlying process to generate the
HTML files. React was removed from the project and replaced with remark
plugins. This improves build times and give us more control over the whole
process. For example there is no need anymore for running `npx hyperbook
setup`.

I also added a new pagelist directive, which can be used to list pages based
on user-defined criteria. This directive also replaces the included glossary
page. Therefore, you need to create on yourself. This can be easily done by
creating a page `glossary.md` with the following content:

```md
---
name: Glossary
---

::pagelist{format="glossary" source="href(/glossary/)"}

```

Additionally, I added the ability to use custom JavaScript and CSS-files - see
the documentation under Advanced Features - in addition to using HTML in your
hyperbook, when the `allowDangerousHtml` option is enabled in your config.

I also improved the appearance of custom links, by moving them to the
footer on mobile devices.
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
platforms/web/next.config.js
platforms/web/glossary
platforms/web/book
platforms/web/hyperbook.json
platforms/web/public
platforms/web/archives
platforms/web/snippets
platforms/web/templates
vdirectory.book.json
vdirectory.snippets.json
vdirectory.archives.json
vdirectory.glossary.json
vdirectory.public.json
vfiles.json

packages/markdown/index.html

*.zip

activity
Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "husky && node scripts/setup.mjs",
"prepare": "husky",
"dev": "node scripts/watcher.mjs",
"build": "pnpm -r build",
"build:vercel": "pnpm --filter=!hyperbook-studio build",
Expand All @@ -14,13 +14,10 @@
"hyperbook:build": "pnpm --filter hyperbook build",
"version-packages": "changeset version",
"release": "changeset publish",
"platform:web:dev": "pnpm --filter @platforms/web dev",
"platform:vscode:dev": "pnpm --filter hyperbook-studio watch",
"examples:setup": "cd examples && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js setup",
"examples:build": "cd examples && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js build",
"website:setup": "cd website && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js setup",
"website:dev": "node ./scripts/websiteDev.mjs",
"website:build": "cd website && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js build"
"examples:build": "cd examples && node ../packages/hyperbook/dist/index.js build",
"website:dev": "cd website && node ../packages/hyperbook/dist/index.js dev",
"website:build": "cd website && node ../packages/hyperbook/dist/index.js build"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
Expand Down
19 changes: 0 additions & 19 deletions packages/drawer/CHANGELOG.md

This file was deleted.

9 changes: 0 additions & 9 deletions packages/drawer/README.md

This file was deleted.

50 changes: 0 additions & 50 deletions packages/drawer/package.json

This file was deleted.

125 changes: 0 additions & 125 deletions packages/drawer/src/Drawer.tsx

This file was deleted.

66 changes: 0 additions & 66 deletions packages/drawer/src/index.css

This file was deleted.

2 changes: 0 additions & 2 deletions packages/drawer/src/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/drawer/tsconfig.build.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/drawer/tsconfig.json

This file was deleted.

Loading