-
Notifications
You must be signed in to change notification settings - Fork 6
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
Version bump #162
Open
AtibQur
wants to merge
3
commits into
main
Choose a base branch
from
version-bump
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Version bump #162
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// TODO: make discordbutton component | ||
export { DISCORD_URL } from "@leaningtech/astro-theme/consts"; | ||
export { DISCORD_URL, VERSION } from "@leaningtech/astro-theme/consts"; |
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 |
---|---|---|
|
@@ -3,17 +3,22 @@ title: Quickstart | |
description: Getting started with CheerpX | ||
--- | ||
|
||
import { VERSION } from "@/consts.ts"; | ||
|
||
## What CheerpX Does | ||
|
||
**CheerpX is an x86 virtualization technology for running executables and operating systems entirely client-side.** Upon completing the steps below, you’ll be able to run Linux executables right within your web browser! | ||
|
||
## 1. Include CheerpX on your page | ||
|
||
No installation is needed. Simply include CheerpX by adding the following script tag in the `<head>` or at the end of the `<body>` section of your HTML: | ||
No installation is needed. Simply include CheerpX by adding the following script tag in the `<head>` or at the end of the `<body>` section of your HTML. | ||
|
||
```html | ||
<script src="https://cxrtnc.leaningtech.com/1.0.0/cx.js"></script> | ||
``` | ||
**Latest version of CheerpX:** | ||
|
||
<div style={{ margin: "0 auto", color: "#ff6347" }}> | ||
<script src=`https://cxrtnc.leaningtech.com/`{VERSION} | ||
`/cx.js`></script> | ||
</div> | ||
|
||
The CheerpX's API is stable and breaking changes can only be introduced on a new major version. All CheerpX builds are immutable so you can trust that, if your application works today, it is going to work identically forever. | ||
|
||
|
@@ -23,12 +28,13 @@ CheerpX is also available as an ES6 JavaScript module. If you prefer to use the | |
|
||
```html | ||
<script type="module"> | ||
import * as CheerpX from "https://cxrtnc.leaningtech.com/1.0.0/cx.esm.js"; | ||
// Insert the version number of CheerpX | ||
import * as CheerpX from "https://cxrtnc.leaningtech.com/{VERSION_NUMBER}/cx.esm.js"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
self.CheerpX = CheerpX; | ||
</script> | ||
``` | ||
|
||
> [!tip] | ||
> [!note] Note | ||
> When using the ES6 module version, you don't have to assign the imported `CheerpX` to the global scope. This example is intended to keep compatibility with the traditional script inclusion method used in this documentation. | ||
|
||
## 2. Create an application instance | ||
|
@@ -43,7 +49,8 @@ The example below demonstrates how to set up the file system and devices using [ | |
<head> | ||
<meta charset="utf-8" /> | ||
<title>CheerpX Getting Started</title> | ||
<script src="https://cxrtnc.leaningtech.com/1.0.0/cx.js"></script> | ||
<!-- Add CheerpX and insert the latest version number --> | ||
<script src="https://cxrtnc.leaningtech.com/{VERSION_NUMBER}/cx.esm.js"></script> | ||
<script type="module"> | ||
// The read-only disk image from Leaning Technologies' fast cloud backend | ||
const cloudDevice = await CheerpX.CloudDevice.create( | ||
|
@@ -77,7 +84,7 @@ The example below demonstrates how to set up the file system and devices using [ | |
</html> | ||
``` | ||
|
||
> [!tip] | ||
> [!note] Note | ||
> A virtual system image, such as `debian_large`, is a complete snapshot of an operating system's files and configurations. CheerpX uses this image to simulate a Linux environment within your browser, allowing it to execute applications as if they were running on a native Linux system. This example is inteded to quickly get you up-and-running using a pre-deployed disk image from our cloud backend, for a much more self-contained example please see the [Simple Executable tutorial](/docs/tutorials/simple-executable) | ||
|
||
## 3. Enable cross-origin isolation | ||
|
@@ -134,7 +141,8 @@ Now you can interact with the console to run commands. Make sure to give focus t | |
<head> | ||
<meta charset="utf-8" /> | ||
<title>CheerpX Getting Started</title> | ||
<script src="https://cxrtnc.leaningtech.com/1.0.0/cx.js"></script> | ||
<!-- Add CheerpX and insert the latest version number --> | ||
<script src="https://cxrtnc.leaningtech.com/{VERSION_NUMBER}/cx.esm.js"></script> | ||
<script type="module"> | ||
// The read-only disk image from Leaning Technologies' fast cloud backend | ||
const cloudDevice = await CheerpX.CloudDevice.create( | ||
|
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.
This is the end result, and it's quite poor
Try to get a better understanding about how the code formatting library works, there must be a way to tell the system to apply the same formatting used for ``` blocks to arbitrary blocks of HTML code