Skip to content

Commit

Permalink
Added instructions for mac/linux users
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewkans committed Nov 7, 2024
1 parent 6b2aeb8 commit 96f875e
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions content/docs/guides/converting-wordpress-to-tina.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Migrating WordPress Content
last_edited: '2024-11-04T04:31:04.917Z'
last_edited: '2024-11-07T22:52:44.948Z'
next: ''
previous: ''
---
Expand All @@ -11,13 +11,13 @@ This guide is a walkthrough using a **WordPress to Markdown converter**, which i

Other conversion options that are not covered in this guide include:

- Using the WordPress Rest API - best for extracting the pure html for page or post content in JSON format
- Using the WPGraphQL plugin - best for cases where you want to query and extract specific data and content
* Using the WordPress Rest API - best for extracting the pure html for page or post content in JSON format
* Using the WPGraphQL plugin - best for cases where you want to query and extract specific data and content

## Prerequisites

- [Node.js](https://nodejs.org/) is installed
- You have set up a [Tina starter](https://tina.io/docs/introduction/using-starter)
* [Node.js](https://nodejs.org/) is installed
* You have set up a [Tina starter](https://tina.io/docs/introduction/using-starter)

## Getting Started

Expand Down Expand Up @@ -51,10 +51,18 @@ This creates an `output` folder that groups your posts and pages into separate f
#### Migrating Posts

1\. Navigate to your output's posts folder `output/post`, and run:
1\. Navigate to your output's posts folder `output/post`, and run in the terminal:

For MacOS/Linux:

```powershell
for file in *.txt; do mv "$file" "${file%.txt}.m"; done
```

For Windows:

```powershell
ren * *.mdx
ren *.md *.mdx
```

Which will convert your files from Markdown to MDX.
Expand All @@ -63,7 +71,7 @@ Which will convert your files from Markdown to MDX.

#### Migrating Pages

<WarningCallout body="If you are having trouble with this step, feel free to contact a developer for assistance in the chat, or through one of our community channels." />
<WarningCallout body="If you are having trouble with this step, feel free to contact a developer for assistance through one of our community channels." />

1\. Create a new folder in your Tina app's `content` folder named `wp-pages`.

Expand Down Expand Up @@ -123,7 +131,7 @@ npm run dev

## Next Steps

- Adding a coverImage field to your post schema to read the image
- Update the image links in the Markdown and MDX files to match how Tina uses them, uploads/image.png
- Making changes to the themes and any missing features from the exporter
- Take advantage of [npm packages](https://www.npmjs.com/) to replace WordPress plugins functionalities
* Adding a coverImage field to your post schema to read the image
* Update the image links in the Markdown and MDX files to match how Tina uses them, uploads/image.png
* Making changes to the themes and any missing features from the exporter
* Take advantage of [npm packages](https://www.npmjs.com/) to replace WordPress plugins functionalities

0 comments on commit 96f875e

Please sign in to comment.