-
-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSDoc #1338
Comments
Thoughts on the proposed TSdoc standard? |
Ah, TSDoc seems promising. We should consider to write docs using TSDoc. |
Can anyone help with this? :) I believe it's a good starting point for the middleware documentation. |
TypeDoc (optionally with If we need fined-grained control on how API reference would like, Faker.js is a good example (docs and its source). |
Ah, great. Faker.js docs is so cool! |
I will try to help with this but, I don't know how to run local doc(https://hono.dev/). Could you please guide me on how to run the docs in localhost? |
Then, open the link give to you |
thanks, @zisra, it turns out separate repo |
I may be able to help. $ git clone -b feat/plan-#1338-add-typedoc [email protected]:nabeken5/hono.git hono-typedoc-demo && cd hono-typedoc-demo
$ yarn
# Add a TypeDoc somewhere and add the path to that file to the entryPoints in typedoc.json
$ yarn typedoc:build
Since the VitePress root is not in honojs/hono, it seems difficult to add it directly to hono.dev. (make it monorepo...?). (@vadhe sorry if you have already proceeded. I couldn't find it) |
@nabeken5 Thanks. Hmm. I'd like to include the API docs generated into |
How about copying honojs/hono/docs/api in the GitHub Action cron for hono/website? |
no worries, I didn't continue this because it separate repo |
Hmmm, this is difficult because there are few issues. 1If
In 2
1 can be solved by rewriting it in GitHub Action. Please advise. |
@nabeken5 Please hold off for a while as I'd like to give this some thought. Our main purpose is not creating API documentation for the website, but to write JSDoc in the code. I'm currently inclined to think that it's better to include minimal information in the source code and provide more detailed information on the website. |
I’m for. |
Hi @yusukebe |
@nabeken5 Is the current documentation, such as here, not enough? |
@yusukebe I want to split a page by function (or method) and group them by package. |
Hmm. I think we still can, so I'm not too excited about it. |
I can't code when there are no JSDocs, also the current documentation is missing a lot of things. |
I think we can start by focus on the implementation of TSDoc first, lets think about the Documentation matters later @yusukebe I'm working on this now with AI 😄 |
@fzn0x You are great! I'm also thinking our next step is focussing JS/TSDoc. At first, what we can do is write middleware docs since we already have a good document of them on the website. For example, these have docs for options: https://hono.dev/middleware/builtin/basic-auth We have to just port it. |
What is the feature you are proposing?
We haven't written JSDoc for the Hono code. I used to think that maintaining JSDoc would be troublesome, especially since we also have a website. However, now that the API is mostly stable, it's a good time to start. We don't need to write extensively in JSDoc, but including the basics would be beneficial.
The text was updated successfully, but these errors were encountered: