v2.4.0 release: event patterns + live event conductor
This commit is contained in:
@@ -134,6 +134,43 @@ swift package update Lyrebird # resolves to the new tag if Package.swift `fro
|
||||
swift build && swift test
|
||||
```
|
||||
|
||||
### 6. Re-render the online docs (every public/gitea release)
|
||||
|
||||
`lyrebirdsynth.net/docs` is a static DocC export (WordPress on Bluehost, uploaded
|
||||
over SSH). It does **not** regenerate itself — after a public release that changed
|
||||
docs or public API, rebuild the site folders so the maintainer can re-upload, or the
|
||||
online docs go stale. Render from the **released HEAD** into the durable folder
|
||||
`~/Documents/lyrebird-docs-site/` (not a scratch dir):
|
||||
|
||||
```bash
|
||||
DEST=~/Documents/lyrebird-docs-site
|
||||
cd ~/Documents/src/Lyrebird
|
||||
|
||||
# Core — all guides + symbol reference.
|
||||
swift package --allow-writing-to-directory "$DEST/lyrebird" generate-documentation \
|
||||
--target LyrebirdSynth --disable-indexing --transform-for-static-hosting \
|
||||
--hosting-base-path docs/lyrebird --output-path "$DEST/lyrebird"
|
||||
```
|
||||
|
||||
UI needs one caveat: `Sources/LyrebirdUI/LyrebirdUIExports.swift` does
|
||||
`@_exported import SwiftUI`, which makes DocC fold the **entire** SwiftUI API into
|
||||
LyrebirdUI's reference (165k pages / 2.3G instead of the correct ~34 real types /
|
||||
261M). Temporarily demote it to a plain `import` for the UI build only, then restore:
|
||||
|
||||
```bash
|
||||
E=Sources/LyrebirdUI/LyrebirdUIExports.swift
|
||||
perl -pi -e 's/^\@_exported import SwiftUI/import SwiftUI/' "$E"
|
||||
swift package --allow-writing-to-directory "$DEST/lyrebirdui" generate-documentation \
|
||||
--target LyrebirdUI --disable-indexing --transform-for-static-hosting \
|
||||
--hosting-base-path docs/lyrebirdui --output-path "$DEST/lyrebirdui"
|
||||
git checkout -- "$E" # restore @_exported — MUST run even if the build fails
|
||||
```
|
||||
|
||||
Keep `$DEST/index.html` (landing), `$DEST/.htaccess` (Apache rewrite for DocC
|
||||
client-side routes — **required** or deep links 404 under WordPress), and
|
||||
`$DEST/UPLOAD.md` (rsync-over-SSH to `~/public_html/docs/`). Expected: core ~115M,
|
||||
UI ~261M. Tell the maintainer the folder is ready; the upload itself is theirs.
|
||||
|
||||
## Flags
|
||||
|
||||
- `--dev PATH` / `--release PATH` — override the default repo locations.
|
||||
|
||||
Reference in New Issue
Block a user