Skip to content

Add tracey export: Static HTML spec export#178

Merged
fasterthanlime merged 2 commits intobearcove:mainfrom
Softleif:feature/143-static-html-export
Mar 27, 2026
Merged

Add tracey export: Static HTML spec export#178
fasterthanlime merged 2 commits intobearcove:mainfrom
Softleif:feature/143-static-html-export

Conversation

@killercup
Copy link
Copy Markdown
Contributor

Probably fixes #143

Uses the daemon and most of the dashboard styles. There's a --sources
flag, then the sources will also be included. I don't really care for it
since I only want the spec exported as docs.

I had Claude fill in the all the HTML noise. Not sure you like this
style (I'm not too happy with it myself), but it does get the job done.
It also invented a symbols list for the source view -- I'm gonna let it
have that.

Probably fixes bearcove#143

Uses the daemon and most of the dashboard styles. There's a `--sources`
flag, then the sources will also be included. I don't really care for it
since I only want the spec exported as docs.

I had Claude fill in the all the HTML noise. Not sure you like this
style (I'm not too happy with it myself), but it does get the job done.
It also invented a symbols list for the source view -- I'm gonna let it
have that.
@killercup
Copy link
Copy Markdown
Contributor Author

Ironically, I didn't write a spec for this :D

Let me know if this is the direction you want to take this, and I'll clean it up.

@fasterthanlime
Copy link
Copy Markdown
Contributor

whoa, I've been thinking about making this, but you were faster!

please accept the title of "fastestthanlime"

@fasterthanlime
Copy link
Copy Markdown
Contributor

So my concern here is that a lot of the assumptions are going to break over time, and the way I was thinking of doing it was to not really change the rendering itself, but to change the data source. The data source would be just static files, and then the API would be served from that. So there would be a different API provider. But I'll just merge this, so it doesn't rot, and we'll see if it breaks. Then, you know, I will have been right by virtue of being pessimistic.

@fasterthanlime fasterthanlime added this pull request to the merge queue Mar 27, 2026
Merged via the queue into bearcove:main with commit 9e6c9b8 Mar 27, 2026
6 checks passed
@killercup
Copy link
Copy Markdown
Contributor Author

Thanks! I'm sure this code is gonna come back to haunt both of us. Maybe I can fix it up before.

@killercup
Copy link
Copy Markdown
Contributor Author

I thought about your data source swap as well but then it'd still be a SPA, when it could very well be entirely rendered. My a goal was to get something mdbook like, so I thought that fits better. I also thought of making it literally mdbook but it felt neater to reuse the existing tracey features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deployable version of tracey web?

2 participants