On Friday, 28 November 2025 at 23:55:16 UTC, bachmeier wrote:
Is there a way to download one page of the documentation? I'd like to click to download (to take one page at random) https://dlang.org/spec/declaration.html in text format. I'd like to upload it to an LLM to ask questions about just that page, or maybe several pages that are relevant to my inquiry.
I've done something similar with ChatGPT. I created a custom GPT and fed in three files: 1) Ali's Programming in D book, 2) the Vibe book, 3) a txt file with all of the spec files pasted in one after another with some separation between them.
The reason I combined all the spec files together was because there are limits on the number of files you can load in.
I was fairly happy with it, but I wanted to improve the txt file generation and then expand to include the entire Dlang website (and maybe all the code to the DMD code base, or who knows). And then I got caught up with other things and haven't played with it in like two months.
Rather than just building my own one-off tool for creating the text file, I was thinking about some of the open issues related to har [1]. What I was doing was basically manually doing what this tool should be able to do anyway. Would probably need to fork the project given that Jonathan Marler has moved on.
[1] https://github.com/marler8997/har
