question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Additional metadata for readme examples?

See original GitHub issue

Might 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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sholladaycommented, Jul 31, 2020

Looks like my theory about 3 was 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

1reaction
sholladaycommented, Aug 12, 2020

I added TSDoc comments to further improve the deno doc output 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found