It’s not really literate programming. It’s just editable/executable code intertwined with text. There’s no tangle and weave, or code reuse.
Have you seen actual literate programming documents? The Noweb tool’s page has examples.
Your stuck on Knuth's definition of literate programming but this is better than that