Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions hosting/embedding-repls.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The query parameter `?lite=true` produces a full preview of a repl in an embed,

## Embedding on WordPress

WordPress supports oEmbed, but will only embed content from an approved whitelist of websites. Check out the [WordPress documentation](https://wordpress.org/support/article/embeds/#adding-support-for-an-oembed-enabled-site) for instructions on adding Replit to the whitelist. Once Replit is added, a repl URL formatted as `https://replit.com/@username/repl-name` will automatically embed an interactive copy of the repl in your WordPress site.
WordPress does support oEmbed, but will only embed content from an approved whitelist of websites. Check out the [WordPress documentation](https://wordpress.org/support/article/embeds/#adding-support-for-an-oembed-enabled-site) for instructions on adding Replit to the whitelist. Once Replit is added, a repl URL formatted as `https://replit.com/@username/repl-name` will automatically embed an interactive copy of the repl in your WordPress site.

## Embedding on Medium

Expand All @@ -55,9 +55,3 @@ To embed your repl on Medium, paste the repl link `https://replit.com/@username/
To embed your repl on Ghost, paste the repl link `https://replit.com/@username/repl-name` into your Ghost post. The link will automatically be converted to an interactive IDE, where you can edit and run code.

![Ghost demo](/images/repls/embed/oembed-demo.gif)

## Editing an embedded repl

If anyone edits an embedded repl, a fork will be created so that they edit their own copy. If the user is logged in to Replit in their browser, the forked repl will show up on their "My repls" dashboard.

If the owner of an embedded repl edits it, those changes will be saved to the repl and become visible to others who view the embedded repl.
2 changes: 1 addition & 1 deletion hosting/using-a-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,5 +436,5 @@ connection.close()

### Summary <a name = "v"></a>

The SQLite database provides an intuitive table format for our data that we can easily interact with by way of queries. The fact we do not need to install or configure our database makes for an easy setup, and the ability to create multiple tables and databases means we can store our data separately while being able to merge files if needed.
The SQLite database provides an intuitive table format for our data that we can use queries to interact with. The fact we do not need to install or configure our database makes for an easy setup, and the ability to create multiple tables and databases means we can store our data separately while being able to merge files if needed.

82 changes: 0 additions & 82 deletions html/html-basic.md

This file was deleted.

85 changes: 0 additions & 85 deletions html/html-elements.md

This file was deleted.

62 changes: 0 additions & 62 deletions html/html-intro.md

This file was deleted.

1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ app.get('/:category/:slug', async (req, res) => {
const { category, slug } = req.params;
render(res, category, slug)
.catch(err => {
console.log(err)
res.send(404, `
<h1>Something went wrong!</h1 >
<p>maybe you can <a href="https://replit.com/@util/replit-docs">help fix it</a></p>
Expand Down
28 changes: 28 additions & 0 deletions programming-ide/github-auth-errors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# GitHub Authentication Errors in Replit

While interacting with our Git plugin and GitHub integration, you may run into error messages that look like this.
![An error modal reading 'unable to connect to this GitHub repository'](/images/programming-ide/github-auth-errors/generic-autherror-modal.png)

This is usually the result of permission issues with the GitHub integration. Try clicking the 'Connect Replit to your GitHub Account' button first, and logging in through GitHub.

## Create New Repository errors
Errors about a lack of permissions to create new repositories usually happen when not logged into GitHub through Replit. Try clicking the 'Connect Replit to your GitHub Account' button first, and logging into GitHub.

## Push errors
Push errors commonly occur when trying to push to a repository that you don't have collaboration permissions for.

Try contacting the repository owner to add you as a collaborator. On GitHub, this can be done through navigating to the Repo, clicking `Settings`, then `Collaborators`, and adding an account under `Manage Access`.

### Branch Protection
If this modal appears with the message 'confirm that you have permission to push to [repo]', another reason could be [GitHub's branch protection feature](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches).

This feature allows repository admins to set restrictions on who and what can be pushed to certain branches: for example, only allowing PRs that have been reviewed to be pushed to a branch.

If the repository you're working with has enabled this feature, talk with your repository admin about allowing the Replit GitHub app as an exception. [The GitHub docs announcement](https://github.blog/changelog/2022-05-17-consistently-allow-github-apps-as-exceptions-to-branch-protection-rules/) has more information on how to set this up.

## Fetch and Clone errors
Fetch and Clone errors usually occur when trying to interact with a private repository, or one that you don't have view access to.

This can occur when you haven't signed into GitHub through Replit - click the 'Connect Replit to your GitHub account' first, and ensure that you allow Replit's GitHub App to have access to all the repositories that you want to edit.

Alternatively, try contacting the repository owner to add you as a collaborator on GitHub (see Push errors section for instructions.)
30 changes: 12 additions & 18 deletions sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
"name": "Using Git with Replit",
"slug": "git-with-replit"
},
{
"name": "GitHub Authentication Errors in Replit",
"slug": "github-auth-errors"
},
{
"name": "Git Commands Reference Guide",
"slug": "git-commands-reference-guide"
Expand Down Expand Up @@ -521,6 +525,14 @@
"name": "Robot NFT Part 2: Frontend",
"slug": "43-build-a-robot-nft-p2"
},
{
"name": "Smart contract oracle with Solidity",
"slug": "44-build-smart-contract-oracle"
},
{
"name": "Conway's game of life with Kaboom.js",
"slug": "45-game-of-life-kaboom"
},
{
"name": "Pinboard project part 1: HTML & CSS",
"slug": "pinboard-project-part-1"
Expand Down Expand Up @@ -606,24 +618,6 @@
"slug": "makes-js-games"
}
]
},
{
"name": "HTML Tutorials",
"slug": "html",
"contents": [
{
"name": "HTML Introduction",
"slug": "html-intro"
},
{
"name": "HTML Basic Examples",
"slug": "html-basic"
},
{
"name": "HTML Elements",
"slug": "html-elements"
}
]
}
]

Binary file added static/favicon.ico
Binary file not shown.
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.
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.
Binary file not shown.
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.
Binary file added static/images/tutorials/45-game-of-life/grid.png
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