-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add primitive types to forc-doc (#6032)
## Description Closes #5968 Adds a new "Primitive" type in the sidebar and to the search bar. The descriptions are hard coded since there is nowhere to parse the documentation from. The list of primitives is also hardcoded, so we will need to update forc-doc if/when new primitives are added to the language. Primitives will be documented show up in the side bar for any package that has implementations for a primitive. This is why it currently shows up for both std and core. Side bar nav: ![May-27-2024 16-54-34](https://github.com/FuelLabs/sway/assets/47993817/30efc6d9-43d3-455b-baac-5daf7b19955f) Search bar: ![May-27-2024 16-54-53](https://github.com/FuelLabs/sway/assets/47993817/9e988c12-f84d-4012-bd88-a646514841ce) ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
- Loading branch information
1 parent
450d13e
commit f342f52
Showing
13 changed files
with
410 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.