-
Notifications
You must be signed in to change notification settings - Fork 7
Improve the binding configuration documentation #182
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
5d50cb1
to
3d0a59a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome work, thank you!
docs/src/paradox/configuration.md
Outdated
|
||
### Using Types From the Scala Native Bindings | ||
|
||
Similar to the above, the following this example shows how you can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this
should not be here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 👍
.name("stdlib") | ||
.packageName("org.example.app.stdlib") | ||
//#sbt-exclude-prefix | ||
.excludePrefix("__") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that rendered snippet does not have indent on second line:
NativeBinding(resourceDirectory.value / "stdlib.h")
.excludePrefix("__")
It can be fixed by changing comment indent:
.packageName("org.example.app.stdlib")
//#sbt-exclude-prefix
.excludePrefix("__")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also applies to build.sbt:173
3d0a59a
to
4ba6d11
Compare
Extracted from #179