Skip to content
Open

Wtp #156

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
8c08be4
Make progress on pii spec
AljoschaMeyer Feb 20, 2025
ac5b563
More pii progress
AljoschaMeyer Feb 22, 2025
1bc4975
Fix encodings =S
AljoschaMeyer Feb 24, 2025
fc135ec
Access control mostly done
AljoschaMeyer Feb 25, 2025
ad9351b
Complete pii spec, in memoriam David Lynch
AljoschaMeyer Feb 25, 2025
4502a09
Citation styling
AljoschaMeyer Feb 25, 2025
f40db4b
Link colour fixes (does not work in mathmode)
AljoschaMeyer Feb 25, 2025
852ccc2
Fix mathmode pre-post font selection
AljoschaMeyer Feb 25, 2025
37dd3dc
Fully port data model
AljoschaMeyer Feb 25, 2025
24f9001
Port e2e spec
AljoschaMeyer Feb 26, 2025
f4e98a6
Fix all trivial warning
AljoschaMeyer Feb 26, 2025
5670fd1
Entry encoding (breaking change)
AljoschaMeyer Feb 26, 2025
662d81b
Port and adjust area_in_area encoding
AljoschaMeyer Feb 26, 2025
f591de0
Port Timestamps, Really?
AljoschaMeyer Feb 26, 2025
97bb564
Port and adjust Sideloading spec
AljoschaMeyer Mar 8, 2025
b1562fe
Add /todos.html, and make some rbsr porting progress
AljoschaMeyer Apr 11, 2025
270021b
Merge main into macromania
sgwilym Apr 11, 2025
80be662
Finish porting rbsr page
AljoschaMeyer Apr 11, 2025
271c7ef
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer Apr 11, 2025
de17cb4
Fix typo
AljoschaMeyer Apr 11, 2025
6847116
Fix parens around wip annotations
AljoschaMeyer Apr 11, 2025
083ff96
Work
AljoschaMeyer Apr 11, 2025
6fdaf56
Remove obsolete paragraph
AljoschaMeyer Apr 12, 2025
9b4ae43
Work
AljoschaMeyer Apr 15, 2025
28d7361
Specify PiiBindReadCapability messages
AljoschaMeyer Apr 15, 2025
6e234a6
Rename Pii to Pio
AljoschaMeyer Apr 15, 2025
79746fe
Add sideloading spot illustration
sgwilym Apr 16, 2025
4121885
add some todos for PIO drawings
sgwilym Apr 16, 2025
25a7f9d
Update sideloading.tsx
sgwilym Apr 17, 2025
6981f4a
Merge pull request #104 from earthstar-project/sideloading-spot
sgwilym Apr 17, 2025
7368e5f
Add PioBindStaticToken message
AljoschaMeyer Apr 17, 2025
6007a8e
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer Apr 17, 2025
bee0815
Port (and adjust) rbsr messages in the WGPS
AljoschaMeyer Apr 18, 2025
83994d7
Wrought
AljoschaMeyer Apr 19, 2025
62af1b2
Port missing WGPS messages
AljoschaMeyer Apr 19, 2025
642f2f4
Remove some headings from TOCs
AljoschaMeyer Apr 19, 2025
2cfd0d5
More PII -> PIO renaming
AljoschaMeyer Apr 22, 2025
3462ce3
Fix LCMUX<->WGPS integration
AljoschaMeyer Apr 22, 2025
58c3b1d
Remove WGPS payload requests
AljoschaMeyer Apr 23, 2025
acf6052
Remove notion of StaticTokens
AljoschaMeyer Apr 23, 2025
b6da58c
Allow for chunk offsets in rbsr
AljoschaMeyer Apr 23, 2025
6448be3
Streamline payload chunk offsets
AljoschaMeyer Apr 23, 2025
535467c
Define encoding for PioAnnounceOverlap messages
AljoschaMeyer Apr 23, 2025
010dc4b
Wrought
AljoschaMeyer Apr 23, 2025
a2eeb7f
Specify Data message encodings
AljoschaMeyer Apr 24, 2025
a69061c
Port EntryInNamespace3dRange encoding
AljoschaMeyer Apr 24, 2025
fa4ecb0
Nicer HSections on the encodings page
AljoschaMeyer Apr 24, 2025
e165d35
Add overlap examples, and some fun capability illustrations
sgwilym Apr 24, 2025
c956202
Merge macromania into pio-drawings
sgwilym Apr 24, 2025
f62d605
Merge pull request #105 from earthstar-project/pio-drawings
AljoschaMeyer Apr 24, 2025
d9f5338
Port Encode3dRangeRelative3dRange
AljoschaMeyer Apr 25, 2025
d25add7
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer Apr 25, 2025
d20ec77
Finish the WGPS encodings
AljoschaMeyer Apr 26, 2025
c2c1d89
ReconEntry encoding relative to 3dRange
AljoschaMeyer Apr 27, 2025
b73bdba
Define the handshake
AljoschaMeyer May 3, 2025
613af1a
Define hkdf in handshake
AljoschaMeyer May 3, 2025
074abbe
Assign todos
AljoschaMeyer May 3, 2025
b4b1ee4
Fix encoding thinko
AljoschaMeyer May 3, 2025
609e2fa
Marginalia positioning now consistent
sgwilym May 4, 2025
12d5068
Make nested sections the right width
sgwilym May 4, 2025
8f29907
Fix marginalia positioning next to encoding tables
sgwilym May 4, 2025
78393f2
Remove completed TODO
sgwilym May 4, 2025
90e1287
Merge pull request #106 from earthstar-project/marginale-layout
AljoschaMeyer May 4, 2025
f9bf6be
Specify transport encryption
AljoschaMeyer May 4, 2025
83fc7e2
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 4, 2025
852e2ec
Fix mistakes
AljoschaMeyer May 4, 2025
4c4e786
Small handshake clarifications
AljoschaMeyer May 5, 2025
3605a38
Regenerate lockfile + add import mappings for local macromania deps
sgwilym May 5, 2025
ef57a4a
Update CI to use Deno 2.0
sgwilym May 5, 2025
b497e56
More deploy fiddling
sgwilym May 5, 2025
69fa62b
Fix Deno Deploy action version to v2.2.12
sgwilym May 5, 2025
63deb06
Manually set lockfile version to 4
sgwilym May 5, 2025
c282a2c
Set Deno Deploy action Deno version back to v2.x
sgwilym May 5, 2025
5bc0474
Merge pull request #109 from earthstar-project/dep-fixes
AljoschaMeyer May 5, 2025
1d80896
Fix regressed wide document styles
sgwilym May 5, 2025
aecbf02
Merge pull request #110 from earthstar-project/fix-wide
AljoschaMeyer May 5, 2025
ea4f852
Fix handshake oversight
AljoschaMeyer May 5, 2025
8131936
Simplify handshake initial state
AljoschaMeyer May 5, 2025
1f84c12
First pass on nav styling
sgwilym May 5, 2025
c1c4117
Full CSS solution
sgwilym May 5, 2025
d58e196
Fix hkdf type sigature
AljoschaMeyer May 6, 2025
fbe8673
Add PIO salting comic
sgwilym May 7, 2025
b245b22
Add LCMUX diagrams for client/server communication limiting
sgwilym May 7, 2025
bcfd096
Merge pull request #112 from earthstar-project/more-drawings
AljoschaMeyer May 7, 2025
fd05f42
Merge pull request #111 from earthstar-project/nav-styling
AljoschaMeyer May 7, 2025
201326c
Fix handshake hash-decrypt ordering
AljoschaMeyer May 7, 2025
5b3bd46
Add nested navigation to PageTemplate macro
sgwilym May 7, 2025
42dafa2
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 12, 2025
521352e
Port 3d storage page
AljoschaMeyer May 12, 2025
73d933b
Port why-willow page
AljoschaMeyer May 12, 2025
7603937
Port comparison page, remove tangle sync section
AljoschaMeyer May 12, 2025
22f61b8
Port projects page
AljoschaMeyer May 12, 2025
7052393
Add comparison to ActivityPub
AljoschaMeyer May 12, 2025
e1c1674
Add illustrations to Encrypting Entries page
sgwilym May 13, 2025
e7f4ec1
Add alt text for the encryption comics
sgwilym May 13, 2025
cdaa3e1
Put PIO diagrams out of details and into Hsection
sgwilym May 13, 2025
7e6c765
Some styling fixes for PIO and MC pages
sgwilym May 13, 2025
f58d041
Merge pull request #113 from earthstar-project/encryption-illos
AljoschaMeyer May 13, 2025
e0c87b3
Make lcmux global message transmissions atomic
AljoschaMeyer May 14, 2025
dfd5c54
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 14, 2025
a6781f5
Add gemma+a - gemma+b overlap diagram
sgwilym May 14, 2025
de05d00
Merge branch 'macromania' into illo-styling
sgwilym May 14, 2025
4712da8
Fix copy of PIO diagram
sgwilym May 14, 2025
e66578e
Add horizontal rules to PIO examples
sgwilym May 14, 2025
41f4687
Merge pull request #114 from earthstar-project/illo-styling
AljoschaMeyer May 14, 2025
c4a6b0e
Take care of some easy TODOs
AljoschaMeyer May 14, 2025
98c9926
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 14, 2025
56facce
Update gwil's about section
sgwilym May 14, 2025
10cf125
Merge pull request #115 from earthstar-project/gwil-about
sgwilym May 14, 2025
7962e0a
Fix DefValue (and friends) styling in previews
AljoschaMeyer May 15, 2025
7b96b4b
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 15, 2025
e5d8d52
Fix a typo
AljoschaMeyer May 15, 2025
b07db18
Hackily fix preview height
AljoschaMeyer May 15, 2025
93f8564
Add flowchart for reconciliation messages
sgwilym May 15, 2025
715513d
Merge pull request #119 from earthstar-project/wgps-msg-flowchart
AljoschaMeyer May 15, 2025
aa4ae90
Add absolute encodings for Meadowcap
AljoschaMeyer May 15, 2025
9477daf
Fix margincaption rendering error
sgwilym May 16, 2025
da9b3bd
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 16, 2025
0d0173a
Specify most of Willow25
AljoschaMeyer May 18, 2025
0e1bae0
Add ornamental illustration to the 'more' page
sgwilym May 18, 2025
e2aeb6c
Merge pull request #121 from earthstar-project/more-illo
AljoschaMeyer May 18, 2025
a4ce194
Add another sideloading diagram
sgwilym May 19, 2025
30f737a
Merge pull request #122 from earthstar-project/sideloading-more
AljoschaMeyer May 19, 2025
50698d5
Add some diagrams to the timestamps really page
sgwilym May 19, 2025
7eaee91
Finish Willow25 draft
AljoschaMeyer May 19, 2025
e14b74e
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 19, 2025
c42d9b7
Merge pull request #123 from earthstar-project/timestamp-illos
AljoschaMeyer May 19, 2025
8c9c558
Add etag generation
AljoschaMeyer May 20, 2025
59aaf96
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer May 20, 2025
0cf3aa4
Implement content-addressed assets
AljoschaMeyer May 20, 2025
4419cac
Remove src/deps.ts, add @std/path
sgwilym May 20, 2025
9768002
Outline what the server needs to do and what I need to do it
sgwilym May 20, 2025
0b96ae9
Oops
AljoschaMeyer May 20, 2025
cdef01a
Create caching info json, generate etags for previews
AljoschaMeyer May 20, 2025
b57e6df
Remove done TODO
AljoschaMeyer May 20, 2025
d135d48
Merge macromania into actual-asset-stuff
sgwilym May 21, 2025
963415d
keep fixing
sgwilym May 21, 2025
063995d
Implement new fun server!
sgwilym May 21, 2025
6d0cab2
Add task for server in dev mode
sgwilym May 21, 2025
73eeb3d
Fix a build issue
sgwilym May 21, 2025
d1fed86
Fix emblem serving
sgwilym May 21, 2025
c028e4d
logging tweak
sgwilym May 21, 2025
2ec331d
Fix encoding table spacing styling
sgwilym May 21, 2025
008395d
Make pseudocode indentation bar seamless again
sgwilym May 21, 2025
9bbb883
Merge pull request #125 from earthstar-project/actual-asset-stuff
AljoschaMeyer May 21, 2025
f5eeb7a
Fix defref katex colouring
sgwilym May 21, 2025
4d5400e
Fix width of nested encoding
sgwilym May 21, 2025
1748642
fix heading hover colours
sgwilym May 21, 2025
310e360
Fix colouring of closed and open range defs
sgwilym May 21, 2025
7088bf1
More obvious blockquote styling
sgwilym May 21, 2025
430a79b
Screaming aside styling
sgwilym May 21, 2025
3dd8cd3
Fix marginale link colouring
sgwilym May 21, 2025
e90b360
Soften alternating pseudocode colours, set minimum height for lines
sgwilym May 21, 2025
67b1878
Merge pull request #126 from earthstar-project/todos
AljoschaMeyer May 21, 2025
c2a8a05
All Comparison page illustration, Willow'25 emblem
sgwilym May 22, 2025
2d71ac9
Merge pull request #127 from earthstar-project/more-images
AljoschaMeyer May 23, 2025
a583299
First mockup of how this'd look
sgwilym May 24, 2025
6d2e82c
Put in splash image - good enough layout for now
sgwilym May 27, 2025
603d2d2
Add sideloading spot illo to landing
sgwilym May 27, 2025
d24b88e
Splash alt text
sgwilym May 27, 2025
2656159
Finish up spec breakdown section
sgwilym May 28, 2025
700dad9
Merge pull request #129 from earthstar-project/new-landing
AljoschaMeyer May 28, 2025
e13372d
Better tagline
sgwilym May 29, 2025
4200fe9
Add macromania-defs-rustdocs
sgwilym Jun 11, 2025
a63e304
Rust page + Path tutorial (first step)
sgwilym Jun 12, 2025
7c90374
Add macromania-shiki, use in paths tutorial, fiddle with styles
sgwilym Jun 13, 2025
e7ea339
stupendous! crack on!
sgwilym Jun 13, 2025
419e638
Finish path tutorial
sgwilym Jun 13, 2025
4724405
we’re in this together
sgwilym Jun 13, 2025
4ddf070
Bit of Aljosha feedback
sgwilym Jun 14, 2025
5ff8487
Add willow_25 rustdocs
sgwilym Jun 14, 2025
627a184
Add caching for rustdoc defs
sgwilym Jun 14, 2025
382850b
Add entry tutorial
sgwilym Jun 14, 2025
b041d9b
correct a ref
sgwilym Jun 14, 2025
e04cb48
Complete entry tutorial
sgwilym Jun 16, 2025
54d4872
Add groupings tutorial
sgwilym Jun 16, 2025
24ae2c4
Do away with irrelevant lints
sgwilym Jun 17, 2025
fcae134
Some fixes to the landing
sgwilym Jun 17, 2025
66dae35
Some rust page modifications
sgwilym Jun 17, 2025
aa1550c
Everything uses the TutorialTemplate macro now
sgwilym Jun 17, 2025
fa108db
Add a contribute section to the rust page
sgwilym Jun 17, 2025
fd67071
More finangling of the landing page
sgwilym Jun 17, 2025
a512499
Remove Range3d from groupings tutorial
sgwilym Jun 17, 2025
83ae619
Fix typos
AljoschaMeyer Jun 21, 2025
f7fd694
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer Jun 21, 2025
451d108
Move to per-aoi max_payload_powers
AljoschaMeyer Jun 21, 2025
9cbce92
Fix McEnumerationCap validity definition
AljoschaMeyer Jun 21, 2025
e7c250f
Add capability tutorial
sgwilym Jun 21, 2025
a6a67a0
Add store tutorial
sgwilym Jun 24, 2025
3b4abbd
Add more willow crate defs
sgwilym Jun 26, 2025
79d8348
working in previews in dev mode
sgwilym Jul 9, 2025
79d454c
Fix it everywhere, the proper way
sgwilym Jul 9, 2025
58b9951
Merge pull request #139 from earthstar-project/working-previews
AljoschaMeyer Jul 9, 2025
6949864
discord feedback
sgwilym Jul 9, 2025
e09d32c
How about calling the correct functions for adding deps?
AljoschaMeyer Jul 9, 2025
03095a6
most github feedback
sgwilym Jul 9, 2025
dbfca11
Merge pull request #132 from earthstar-project/rustdocs
sgwilym Jul 9, 2025
154ee15
Merge pull request #140 from earthstar-project/fix_defref_cssdeps
sgwilym Jul 9, 2025
36b73d3
Fix code sample padding
AljoschaMeyer Jul 20, 2025
89a5f95
Link to encoding test vectors
AljoschaMeyer Jul 20, 2025
7eaae99
Fix background images ^_^
AljoschaMeyer Jul 20, 2025
715e0d0
Fix 3dRangeRelative3dRange encoding mistake
AljoschaMeyer Jul 20, 2025
02120f3
Improve PathRelativePath encoding presentation (fix #137)
AljoschaMeyer Jul 20, 2025
5df30e6
Fix some typos
AljoschaMeyer Jul 20, 2025
8d43f21
Add PIO-examples-omitting-empty-paths disclaimer (fixes #134)
AljoschaMeyer Jul 20, 2025
7427d49
Add missing PIO case to spec
AljoschaMeyer Jul 20, 2025
b9c3491
Merge main into macromania
sgwilym Jul 21, 2025
1556163
Improve WGPS authorisation token encoding introduction
AljoschaMeyer Jul 24, 2025
d57c403
Polish sideloading some more
AljoschaMeyer Jul 24, 2025
7aa0571
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer Jul 24, 2025
2740203
Fix copy-paste oversight
AljoschaMeyer Jul 24, 2025
f9854d2
Fix relative capability encodings
AljoschaMeyer Jul 25, 2025
56d586f
Fix some punctuation errors
AljoschaMeyer Jul 25, 2025
ffdb577
Make relative meadowcap encodings distinguishable
AljoschaMeyer Jul 28, 2025
c992e36
Fix McAuthorisationTokenRelative encoding
AljoschaMeyer Jul 29, 2025
470c6ab
Fix typos
AljoschaMeyer Jul 30, 2025
7d808ab
sideloading tutorial
sgwilym Aug 4, 2025
53cbe07
Update willow_25 defs
sgwilym Aug 4, 2025
60f5ce0
Fix broken store tutorial summary refs
sgwilym Aug 5, 2025
2b27b61
Edits based on feedback
sgwilym Aug 5, 2025
3f3718f
Add willow_sideload defs
sgwilym Aug 5, 2025
23b2dbb
Merge pull request #147 from earthstar-project/sideloading-tutorial
sgwilym Aug 5, 2025
3058689
wrought
sgwilym Aug 5, 2025
d5aebc2
edit
sgwilym Aug 6, 2025
ea2a141
Fix some typos
AljoschaMeyer Sep 1, 2025
03937ab
Merge branch 'macromania' of https://github.com/earthstar-project/wil…
AljoschaMeyer Sep 1, 2025
e9f199e
Fix more typos
AljoschaMeyer Sep 1, 2025
06f66a1
Update RangeInfo for root range progress counting
AljoschaMeyer Sep 2, 2025
fb39597
Add PayloadRequestBind message
AljoschaMeyer Sep 2, 2025
f9bb013
Add PayloadRequestSendResponse message
AljoschaMeyer Sep 2, 2025
f2d0502
Update global message encodings
AljoschaMeyer Sep 2, 2025
f89a79b
Fix some typos
AljoschaMeyer Sep 2, 2025
c3e430f
Update encodings for DataChannel messages
AljoschaMeyer Sep 3, 2025
8bc5eec
Update reconciliation message ordering prose
AljoschaMeyer Sep 3, 2025
88ab8eb
Fix bug in rbsr channel split
AljoschaMeyer Sep 8, 2025
9ce7681
Fix some encodings, closes #151
AljoschaMeyer Sep 10, 2025
1a51d9f
Fix typo
AljoschaMeyer Sep 12, 2025
f19262a
Fix a typo
AljoschaMeyer Sep 13, 2025
8827e88
Fix #154
AljoschaMeyer Sep 13, 2025
0e37fa0
Draft wtp introduction
AljoschaMeyer Sep 14, 2025
6e90267
Draft wtp parameters
AljoschaMeyer Sep 14, 2025
5948a69
Sketch setup messages
AljoschaMeyer Sep 14, 2025
412110c
Draft RequestSpecific message
AljoschaMeyer Sep 15, 2025
db4a9e0
Draft ReplySpecific message
AljoschaMeyer Sep 16, 2025
5908e3a
Wrought
AljoschaMeyer Sep 17, 2025
22976a0
Sketch wtp RequestBulk message
AljoschaMeyer Sep 17, 2025
b46f58a
Rename the messages to http-like terminology
AljoschaMeyer Sep 17, 2025
769f4f8
Wtp spec small fixes
AljoschaMeyer Sep 18, 2025
e320d09
Sketch wtp RequestPut and ResponsePut
AljoschaMeyer Sep 18, 2025
82e0ec9
Add sorting to bulk get request
AljoschaMeyer Sep 18, 2025
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Build step
run: "deno task build"
Expand All @@ -29,4 +29,5 @@ jobs:
uses: denoland/deployctl@v1
with:
project: "macromania"
entrypoint: "./server.ts"
entrypoint: "./server.ts"
root: "."
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
willowtest/build
build
# Automatically generated and populated by `deno build` or `deno watch`
build
.vscode
rustdocs/cached_defs
8 changes: 3 additions & 5 deletions .nova/Configuration.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"co.gwil.deno.config.formatOnSave" : "false",
"deno.enablePaths" : [
"willowtest",
"deno.json"
]
"co.gwil.deno.config.formatOnSave" : "true",
"workspace.preview_type" : "custom",
"workspace.preview_url" : "http:\/\/localhost:8000"
}
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# We Are Sorry
# Willow-Specs

This repository houses a completely undocumented, experimental macro expansion system for generating text documents. It also houses the source of [https://willowprotocol.org/](https://willowprotocol.org/), which augments the undocumented macro expander with a diverse set of undocumented macros, often of abysmal code quality.
Source code for the specifications of [Willow](https://willowprotocol.org/).

On the bright side, we consider the macro system a success and will eventually create a clean, well-documented, standalone version of it. Until then, unfortunately, the source for the Willow website (including for all the specifications) will stay rather inaccessible. We welcome issues on even the most trivial typo fixes, and will happily take care of them.
The specs are written using [Macromania](https://github.com/worm-blossom/macromania) ([basic tutorial here](https://github.com/worm-blossom/macromania/blob/main/test/tutorial.tsx)), see this [Macromania demo repository](https://github.com/worm-blossom/demo_macromania) to learn about most of the macros used for this site.

For the brave who do want to venture into the source:
For working on the generated site, run `deno task watch` to rebuild the site on (most) changes to the source; build output is placed at `./build`. Run `deno task serve` to start a webserver at `localhost:8000` for seeing the effects of your changes. The `deno task watch` command detects changes to input `.ts` and `.tsx` files only, but not to assets such as images or stylesheets. When changing those, simply interrupt the current `deno task watch` command and run it again (the command always starts with a full rebuild).

- The webpages themselves live in the [https://github.com/earthstar-project/tsgen/tree/main/willowtest/specs](https://github.com/earthstar-project/tsgen/tree/main/willowtest/specs) directory, with assets and css residing [one level higher](https://github.com/earthstar-project/tsgen/tree/main/willowtest).
- The entrypoint to rendering the site is [`main.ts`](https://github.com/earthstar-project/tsgen/blob/main/willowtest/main.ts) (not to be confused with the *other* [`main.ts`](https://github.com/earthstar-project/tsgen/blob/main/main.ts) 🫠).
- The macro expander is defined in [`tsgen.ts`](https://github.com/earthstar-project/tsgen/blob/main/tsgen.ts).
## Source Organisation

Again, we are sorry, but it is what it is.
The entrypoint for macromania and the macromania expression that gets evaluated to produce the site is in [`src/main.tsx`]. Toward the end of that expression, we list the directory hierarchy of the website. The actual site contents are imported from hierarchically organised files in [`src/pages`]. Note how pages that have "subpages" (e.g. `src/specs.tsx`, `src/more.tsx`) are not mappend in a `<Dir>` macro, but "leaf pages" (e.g. `src/specs/data_model.tsx`) are. When in doubt, simply copypaste `src/specs/data_model.tsx` to get started with a new page.

Assets are read from [`src/assets`]. Careful: [`src/assets/layout.css`] is actually autogenerated from [`src/layoutStyles.tsx`] at build time, and then copied from the assets directory into the build directory. It turned out to be less effort to do this way, even it breaks the reasonable assumption of assets being purely static. Oh well. If you need to modify the responsive layout of marginales, tables of contents, etc, do so in [`src/layoutStyles.tsx`]. Also, ideally, you shouldn't need to.

The most common macros we use are those from the [scientific writing demo repository](https://github.com/worm-blossom/demo_macromania). Consult [`src/specs/data_model.tsx`] for usage examples of most of them. That file also demonstrates the macro we use for rendering paths.

For example usage of the macro(s) for defining encodings, see [`src/specs/encodings.tsx`].

In general, willow-specific macros are defined in [`src/macros.tsx`]. Usually, that's where you'll want to add new macros as well.

The macro that serves as a general page template is defined in [`src/pageTemplate.tsx`].
1 change: 0 additions & 1 deletion build/testspec.html

This file was deleted.

Loading