Skip to content
Closed
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
34 changes: 34 additions & 0 deletions editor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,40 @@
/>
</Frame>

### Duplicate files and folders

Duplicate existing files or folders to quickly create copies with similar content or structure.

To duplicate a file or folder, click the kebab menu icon for the item you want to duplicate. Select **Duplicate** from the dropdown menu.

<Frame>
<img
src="/images/editor/duplicate-light.png"
className="block dark:hidden"
alt="Duplicate file in the visual editor."
/>

<img
src="/images/editor/duplicate-dark.png"
className="hidden dark:block"
alt="Duplicate file in the visual editor in dark mode."
/>
</Frame>

#### File duplication

When you duplicate a file, the editor creates a new file with the same content and adds a `-copied-N` suffix to the filename, where `N` is an incrementing number. For example, duplicating `quickstart.mdx` creates `quickstart-copied-1.mdx`. If you duplicate again, it creates `quickstart-copied-2.mdx`.

The duplicated file includes all the original content and is automatically added to your navigation in `docs.json`.

#### Folder duplication

When you duplicate a folder, the behavior depends on the structure of the files inside:

- **Files share a common folder**: If all files in the folder share the same parent directory (for example, `guides/getting-started/intro.mdx` and `guides/getting-started/setup.mdx`), the editor duplicates the entire folder structure. The new folder gets a `-copied-N` suffix (for example, `guides/getting-started-copied-1/`), and all file paths are updated to reflect the new folder name.

- **Files in different folders**: If files don't share a common parent directory, the editor creates individual duplicates of each file with the `-copied-N` suffix and updates the navigation accordingly.

### Organize your navigation

Edit your `docs.json` file to add new pages and remove deleted pages from your site navigation. See [Navigation](/organize/navigation) for more information on how to organize pages.
Expand Down Expand Up @@ -269,7 +303,7 @@
/>
</Frame>

If you authorize Mintlify to your GitHub user, your commits will be signed as if you had made them yourself. If not, they will be signed by the Mintlify GitHub app.

Check warning on line 306 in editor.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

editor.mdx#L306

Avoid using 'will'.

Check warning on line 306 in editor.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

editor.mdx#L306

In general, use active voice instead of passive voice ('be signed').

Check warning on line 306 in editor.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

editor.mdx#L306

Avoid using 'will'.

Check warning on line 306 in editor.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

editor.mdx#L306

In general, use active voice instead of passive voice ('be signed').

### Pull requests and reviewing changes

Expand All @@ -296,7 +330,7 @@
- Any specific areas that need review
</Step>
<Step title="Create and share">
Select **Publish Pull Request**. The editor will provide a link to view your pull request.

Check warning on line 333 in editor.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

editor.mdx#L333

Avoid using 'will'.

<Frame>
<img
Expand Down
Loading