-
Notifications
You must be signed in to change notification settings - Fork 709
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
Developer documentation updates #12849
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
eceb954
Format as warning
MisRob 4355069
Consistent heading levels
MisRob 3ba70a6
Link how to import with token
MisRob b3e7706
Add mobile device guide
MisRob ed99415
Merge branch 'develop' into docs-new-howtos
MisRob 7c83079
Merge branch 'develop' into docs-new-howtos
MisRob e047e1b
Improve guidance on getting the correct URL
MisRob 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
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,48 @@ | ||
# Preview Kolibri on a mobile device | ||
|
||
_Note: This guide focuses on Kolibri as a web app rather than the Android version of Kolibri._ | ||
|
||
Some tasks may require either an actual or simulated mobile device, such as a phone or tablet. | ||
|
||
## Browser development tools | ||
|
||
Most browsers provide ways to simulate mobile devices via their development tools. These tools are generally useful for testing: | ||
|
||
- Mobile viewports | ||
- Network and CPU throttling | ||
- Touch gestures | ||
|
||
Find specific guidance for the browser you are using. | ||
|
||
## Real mobile device | ||
|
||
Since browser development tools only offer an approximation, some tasks may require you to preview Kolibri on a real mobile device. | ||
|
||
### Option 1 (recommended) | ||
|
||
1. Ensure that the mobile device you wish to use for previewing Kolibri is connected to the same local network as your computer where you run the development server. | ||
2. Run the development server with `yarn python-devserver` and `yarn run watch --write-to-disk` | ||
3. Find your computer's IP address | ||
4. Open a browser on the mobile device and navigate to your computer's IP address with port `:8000`, `http://x.x.x.x:8000`. There, you should see Kolibri. | ||
MisRob marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. tip:: | ||
In ``yarn run watch --write-to-disk`` command terminal output, you can find your computer's IP address on the line ``[webpack-dev-server] On Your Network (IPv4): http://x.x.x.x:3000/``. | ||
MisRob marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Option 2 | ||
|
||
1. Ensure that the mobile device you wish to use for previewing Kolibri is connected to the same local network as your computer where you run the development server. | ||
2. Run the development server with `yarn python-devserver` and `yarn build` | ||
3. Find your computer's IP address | ||
4. Open a browser on the mobile device and navigate to your computer's IP address with port `:8000`, `http://x.x.x.x:8000`. There, you should see Kolibri. | ||
|
||
.. warning:: | ||
When running the development server as described above, you will need to rebuild frontend assets manually using ``yarn build`` after every change. | ||
|
||
.. tip:: | ||
Rebuild frontend assets faster by rebuilding only assets related to a plugin where you currently work. For example when developing on files of the Learn plugin, after the initial ``yarn build`` run, for all subsequent rebuilds only run ``yarn exec kolibri-tools build prod -- --plugins kolibri.plugins.learn`` instead of ``yarn build``. Use ``kolibri plugin list`` to see all plugins. | ||
|
||
### Troubleshooting | ||
|
||
- If you see an indefinite Kolibri loader on your mobile device, double-check that you are not running the development server with `yarn development-hot`. Follow the steps outlined above instead. | ||
|
||
- If you cannot access Kolibri at all, check your firewall, VPN, or similar network settings. |
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
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.
This was pre-existing, but
kolibri-beta
doesn't exist any more! I think just updating this tokolibri-demo
should be fine, although BCK is currently having some difficulties, so I can't be sure!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 can update this in follow up, so as not to hold this up further!