Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
node_modules
package-lock.json
.idea/
.vscode/
2 changes: 1 addition & 1 deletion changelog/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mode: "wide"
## Web Editor
We've revamped our web editor so that you can now update docs with a fully WYSIWYG experience, while syncing with markdown.

Check out our [docs on getting started with Web Editor](/webeditor).
Check out our [docs on getting started with Web Editor](/web-editor).

## llms.txt
All docs instances are now automatically hosted at /llms.txt and /llms-full.txt so that LLMs can easily ingest your documentation. For more information, read the [docs on the new llms.txt standard.](https://llmstxt.org)
Expand Down
Binary file added images/editor/branches-dark.png
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 images/editor/branches-light.png
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 images/editor/edit-image-dark.png
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 images/editor/edit-image-light.png
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 images/editor/image-form-dark.png
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 images/editor/image-form-light.png
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 images/editor/image-preview-dark.png
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 images/editor/image-preview-light.png
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 images/editor/images-dark.png
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 images/editor/images-light.png
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 images/editor/mode-toggle-dark.png
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 images/editor/mode-toggle-light.png
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 images/editor/new-branch-dark.png
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 images/editor/new-branch-light.png
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 images/editor/pr-modal-dark.png
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 images/editor/pr-modal-light.png
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 images/editor/publish-button-dark.png
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 images/editor/publish-button-light.png
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 images/editor/pull-request-button-dark.png
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 images/editor/pull-request-button-light.png
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 images/editor/slash-commands-dark.png
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 images/editor/slash-commands-light.png
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 images/editor/slash-commands-text-dark.png
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 images/editor/slash-commands-text-light.png
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 images/editor/upload-dark.png
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 images/editor/upload-light.png
2 changes: 1 addition & 1 deletion mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
"pages": [
"quickstart",
"development",
"webeditor",
"settings/global",
"settings/navigation",
"web-editor",
"migration"
]
},
Expand Down
10 changes: 10 additions & 0 deletions quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ your docs.
</Note>

<AccordionGroup>
<Accordion icon="pen-to-square" title="Using the Web Editor">

**Edit your project using the Mintlify Web Editor**

See our [Web Editor documentation](/web-editor).

