Skip to content

Content Updates with Web Publisher

Content update? A small typo fix? No worries - Web Publisher makes this experience pleasant, including those of us who are not technical!

This page covers using Web Publisher to update your blog posts, docs, or wiki pages.

What is Web Publisher?

Web Publisher is a publishing tool that makes editing docs or blogs pleasant thanks to a realtime preview of the changes.

Editing a page in Web Publisher

To edit a page, you need to find its corresponding file on GitHub. You can do it in three ways:

"Edit in Web Publisher" button

Edit in Web Publisher button

If the page features our button, that's it! Click on it and you will be redirected to our friendly publishing tool 💕

Request the button!

If the page doesn't feature our button, you can suggest to the page admins to include it - here's our Web Publisher integration guide.

Many pages feature a link that says "Edit this page on GitHub". If that's also the case with the page you want to edit, click the link. On the page that opened, replace github.com with pr.new - and you will be redirected to Web Publisher.

In the Preview panel on the right side, open the page you want to edit. You will see the edits you introduce as you type (or with a little delay).

Through GitHub

Follow these steps:

  1. Go to the repository of the page.
  2. Find the file you want to edit. Find the "Edit" icon (of a pencil) and click on it.
  3. Replace github.com with pr.new and you will be redirected to Web Publisher.
  4. In the Preview panel on the right side, navigate to the page you want to edit.
Opening Web Publisher through GitHub

On your screen

Welcome to Web Publisher, a friendly publishing tool for content updates on blogs, docs, wikis, and other pages.

Web Publisher

Let us give you a quick tour around this tool.

Top navigation bar

Top nav bar

On the left side, you'll find the information about which file you're editing and in which repository.

On the right side, you'll find two buttons:

  • "Propose changes", which opens a dropdown with a button to "make a pull request" (which means sending the changes to the repository owner).
  • Your Profile picture, which opens a dropdown list with some usefull links:
    1. "Your profile" which opens a new browser tab with your StackBlitz profile page.
    2. "Open in Codeflow IDE" button which redirects to Codeflow IDE - it is helpful when you want to add images or work on a few files.
    3. "Edit on Github" which redirects to the file "edit" page on GitHub.
    4. "Documentation" which redirects to StackBlitz docs page.
    5. "See a bug? File an issue" which redirects to WebContainer core repository where you can file an issue describing the bug.
Profile dropdown

Editor

Editor is where you will introduce your changes - it is located on the left side or, if the expanded view is enabled, takes a whole center space.

Note that it is possible to specify in the link that Web Publisher will load with the editor on full screen.

Editor window

In the top left corner, you will see the name of the file you're editing.

Live Preview

Live Preview is where you can verify the changes you've introduced. It updates as you type (or with a little delay). It is located on the right side or, if the expanded view is enabled, takes a whole center space.

Note that it is possible to specify in the link that Web Publisher will load with the Preview on full screen.

Preview window

In the top left corner, you will see the name of the panel ("Preview") and an arrow icon that allows you to trigger a refresh if the changes you introduced are not updating.

In the top right corner, you will see three icons:

  • "Terminal" which opens a terminal window at the bottom where you can see the terminal output, including possible errors (these might be helpful when reporting an issue).
  • "Open in new tab" which opens a new browser tab with the Preview in case you want to see it full screen.
  • "Expand the view" or "Switch back to split screen" icon.

Updating the content

Use the Editor to update the content and see verify your changes look on the page in the Preview.

New to Markdown?

If the name of the edited file ends in .md, this is a Markdown file and it may feature "strange" characters. Don't worry, here's a Markdown cheatsheet that will help you decipher and use them effectively!

Submitting your changes

You've introduced the edits and you're ready to submit them for the review.

IMPORTANT:

Before you send the changes to the owner of the page, please double check the text for typos, stylistic errors, links that don't work, and so on. Make sure that your edits are top-notch and are actually helpful.

Ready to submit? Follow these steps:

  1. In the top right corner, click on the green button that reads "Propose changes".
  2. In the dropdown window, click on "Commit proposed changes". Web Publisher will "push changes", which means that your edits are being sent to GitHub. In fact, Web Publisher first creates "a fork" (which means "a copy") of the GitHub repository, saves the changes, and only then sends them to GitHub.
  3. A new browser tab will open with a form to "Open a pull request" (which means "suggest changes to the owner of the page"). Fill it out, including the description of the changes you made and explanation of your reasoning and motivation behind it. Please keep the information that the pull request was made with Web Publisher (already pre-filled).

Congratulations! You've submitted the edits 🥳

Opening Web Publisher through GitHub

Compatibility Mode

In some cases, you may notice the "Compatibility Mode on" banner.

This mode is enabled when Web Publisher is viewed on Safari. Safari currently doesn't support WebContainers, which is the technology at the basis of Web Publisher.

That being said, you can still run Web Publisher and submit Pull Requests. In this mode, Web Publisher only renders a Markdown-to-HTML conversion. Your app itself it not being run, so there is no app-specific styling, and if you’re using some kind of components in your Markdown, they won’t be compiled.