-
-
Notifications
You must be signed in to change notification settings - Fork 94
Mobile v2 Docs #228
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
Merged
Merged
Mobile v2 Docs #228
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
9192d51
Add mobile 2.x documentation and version switcher
shanerbaner82 6da5c5d
Add horizontal scrolling to wide tables in documentation
shanerbaner82 673125e
Update mobile 2.x documentation with API details and improvements
shanerbaner82 bbffdc9
Merge branch 'main' into mobile-v2-docs
shanerbaner82 8b598be
Merge branch 'main' into mobile-v2-docs
simonhamp c38e116
wip
simonhamp 8f1f400
wip
simonhamp 3589fd5
Bump deps
simonhamp 0cf2b44
Extract class list to element style
simonhamp 247845a
Development and Deployment
simonhamp 632a796
OnNative
simonhamp 493ff3b
Reorg
simonhamp 4e6295f
Simplify
simonhamp 968e85c
Improve
simonhamp 4efa6ea
Add version warning
simonhamp 6c8ed22
Add EDGE intro
simonhamp d8ef32a
Add image
simonhamp fe35ec8
Events
simonhamp 28718eb
Updates changelog
shanerbaner82 a8b9dd2
Remove CI/CD page (now in Deployment)
simonhamp fbf5c38
Improve EDGE intros
simonhamp 7f3960c
Reorg
simonhamp 1021473
Add JS installation docs
simonhamp 6cc85d1
Reorg
simonhamp b7bf82e
Improve
simonhamp 34ee895
EDGE
simonhamp c6cc45f
Icons
simonhamp 389c33c
OnNative
simonhamp 088513c
Fix handler example
simonhamp a887903
Security and Authentication
simonhamp 27f9b4b
Deprecation
simonhamp b815117
Cleanup
simonhamp 19b7753
Clean the changelog
simonhamp 9e1be6d
Fix Boost paragraph
simonhamp 13c5dff
Merge branch 'main' into mobile-v2-docs
simonhamp d653ca5
Remove v1 doc change
simonhamp c654181
Final tweaks (#234)
shanerbaner82 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,21 @@ | ||
| <?php | ||
|
|
||
| return [ | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | Documentation Latest Versions | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | This configuration defines the latest version for each documentation | ||
| | platform. When a user views an older version, they will see a notice | ||
| | prompting them to view the latest version. | ||
| | | ||
| */ | ||
|
|
||
| 'latest_versions' => [ | ||
| 'desktop' => 2, | ||
| 'mobile' => 2, | ||
| ], | ||
|
|
||
| ]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
47 changes: 47 additions & 0 deletions
47
resources/views/components/docs/old-version-notice.blade.php
This file contains hidden or 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,47 @@ | ||
| @props(['platform', 'version', 'page']) | ||
|
|
||
| @php | ||
| $latestVersion = config("docs.latest_versions.{$platform}"); | ||
| $isOldVersion = $latestVersion && (int) $version < (int) $latestVersion; | ||
|
|
||
| if ($isOldVersion) { | ||
| $latestPagePath = resource_path("views/docs/{$platform}/{$latestVersion}/{$page}.md"); | ||
| $targetPage = file_exists($latestPagePath) ? $page : 'getting-started/introduction'; | ||
|
|
||
| $latestUrl = route('docs.show', [ | ||
| 'platform' => $platform, | ||
| 'version' => $latestVersion, | ||
| 'page' => $targetPage, | ||
| ]); | ||
| } | ||
| @endphp | ||
|
|
||
| @if ($isOldVersion) | ||
| <div | ||
| class="mb-6 flex items-center gap-3 rounded-xl bg-amber-50 p-4 text-amber-800 ring-1 ring-amber-200 dark:bg-amber-950/50 dark:text-amber-200 dark:ring-amber-800/50" | ||
| role="alert" | ||
| > | ||
| <svg | ||
| class="size-5 shrink-0" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| viewBox="0 0 20 20" | ||
| fill="currentColor" | ||
| aria-hidden="true" | ||
| > | ||
| <path | ||
| fill-rule="evenodd" | ||
| d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z" | ||
| clip-rule="evenodd" | ||
| /> | ||
| </svg> | ||
| <p class="text-sm"> | ||
| You're viewing an older version of this documentation. | ||
| <a | ||
| href="{{ $latestUrl }}" | ||
| class="font-medium underline underline-offset-2 hover:text-amber-900 dark:hover:text-amber-100" | ||
| > | ||
| View the latest version ({{ $latestVersion }}.x) | ||
| </a> | ||
| </p> | ||
| </div> | ||
| @endif |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| --- | ||
| title: Browser | ||
| order: 150 | ||
| order: 200 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: Camera | ||
| order: 200 | ||
| order: 300 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: Device | ||
| order: 200 | ||
| order: 400 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: Dialog | ||
| order: 300 | ||
| order: 500 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: Geolocation | ||
| order: 400 | ||
| order: 600 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: Haptics | ||
| order: 500 | ||
| order: 700 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: PushNotifications | ||
| order: 600 | ||
| order: 800 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: SecureStorage | ||
| order: 700 | ||
| order: 900 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
We need context aware filtering in the algolia results. Once this is merged results from 4 versions will show up (desktop & mobile v1 + v2)