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

feat(graindoc)!: Replace module attribute with docblock on module header #1647

Merged
merged 7 commits into from
Feb 2, 2023

Conversation

phated
Copy link
Member

@phated phated commented Feb 1, 2023

This removes our custom @module attribute in a docblock and instead relies on a docblock attached to the module header (hooray module anchor points!).

Also, I updated the stdlib to avoid using @module, which caught one problem with the Bigint module header which generally should be BigInt and the docs were different.

One benefit you'll noticed from the regenerated docs is that the docs produced for runtime are more accurate because we have accurate module naming in the files.

Ref #1621 (still plenty to do before it is done).

@phated phated self-assigned this Feb 1, 2023
@phated phated force-pushed the phated/graindoc-modules branch 2 times, most recently from 05566bf to 48249c1 Compare February 1, 2023 04:55
Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't say that bigint was wrong before, but that we hadn't officially decided whether it was called Bigint or BigInt, though I guess we gave it a name in the docs. We should consider updating the casing of the filename.

Excellent work here!

@phated phated merged commit 2ff9d9e into main Feb 2, 2023
@phated phated deleted the phated/graindoc-modules branch February 2, 2023 03:54
av8ta pushed a commit to av8ta/grain that referenced this pull request Apr 11, 2023
…der (grain-lang#1647)

chore(compiler): Add module_name to typedtree
chore(graindoc): Avoid catch-all case for ttop variants
chore(stdlib): Remove module attribute from module docblocks
fix(stdlib)!: Use correct casing for BigInt module name
chore(stdlib): Regenerate docs
chore(graindoc): Cleanup module name defaults & utilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants