Transcript
Hey, how's it going? So we are going to do a video about how we can generate documentation and blog content and all that good stuff using Cursor and a tool called Nextra. Do sites. So let's start with one of those. Let's go with Nextra. Do sites. Um, so you can go to this by just going to www.nextra.com. It's a documentation tool, kind of similar to Mint Leafy or I forgot what the other one's called. Git Docs, I think it was or something like that. Um, but the real beauty of it is it's completely open source and you can run it through Vercel very easily. You can basically go to Documentation, Get Started and hit this Deploy. Um, you will need a Vercel account, you will need a GitHub account. Um, it takes one step and it only takes about a minute, about 60 seconds, and you can get it up and running. I'm going to assume that you're able to do this part. If you have trouble doing this part or you have issues with Git or Vercel, get in touch, we can help. Um, but we're going to jump onto the next step, which is the really interesting step.
So we're going to jump into Cursor, and this is our own documentation system that you're looking at right now. Now, every single file is an MDX file, so that's just the way that you write things. If you haven't used MDX before, you're essentially using these little hashtags as headings. So heading one, heading two. This is a paragraph. This is a paragraph. You get the idea, right? It's not super complicated. You'll get it real fast if you haven't used it before.
Um, now here's the really interesting bit. So say I'm going to build a brand new blog or I'm going to go for this blog that I'm writing at the moment, which is called Jumping Ship from WordPress. Um, what I might want to do is I might want to start writing on this. So I'm in the process of writing this thing at the minute, um, but I'm getting lazy, so I like some of this stuff and I want to talk about more things related to Sanity. So uh, give me three more features from Sanity. Check them out here. And now what we can do is this. You can do this by pressing Command K here. Uh, you can go to sanity.io, you can go look at Sanity features. Okay, so uh, in fact, you know, I'm just going to use the homepage because I'm going to be lazy. Um, press at, uh, type the URL in. Boom. Okay, so give me three more features from Sanity. Hopefully it brings brand new features and doesn't give me the same ones. More powerful features. AI assist. That's amazing. Localization support. Yeah, we haven't talked about that yet. Advanced Asset Management. Awesome, right? I've just done that with one AI prompt. So let's take that. That's great.
Um, now that is one part of this. Now the other part of this is doing something called a tone of voice guide or whatever you want to call it. Um, so this website we can actually use as our tone of voice guide. So if I copy this URL again, and I can go create a brand new one, I can say uh, Sanity Tone of Voice MDX. And what I'm going to do, I'm going to go uh, create a tone of voice guide from at and then paste Sanity's link in and we'll see what it does. This will actually write a tone of voice guide, and again we're just using the Command K at the minute. We're not going crazy, just nice simple Cursor functionality. You can see um, we have things like technical confidence with accessibility, forward thinking and innovative, direct and empowering, data-driven credibility, and you can see things like dos and don'ts. This is really nice, and this is just from one singular prompt inside of Cursor, okay?
Let's take that. Now what we can do is we can take the same document again, and what we're going to do is we're going to say oh, Jumping Ship from WordPress Sanity Edition MDX. Um, and I'm basically going to throw the same thing in and I'm going to say rewrite this using at tone of voice. Um, and this is the one I want, the blog, the Sanity tone of voice. So we have our own tone of voice, but we're going to use the one that we've just pulled from Sanity. Um, and you can see, "Transform your content strategy moving from WordPress to Sanity CMS." It sounds a lot more kind of professional uh, rather than what we write. So uh, that's kind of nice. You can see it actually working there.
Um, so this is a really cool piece of functionality because in one jump we've basically rewritten this in a certain way. It works kind of similar to how you would do something like AI translation. You're essentially just taking content and repurposing it, and that's what's really powerful inside of Cursor. Um, and the beauty of this is this completely scales. And now I know what you might be thinking, this is really cool, um, but aren't we just going to use this to rip everybody else's websites off? And you'd be right. So um, what we're going to do, we're going to see their blog and we're going to see what we can do with this. And this is again, I'm sorry, before I do this, Sanity, I hope nobody does this as soon as I've showed this. Um, but you can see uh, let's find something interesting. Um, digital transformation with structured content. So this is one, this is a really cool um, case study. Um, but you can see very quickly how I could write um, generic case study for enterprise. Okay, um, so repurpose. And I'm not saying you should do this. Before I show this uh, at um, to be another company called Acme and rewrite it using our at tone of voice. Now I'm going to use our Sanity tone of voice again, but you can see very quickly how we can pull in. It doesn't have to be other people's content. I'm only showing you other people's content because it's quite, there you go. You see um, you? I might be unleashing Pandora's Box on the marketing folks, but this is, this is really powerful for being able to basically generate content very, very quickly.
Um, obviously you want high quality content so you don't want to do what I'm just doing here. But I want to show you this as a tool to be able to generate content. But I thought I may as well address the elephant in the room that I know people are going to end up using this for. But if you are going to use this, make sure you put your own tone of voice, your own interest, your own stats, your own images, all that good stuff. Put some effort in. Um, but yeah, this is how you would essentially use Cursor as a documentation tool rather than a coding tool. Um, and again it does amazing things with prediction. So you can see very quickly if I throw another one on here, you know, content management, yeah. Oh, what's another one? API-first development. Cool. What's another one? Microservices architecture. Um, really helpful tool. Hope you get the most out of this. Don't just copy other people's work. Have a great day. Bye-bye.