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

Recommended flow for standalone CLI documenter? #685

Open
davidgussler opened this issue Oct 15, 2024 · 2 comments
Open

Recommended flow for standalone CLI documenter? #685

davidgussler opened this issue Oct 15, 2024 · 2 comments

Comments

@davidgussler
Copy link

I came across the teroshdl-documenter-demo repo, which has some examples for generating documentation on the CLI for a CI pipeline. I would like to set up something like this, but I noticed that the standalone cloibri project, which is used by the documenter demo, has been archived and that there is a colibri directory in the main vscode-terosHDL repo. The documentor demo repo has also not been touched in 3 years.

Has the colibri project been merged with the main terosHDL project? Is there new recommended way to use the documentor on the CLI?

Thanks for your support! The documenter is a remarkable tool and I would love to be able to automate it without needing to open up VSCode to click a button.

@davidgussler davidgussler changed the title Recommended flow for standalone CLI documentor Recommended flow for standalone CLI documentor? Oct 15, 2024
@davidgussler davidgussler changed the title Recommended flow for standalone CLI documentor? Recommended flow for standalone CLI documenter? Oct 15, 2024
@monkey265
Copy link

I think that right now CLI is not supported.

$ ./bin/dev teroshdl
(node:3361844) Error Plugin: teroshdl: files attribute must be specified in /home/jcada/Downloads/teros/vscode-terosHDL/package.json
module: @oclif/[email protected]
plugin: teroshdl
root: /home/jcada/Downloads/teros/vscode-terosHDL
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
Error: command teroshdl not found
    at Config.runCommand (/home/jcada/Downloads/teros/vscode-terosHDL/node_modules/@oclif/core/lib/config/config.js:271:19)

In the colibri repo, just formatter, linter and template are usable.

 ./bin/dev teroshdl
Check errors in HDL files.

USAGE
  $ teroshdl teroshdl:COMMAND

COMMANDS
  teroshdl:formatter  Check errors in HDL files.
  teroshdl:linter     Check errors in HDL files.
  teroshdl:template   Generate HDL template from a file.

So unfortunately, it seems like documentation generation via CLI is not supported right now at all.

@monkey265
Copy link

As an alternative you can use following tools:

https://kevinpt.github.io/symbolator/
https://github.com/kevinpt/hdlparse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants