Workspace and Site
The editor sidebar has two tabs: Workspace and Site. Workspace contains pages that aren’t part of your Git repository or published site. Workspace pages save automatically and have no publish step.- Recents: Workspace pages you opened recently.
- Starred: Workspace pages you starred. To star a page, open its options menu and select Star. Stars are personal to you.
- Personal: Your private pages.
- Teamspace: Pages shared with everyone in your organization. See Teamspace.
- Shared with me: Pages that teammates shared with you directly.
- Navigation: The pages and groups in your site navigation, as defined in
docs.json. - Files: Every file in your repository that isn’t in your navigation, including images, videos, OpenAPI specs, and
docs.json.
Create a page
To create a page, click the plus button where you want it, then select New page.- Navigation section header: Adds a new page to the end of your navigation.
- A group or other navigation element: Adds a new page inside that element.
- Files section header or a folder in Files: Creates a file that isn’t in your navigation.
Edit page settings
Set a page’s title, description, and icon directly at the top of the page. Hover above the title and click Add icon to pick an icon or emoji. When a page with an icon is open, your browser tab shows that icon. For other settings, open the page’s options menu in the sidebar, or click More options in the top-right of the page, and select Page settings. The Page settings panel groups settings into sections:- URL: The page’s path and redirect URL. Changing the path moves the file.
- Navigation: Sidebar title, tag, mode, and whether the page is hidden.
- SEO & sharing: Open Graph image and keywords.
Add media
Type /image or /video to upload a file or pick one already in your repository. You can also drag files from your computer onto the page, or drag an image or video from the Files section onto the page.- Uploads save to your
images/,videos/, andfiles/folders and commit with your next publish. Before you insert an upload, you can edit its file path. - You can upload PNG, JPG, GIF, WebP, AVIF, ICO, and BMP images, MP4, WebM, and MOV videos, and PDF files. You can’t upload SVG files in the editor.
- Each upload can be up to 20 MB.
- To serve a different image in dark mode, select the image, click Edit Image, and set Dark mode image.
- Type /embed to add an embed. On the Video link tab, paste a YouTube, Loom, or Vimeo URL, or a direct link to a video file. On the Embed code tab, paste an iframe or other embed snippet.
Organize navigation
Drag elements in Navigation to reorder or nest them. The editor writes your changes todocs.json when you publish.
Some elements can’t nest inside others. Tabs can’t nest inside groups, for example. The editor prevents invalid combinations.
Add and remove pages from your navigation
Drag a page from Files into Navigation to add it at that position. Drag a folder to add it as a group. You can also select Move to navigation from a file’s options menu. To remove a page or group from your navigation without deleting its files, drag it from Navigation into Files, or select Move to files from its options menu. An undo toast appears after the move.Files
Click a file in Files to open it.- Images open in a preview. Click the image to zoom.
- Videos play in the editor.
docs.jsonopens in source mode.- Text and code files, like YAML, JSON, and CSS, open in the source editor.
- Other files, like fonts and archives, can’t be previewed in the editor.
Move a page
To move a page to a different folder, open its options menu and select Move to, or press Cmd + Shift + P (macOS) or Ctrl + Shift + P (Windows) with the page open. You can open a page’s options menu from:- More options in the top-right of an open page.
- The menu next to a page in the sidebar.
- Right-clicking a page in the sidebar.
Delete a page
To delete a page, click More options in the top-right of the page, then click Move to trash. You can also delete a page from its options menu in the sidebar. Deleting a site page removes both the file and its navigation entry. A toast with Undo appears after you delete. To remove a page from your navigation without deleting its file, select Move to files instead. Deleting a workspace page is permanent. For workspace pages, the More options menu shows Delete page. Editors and admins can delete site pages.Version history
Version history lets you compare a page with earlier saved versions and restore one. It isn’t available fordocs.json.
The editor records a new entry whenever content differs from the latest recorded version. Version history is branch-scoped. Only the current branch’s version history is available.
- Click More options in the top-right of the page, then click Version history.
- Select a version. The editor shows how the current page differs from that version.
- To restore it, click Restore this version, then confirm.
Private pages
Private pages are drafts that live in the Personal section of the Workspace tab. They stay private to you, and Mintlify doesn’t commit them to your repository. They never appear on your published site unless you move them to your site. To create a private page or folder, click the plus button on the Personal section header, then select New page or New folder. The New page button at the bottom of the Workspace tab also creates a private page. To set an icon or emoji on a workspace folder, open its options menu and select Change icon. Pick an icon from the Icons tab or an emoji from the Emojis tab, or select Remove to clear it.Share a private page
To share a private page, open it and click Share in the top bar. To share a folder, open its options menu in the sidebar and select Share. Search for teammates and choose a role for each:- Publisher: Edit, review, and publish.
- Editor: Create and edit content.
- Viewer: View content only.