[RFC] Additional metadata for readme examples?
See original GitHub issueMight be helpful to link out to the code in readme examples.
Links would use a tag or sha to avoid taking the user to the latest changes.
- Update: This might introduce a lot of maintenance though, and I am not sure about it.
server.router.get(String, RouteHandler<ServerRequest, Toolkit>)
// Javascript Example
server.router.get('/', (request, { file }) => {
return file('./foo.jpg');
});
// Typescript Example
server.router.get('/', (request : ServerRequest, { file } : Toolkit) => {
return file('./foo.jpg');
});
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
kramdown-rfc/README.md at master - GitHub
kramdown-rfc is an additional backend to that: It allows the generation of XML2RFC XML ... The document metadata are in a short piece...
Read more >Guidance on Markdown - » RFC Editor
In general, the metadata must be supplied via supplementary means in an encapsulating protocol, format, or convention. The relationship between the content ...
Read more >RFC 7764 - Guidance on Markdown: Design Philosophies ...
In general, the metadata must be supplied via supplementary means in an encapsulating protocol, format, or convention. The relationship between the content ...
Read more >[RFC] Add Author Notes to Extension MetaData - Page 2
I was thinking of possibly a simpler alternative to what has been discussed here already. Perhaps we should just encourage extensions to ...
Read more >Attempt for an RFC for the tinylog format in the gemini space.
A Tinylog is a simple file with all "microblog" style entries to share small contents and interact with other geminauts' tinylog. ... The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Looks like my theory about
3was correct. I did a little experiment in PR #48 and changed a few of the code fences in the documentation to use “ts” instead of “js”. Now the code in those examples is clickable, presumably because it matches the language of the source code.For example, this one: https://github.com/sholladay/pogo/tree/001d8099157d3a54b542712c2371aab1d768c595#using-hdirectory-recommended
I added TSDoc comments to further improve the
deno docoutput in commit https://github.com/sholladay/pogo/commit/8fa9c0c77be12cffc8a52cc8f51ad50c13366ab4. I also updated the language of the code examples in the documentation to enable GitHub’s link-to-definition feature in commit https://github.com/sholladay/pogo/commit/4d24945730f5c4892bed90103be625e6189dd5d3.With your PR, plus those changes, I think we can probably close this issue. What do you think?
I’m open to any other suggestions for improving the documentation. The next logical step I can think of would be to have a website for the docs.