-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Sync docs with dotnet/docs-mobile@9ccd7291 (#9474)
The `docs-mobile` content has been synced with dotnet/docs-mobile@9ccd729. A `build-tools/scripts/sync-mobile-docs.ps1` script has been added to improve this workflow in the future. The default sync direction is from dotnet/android to dotnet/docs-mobile as content is typically authored in this repo first. To sync, run the following: pwsh build-tools/scripts/sync-mobile-docs.ps1 -DocsMobilePath ~/source/docs-mobile To sync content back from docs-mobile to android, run the following: pwsh build-tools/scripts/sync-mobile-docs.ps1 -DocsMobilePath ~/source/docs-mobile -SyncToAndroid
- Loading branch information
Showing
9 changed files
with
54 additions
and
34 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
param ( | ||
[string]$DocsMobilePath, | ||
[switch]$SyncToAndroid | ||
) | ||
|
||
$androidDocsPath = Join-Path -Path $PSScriptRoot -ChildPath "../../Documentation/docs-mobile" | ||
$docsMobilePath = Join-Path -Path $DocsMobilePath -ChildPath "docs/android" | ||
$sourcePath = $androidDocsPath | ||
$destinationPath = $docsMobilePath | ||
if ($SyncToAndroid) { | ||
$sourcePath = $docsMobilePath | ||
$destinationPath = $androidDocsPath | ||
} | ||
Write-Host "Syncing content from '$sourcePath' to Folder '$destinationPath'..." | ||
try { | ||
Copy-Item -Path $sourcePath\* -Destination $destinationPath -Recurse -Force | ||
Write-Output "Files copied from '$sourcePath' to '$destinationPath' successfully." | ||
} catch { | ||
Write-Error "Error copying files: $_" | ||
} |