A https://readme.md/ is brilliant for small projects. For very large projects, there are lot of mature tools: mdbook (used for Rust), Sphinx (used for Python) and Scribble (used for Racket).
I don't know of many good options for "slightly bigger than a README" though.
eslint is an incredible boon to the JS community. Rather than advising new JS developers to read books like The Good Parts, I just encourage them to use eslint with the default checks enabled.
Today I learnt that Racket *intentionally* doesn't have a traditional REPL workflow. The authors were concerned about students not understanding the state between the current session and the code on disk.
(Arguably Jupyter has some of these features now.)