-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update docs #36
Comments
From your comment in #35, we have the following points we can do easily:
Regarding the BBS/BBS+ threshold part, we did not use that and wouldn't know how to correctly document it. For your last point, where you ask us what would help us, I think the following would be great, what do you think? We would be happy to take on that part, too, after we finished with the above points.
|
Hi @ineiti . I can do 2. Regarding 3, you mean splitting the README at the repo root to multiple READMEs at different sub-directories?
Can you please give an example of this? |
Hey @lovesh, I actually discussed this with Linus, so I can respond since he seems busy.. Both 2. and 3. assume using a CLI tool that generates API interface documentation from the code rather than writing it manually. This morning, I was looking at https://typedoc.org/ (for the first time), and it generated a documentation just like this https://typedoc.org/example/ but with a less good UI. What I know so far is that typedoc can import a readme file automatically, but I don't know if it can import multiple markdown files from different locations in the repo. I'm attaching a screenshot of how using typedoc looks like on my machine now: I think it can be easily hosted on github pages. |
On a related topic, I'm starting on the first point you mentioned before
and I wanted to check if this type of change would be good (for example). Basically, the current examples use the schema from the tests, but since it doesn't work outside the tests, the examples were broken. Now the question is, should all the examples now follow one specific signature scheme (BBS/BBS+/PS/..) or how do you like it to look? |
Hi @lanterno
What i understood from Linus's comment was the opposite, i.e. typedoc will somehow take the code comments (say on top of a function) and render that in a readme. Found this plugin that can generate markdown from typedoc. But either way, yes, we can host the generated docs on github.
There are themes and plugins that can help.
Yes.
Yes, we should pick one scheme say BBS+ and put a note on top saying that other schemes can be used similarly and link to the tests to show signature of functions of other schemes. |
It does both. It builds a home page from the readme, and then uses the code along with its comments to build a reference API.
Nice!
Perfect! I can do that! Do you have a preference for one of them? I like the BBS variant because it has shorter names and the differences with BBS+ will be minimal. |
Nice. Will check more.
Yes, BBS is fine. |
Sorry for the confusion. I actually meant:
Even though creating the READMEs from the code might also be nice. But I think it will get complicated to know what to update... |
@lanterno @ineiti EDIT: But the links to code from the rendered Readme at https://docknetwork.github.io/crypto-wasm-ts/ are broken because those URLs are now relative to |
Some of the code samples in the Readme are obsolete. Also, some new features aren't documented in Readme. See this and this.
The text was updated successfully, but these errors were encountered: