Add basic skeleton for developer docs#988
Conversation
|
Thanks! This is quite comprehensive already and the structure makes sense. I'm about halfway through reviewing. On writing style, some parts feel sales-pitch-y in a way that I don't think is relevant in developer documentation. There are some inaccuracies that can be adjusted but also some nonsensical statements. (Did you use an LLM to help writing? That's fine, but I'm curious to know if so) |
|
Yeah the docs were generated from my dev notes with claude so the tone is classically LLM'd (sales pitch-y is a nice way to put it). I did a few of slop cleanup but I'll do another to tighten it up this morning. |
|
Alright! In that case I'd also cut down on the length of some of the pages especially around the "recommendations" and "design principles". They're reasonable for the most part, but too generic to add much value IMO. |
9abdc2c to
31ae0d1
Compare
|
Gave it another once over and removed some of the overly flowery blocks. It reads as a reasonable first-time-dev resource to me, but please let me know what else you'd like to see changed. Thanks! |
31ae0d1 to
ec1b46f
Compare
|
Excellent! Thanks for the feedback, pedantry is always welcome when talking docs. Will take another pass at the branch this morning. |
|
Accepted your suggestions, made some more copy edits, and rebased everything together. I only have the one remaining question as to how (if at all) you think we should document the intent of the |
|
Thanks! I'm not seeing the rebase yet though, and it looks like the latest commit undoes the changes.
That isn't possible right now though. The only public entry points for the HTML module are: pub fn push_html<'a, I>(s: &mut String, iter: I) {...}
pub fn write_html_fmt<'a, I, W: std::fmt::Write>(writer: W, iter: I) {...}
pub fn write_html_io<'a, I, W: std::io::Write>(writer: W, iter: I) {...}
pub trait Write {
// Required method
fn write_str(&mut self, s: &str) -> Result;
// Provided methods
fn write_char(&mut self, c: char) -> Result { ... }
fn write_fmt(&mut self, args: Arguments<'_>) -> Result { ... }
}So for all intents and purposes, a user of pulldown-cmark should be able to implement The reason we want Reading the docs for struct Adapter<'a, T: ?Sized + 'a> {
inner: &'a mut T,
error: Result<()>,
}We could consider something similar for pulldown-cmark in the future as well. Previous discussions: TL;DR: |
|
Unrelated to this PR, that actually cleared up some mystery around the |
|
Indeed, I had to read through those prior discussions again to remind myself of the nuances. Wouldn't hurt to have this distilled in the docs |
7c17947 to
3621cf9
Compare
|
Actually pushed the rebase now ;) |
3621cf9 to
ab17ebf
Compare
ollpu
left a comment
There was a problem hiding this comment.
Couple notes still, but I won't hold this up too much more
guide/src/dev/performance.md
Outdated
| 4. Generating a bitmask indicating which bytes matched | ||
|
|
||
| ```rust | ||
| // Example from simd.rs showing the core scanning logic |
|
Thanks for the writing and reviewing work! I will try to review this in the next days. |
|
It looks good to me! I think it can be merged when the last ollpu's comment is fixed. Thanks! |
Create a reasonable skeleton for important topics to cover and write a bit about the various subjects
ab17ebf to
2a32e9c
Compare
|
Corrected that reference to be |
Create a reasonable skeleton for important topics to cover and write a bit about the various subjects. This mostly note-taking levels of detail, but I think a reasonable starting off point. I'm open to any and all suggestions from copy-edits to missing/incomplete/incorrect data.