mirror of
https://github.com/HananoshikaYomaru/openfreebooks.git
synced 2026-11-13 13:05:51 +00:00
Update contributing guidelines and enhance build scripts: Add detailed instructions for build modes in CONTRIBUTING.md, clarifying the use of incremental and full rebuilds. Revise package.json to streamline build commands and introduce new dev scripts for better development workflow. Remove deprecated integer arithmetic chapter files and update curriculum JSON to reflect the latest structure. Enhance Pythagorean theorem content with a new vocabulary section for improved clarity.
This commit is contained in:
parent
669fbd59fa
commit
30b4f4cf53
16 changed files with 496 additions and 291 deletions
|
|
@ -63,6 +63,8 @@ bun run dev
|
|||
|
||||
Open [http://127.0.0.1:1111](http://127.0.0.1:1111). Re-run `bun run index:search` when you change chapter HTML or add pages so search stays up to date.
|
||||
|
||||
Use `bun run dev:full` when you want to force a full chapter sync before starting dev servers.
|
||||
|
||||
Search UI is available immediately; results require the index step above (`static/pagefind/` is gitignored and copied from the build output).
|
||||
|
||||
## Production build
|
||||
|
|
@ -71,7 +73,11 @@ Search UI is available immediately; results require the index step above (`stati
|
|||
bun run build
|
||||
```
|
||||
|
||||
This runs `vite build` (outputs to `themes/openfreebooks/static/js/bundle.js`), `zola build` (outputs to `public/`), then Pagefind (`public/pagefind/`).
|
||||
`bun run build` is smart/incremental for local development:
|
||||
- first run (or missing cache) behaves like a full build,
|
||||
- repeat runs skip unchanged steps.
|
||||
|
||||
Use `bun run build:full` for a deterministic full rebuild (recommended for CI/release validation).
|
||||
|
||||
## Deploy to Cloudflare
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue