This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
forked from mozilla/uniffi-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
Generate docs when using library mode #10
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
57fe1a5
Merge branch 'mozilla:main' into main
MeerKatDev 9b6b6b5
Add doc generation to library mode bindings
skeet70 1e733fa
Merge remote-tracking branch 'upstream/main' into library-mode-doc-gen
skeet70 c1b8ce4
Fix the merge
skeet70 1e0a97e
Add guard to not chase missing files
skeet70 c422e87
Error and error variant docs
skeet70 e37c087
Checkpointing working trait method comment in tree
skeet70 83c9eb1
Trait methods and comments added to all languages
skeet70 ddd6861
Add Error variant doc gen to remaining lang
skeet70 5c3aa4a
Fix Kotlin error variant doc comments
skeet70 dcec1d1
Merge branch 'main' into library-mode-doc-gen
skeet70 b435392
Remove syn debugging traits
skeet70 9e7b7dd
Reuse new code, remove uneeded arg
skeet70 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
6 changes: 3 additions & 3 deletions
6
uniffi_bindgen/src/bindings/python/templates/EnumVariantDocsTemplate.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% match variant.documentation() -%} | ||
{% when Some with (docs) %}""" | ||
{% when Some with (docs) %}""" | ||
{% for line in docs.lines() %} {{ line }} | ||
{% endfor %} """ | ||
{%- when None %} | ||
{%- endmatch %} | ||
{%- when None %} | ||
{%- endmatch %} |
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
6 changes: 6 additions & 0 deletions
6
uniffi_bindgen/src/bindings/python/templates/ErrorVariantDocsTemplate.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% match variant.documentation() -%} | ||
{% when Some with (docs) %}""" | ||
{% for line in docs.lines() %} {{ line }} | ||
{% endfor %} """ | ||
{%- when None %} | ||
{%- endmatch %} |
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
3 changes: 3 additions & 0 deletions
3
uniffi_bindgen/src/bindings/swift/templates/ErrorTemplate.swift
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
thank you!