Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Nov 20, 2024
1 parent d478def commit 700dcff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*.{ts,js}]
indent_size = 4
indent_style = tab
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ To profile tests:
If multiple tests are run with profiling enabled, `Profiles` will appear under
the package instead of the individual test.

## Documentation Viewer (**TODO**)
![cpu-pprof](./docs/assets/cpu-pprof.png)

I plan to add an in-editor documentation viewer such that you can view
documentation for your code similar to what you would see on pkg.go.dev.
## Documentation Viewer

Go Companion provides a command and editor context menu item for rendering
package documentation. Right click a declaration in a Go file and select "Go
Companion: Render Documentation":

![doc-viewer](./docs/assets/doc-viewer.png)
Binary file added docs/assets/cpu-pprof.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/doc-viewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 700dcff

Please sign in to comment.