-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Partially fixes: #907 Context: https://docs.microsoft.com/en-us/dotnet/api/android.app.backup.backupagent.onrestore?view=xamarin-android-sdk-12#Android_App_Backup_BackupAgent_OnRestore_Android_App_Backup_BackupDataInput_System_Int64_Android_OS_ParcelFileDescriptor_ Context: https://docs.microsoft.com/en-us/dotnet/api/android.animation.animatorlisteneradapter.onanimationend?view=xamarin-android-sdk-12#definition Original support for the [`{@docroot}` inline Javadoc tag][0] in commit 7574f16 was a "TODO"; `{@docroot}` would expand to `[TODO: @docroot]`, resulting in documentation containing such monstrosities as: > The value of the > <a href="[TODO: @docroot]guide/topics/manifest/manifest-element.html#vcode">android:versionCode</a> > manifest attribute… Add support for the `{@docroot}` inline tag, along with grammar support for `<a href="…">…</a>` elements. This allows: <a href="{@docroot}/example/path">description</a> to be converted into: <see href="http://example.com/example/path">description</see> The value of `{@docroot}` is expanded into `XmldocSettings.DocRootValue`, which comes from the `/api/javadoc-metadata/link/@docroot` element in "Javadoc XML" created by `java-source-utils.jar` (7574f16), via the new `java-source-utils.jar --doc-root-url URL` option: java -jar java-source-utils.jar \ --doc-root-url https://developer.android.com/ \ --doc-url-prefix https://developer.android.com/reference \ --doc-url-style developer.android.com/reference@2020-Nov \ … TODO: Update the [`@(JavaSourceJar)` Build action][1] so that e.g. `%(JavaSourceJar.DocRootUrl)` item metadata will be used as the `java-source-utils.jar --doc-root-url` value. [0]: https://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#docRoot [1]: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/building-apps/build-items#javasourcejar
- Loading branch information
Showing
13 changed files
with
163 additions
and
33 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
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
12 changes: 12 additions & 0 deletions
12
src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource/XmldocSettings.cs
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,12 @@ | ||
using System; | ||
using System.Xml.Linq; | ||
|
||
namespace Java.Interop.Tools.JavaSource | ||
{ | ||
public class XmldocSettings | ||
{ | ||
public string DocRootValue { get; set; } = string.Empty; | ||
public XElement []? ExtraRemarks { get; set; } | ||
public XmldocStyle Style { get; set; } = XmldocStyle.Full; | ||
} | ||
} |
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
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
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.