We recommend still reading through our [brand customization section](#customizing-your-brand-mint-json) as well.

</Accordion>

<Accordion icon="rectangle-terminal" title="Setting up Your Editing Environment">

**Edit Locally (Recommended for Developers):**
Expand Down
293 changes: 293 additions & 0 deletions web-editor.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
---
title: 'Web Editor'
description: 'Edit your docs directly from the dashboard with live previews.'
icon: 'pen-to-square'
---

<Warning>
Mintlify Web Editor is currently in beta. We are in the process of adding additional
features and fixing bugs. We'd love to get your feedback on what we can improve.

Email us at [[email protected]](mailto:[email protected])
</Warning>

Web Editor is the preferred way to edit docs directly without having to open your IDE or run `mintlify dev`.

The editor includes a few key features to integrate directly into your existing git workflow,
like creating branches, pull requests, commits, and diffs for your current changes.

It also includes a fully editable experience for changing and adding content directly,
even with custom components.

If you understand git workflows and our integrations already, you can skip to [here](#editing-content).

## Git and update workflows

### Git basics

While Web Editor means you don’t need to go to GitHub or your command line to make
changes, it’s still helpful to know the basics of git.

Git terminology:

- **Repository**: The folder in which your code lives. It can be local (on your computer) or remote (like GitHub).

- **Commit**: A snapshot of changes made to files in the repository.

- **Branch**: A separate line of development. It's a working copy of the code that allows you to work on changes without affecting the main version.

- **Pull request:** A request to merge changes from a working branch into the main branch. This is used for reviewing content before making changes live.

### Making updates

In order to make updates to your docs, we include a few buttons specifically to
integrate with your git workflow.

<Note>
If you haven't done so already, please install the Mintlify GitHub app to your GitHub account.
You can find [documentation here](#1-deploying-your-docs-repository), or you can install
the app in the [GitHub App page](https://dashboard.mintlify.com/settings/organization/github-app)
page of the dashboard.
</Note>

<Steps>
<Step title="Creating new branches">
In order to make changes to your docs, you might want to change from the main branch
to avoid publishing directly to your main docs site.

To do this, you can open the branches modal on the top left of the editor.

<Frame>
<img src="/images/editor/branches-light.png" className="block dark:hidden" />
<img src="/images/editor/branches-dark.png" className="hidden dark:block" />
</Frame>

From here, you can either switch to a different git branch than `main`, or you can
create a new branch by clicking the **"New Branch"** button.

<Frame>
<img src="/images/editor/new-branch-light.png" className="block dark:hidden" />
<img src="/images/editor/new-branch-dark.png" className="hidden dark:block" />
</Frame>

After you create a new branch, you'll automatically be switched, and all changes
you make will be made to this new branch until you change branches again or reload the page.

By default, when you load the page again, you'll default to the main branch.

<Tip>
As a best practice, you should always create a new branch to make changes so you can submit a pull request for review by other teammates. You also may not have permissions to make changes to the main branch, in which case we'll try to open a pull request for you.
</Tip>
</Step>

<Step title="Making a commit">
In order to make a commit, you have two options, both of which appear on the top
right of the editor:

<Tabs>
<Tab title="Main branch">
If you're on the main branch of your docs repository, you can push a commit
directly to the repo by clicking the **"Publish"** button. You'll see your changes
reflect in your git branch the next time you run `git pull`.

<Frame>
<img src="/images/editor/publish-button-light.png" className="block dark:hidden" />
<img src="/images/editor/publish-button-dark.png" className="hidden dark:block" />
</Frame>
</Tab>

<Tab title="Different branch">
If you're not on the main branch, you can push a commit to your branch by clicking
on the "Save changes" button. If you're ready to publish a pull request to put your branch
up for review, you can click the "Publish pull request" button.

<Frame>
<img src="/images/editor/pull-request-button-light.png" className="block dark:hidden" />
<img src="/images/editor/pull-request-button-dark.png" className="hidden dark:block" />
</Frame>
</Tab>
</Tabs>

This will create the pull request for you on GitHub using the branch you selected onto
your main branch.
</Step>

<Step title="Making a pull request">
If you do put your pull request up for review, you can edit the title and description
of the PR, but a default Mintlify title will be provided for you if you leave it
empty.

<Frame>
<img src="/images/editor/pr-modal-light.png" className="block dark:hidden" />
<img src="/images/editor/pr-modal-dark.png" className="hidden dark:block" />
</Frame>
</Step>
</Steps>

## Editing content

### Slash commands

The easiest way to add content in the editor is by using **"Slash commands"**, which are
commands you have access to after typing `/` in the **"Visual Editor"** mode:

<Frame>
<img src="/images/editor/slash-commands-light.png" className="block dark:hidden" />
<img src="/images/editor/slash-commands-dark.png" className="hidden dark:block" />
</Frame>

As you type, you'll see more options pop up:

<Frame caption="Command filtering">
<img src="/images/editor/slash-commands-text-light.png" className="block dark:hidden" />
<img src="/images/editor/slash-commands-text-dark.png" className="hidden dark:block" />
</Frame>

#### Content blocks

<AccordionGroup>
<Accordion title="Standard markdown blocks" defaultOpen={true}>
<CardGroup cols={3}>
<Card icon="paragraph" href="/text#text-formatting">Paragraph</Card>
<Card icon="heading" href="/text#titles">Headings</Card>
<Card icon="list-ul" href="/list-table#unordered-list">Bullet List</Card>
<Card icon="list-ol" href="/list-table#ordered-list">Numbered List</Card>
<Card icon="table" href="/list-table#tables">Table</Card>
<Card icon="image" href="/image-embeds">Image</Card>
<Card icon="block-quote" href="/text#blockquotes">Blockquote</Card>
</CardGroup>
</Accordion>

<Accordion title="Mintlify components" defaultOpen={true}>
<CardGroup cols={3}>
<Card icon="circle-exclamation" href="/content/components/callouts">Callouts</Card>
<Card icon="square-caret-down" href="/content/components/accordions">Accordions</Card>
<Card icon="table-rows" href="/content/components/accordion-groups">Accordion Group</Card>
<Card icon="rectangle" href="/content/components/cards">Cards</Card>
<Card icon="rectangles-mixed" href="/content/components/card-groups">Card Group</Card>
<Card icon="code" href="/content/components/code">Code Block</Card>
<Card icon="rectangle-code" href="/content/components/code-groups">Code Group</Card>
<Card icon="window-restore" href="/content/components/tabs">Tabs</Card>
<Card icon="arrow-progress" href="/content/components/steps">Steps</Card>
<Card icon="frame" href="/content/components/frames">Frames</Card>
<Card icon="rectangle-history" href="/content/components/update">Update</Card>
</CardGroup>
</Accordion>
</AccordionGroup>

### Adding images

You can add images to your page by typing `/image` and either clicking on the **"Image"**
option or hitting <kbd>↓</kbd> + <kbd>Enter</kbd> on the **"Image"** option.

This will open up the image modal where you have the option to either upload a new
image or use an existing image from the repo.

<Frame>
<img src="/images/editor/images-light.png" className="block dark:hidden" />
<img src="/images/editor/images-dark.png" className="hidden dark:block" />
</Frame>

Uploading an image can be done through the modal:

<Frame>
<img src="/images/editor/upload-light.png" className="block dark:hidden" />
<img src="/images/editor/upload-dark.png" className="hidden dark:block" />
</Frame>

And you can preview an existing image before you add it.

<Frame>
<img src="/images/editor/image-preview-light.png" className="block dark:hidden" />
<img src="/images/editor/image-preview-dark.png" className="hidden dark:block" />
</Frame>

### Editing images

In order to edit images, you just have to hover over the image to see the **"Delete"**
and **"Edit"** buttons on the top right of the image.

<Frame>
<img src="/images/editor/edit-image-light.png" className="block dark:hidden" />
<img src="/images/editor/edit-image-dark.png" className="hidden dark:block" />
</Frame>

Clicking the **"Edit"** button lets you edit the attributes of the image.

<Frame>
<img src="/images/editor/image-form-light.png" className="block dark:hidden" />
<img src="/images/editor/image-form-dark.png" className="hidden dark:block" />
</Frame>

If you want to update the source of an image to be a new image that you haven't yet
uploaded, you have to first delete the image you're changing, and then add a new one
using the [instructions above](#adding-images).

## Editor modes

In order to offer the most flexibility, the editor has three modes:

<Frame caption="View mode toggle">
<img src="/images/editor/mode-toggle-light.png" className="block dark:hidden" />
<img src="/images/editor/mode-toggle-dark.png" className="hidden dark:block" />
</Frame>

### Visual Editor

The **"Visual Editor"** is the typical WYSIWYG mode you'd see in something like Notion.
It offers you a view into your docs in a fully editable way that reflects what the final
page would look like on your main docs site.

### Source Editor

The **"Source Editor"** offers you a way to edit your MDX files in code, the same way
you'd do in your IDE. This offers less flexibility, in that our components aren't available
for auto-complete, but it does have two unique advantages.

1. It allows you to edit props of components (see our [limitations below](#current-limitations))
which is currently not available in **"Visual Editor"** mode yet.

2. It allows you to correct syntax errors which might've appeared in your repo that
might not be compatible with **"Visual Editor"** mode until you've fixed them.

### Diff View

The **"Diff View"** is a way to view the changes made to a specific document before
committing it to your repository.

This will help you see changes you've made along with formatting changes made by
the editor.

## Current limitations

We do have a few current limitations in the editor that we're working on resolving.

<AccordionGroup>
<Accordion title="Editing the props of components">
In components like `<Card>` and `<Accordion>` which have props like title, icon,
href, etc., you currently cannot edit those props without going to the **"Source Editor"**
</Accordion>

<Accordion title="WYSIWYG navigation tree">
You currently cannot live-update your navigation based on added/edited files. You
still have to manually edit renamed, added, and deleted files in your `mint.json`
</Accordion>

<Accordion title="Snippet previews">
We currently don't show any previews for custom snippets. This is on our roadmap to support
as fully editable components.
</Accordion>

<Accordion title="Keyboard navigation">
There are currently some bugs around keyboard navigation that we're working resolving.
This includes things like going back/forward and up/down between Mintlify components and normal
markdown blocks, or deleting a line vs. a Mintlify component.
</Accordion>
</AccordionGroup>

## Feedback

If you have any bug reports, feature requests, or other general feedback, we'd love to hear
where we can improve.

Email us at [[email protected]](mailto:[email protected])
58 changes: 0 additions & 58 deletions webeditor.mdx

This file was deleted.