Skip to main content

contribute_html

Function contribute_html 

Source
pub fn contribute_html() -> String
Expand description

The three commands a newcomer runs, as an HTML fragment the node serves on its contribute page.

Generated rather than written into browse.rs for the reason llms.txt is: a page that tells a newcomer which flag to pass is the worst place in the system for a stale signature, because its whole readership is people with no way to tell it is wrong. It lands in artifacts, so the one staleness test that covers --help and the templates covers this too.

NODE and REPO are placeholders the node substitutes for its own base URL and the repository being read. They are spelled in capitals so that a page which somehow escapes substitution reads as obviously unfinished rather than as an address somebody might try.