Skip to content
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

TactDoc: generate reference documentation for Tact source code #232

Open
novusnota opened this issue Apr 5, 2024 · 3 comments
Open

TactDoc: generate reference documentation for Tact source code #232

novusnota opened this issue Apr 5, 2024 · 3 comments
Labels
scope: dev-docs Internal documentation of the Tact compiler and the repository. (dev-docs/) scope: tooling Language tooling size: big This is a hard task, more like a project and will take a while to implement

Comments

@novusnota
Copy link
Member

novusnota commented Apr 5, 2024

Basic idea follows similar formats, see JSDoc, JavaDoc or dart doc (the tool I think it should be based off of) — to be able to write documentation comments for functions, contracts, structs, etc., such that those comments would later be used to automatically generate API documentation from.

The documentation can be generated in HTML, using a static site generator, like Starlight from Astro, which would also enable Tact users to host their docs using Github Pages right from their repos!

This can be made into a standalone repo, say tact-doc, which would provide all the necessary tooling. And then, that documentation generation tool will be included into the upcoming general Tact CLI.

@novusnota novusnota added kind: discussion Ideas that are not fully formed and require discussion ux scope: cli Tact's command-line interface (bin) labels Apr 5, 2024
@0kenx
Copy link
Contributor

0kenx commented Apr 7, 2024

Or rustdoc

@anton-trunov anton-trunov added size: big This is a hard task, more like a project and will take a while to implement scope: dev-docs Internal documentation of the Tact compiler and the repository. (dev-docs/) labels Apr 24, 2024
@anton-trunov anton-trunov changed the title Proposal: Make /**/ comments more useful by creating a TactDoc format TactDoc: doc annotations Apr 24, 2024
@anton-trunov anton-trunov changed the title TactDoc: doc annotations TactDoc: generate HTML reference documentation for Tact source code Apr 24, 2024
@anton-trunov anton-trunov changed the title TactDoc: generate HTML reference documentation for Tact source code TactDoc: generate reference documentation for Tact source code Apr 24, 2024
@anton-trunov anton-trunov added scope: tooling Language tooling and removed kind: discussion Ideas that are not fully formed and require discussion ux scope: cli Tact's command-line interface (bin) labels Apr 24, 2024
@novusnota
Copy link
Member Author

Initial prototype (using awk from GNU coreutils) was done by a community member @0kenx: https://github.com/microcosm-labs/tact-tools/tree/main/tactdoc. It's a nice first step! 🔥

@novusnota
Copy link
Member Author

Great page in Elixir docs on writing documentation, adding here for future reference in our docs and future pages, such as Effective Tact or something :)

https://hexdocs.pm/elixir/writing-documentation.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: dev-docs Internal documentation of the Tact compiler and the repository. (dev-docs/) scope: tooling Language tooling size: big This is a hard task, more like a project and will take a while to implement
Projects
None yet
Development

No branches or pull requests

3 participants