This is a Next.js application generated with Create Fumadocs.
Run development server:
npm run dev
# or
pnpm dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
It is highly recommended that you learn the basics of Git and GitHub (Desktop), as well as basic HTML tagging.
You don't need to know everything; just enough to understand what fork, clone, commit, push, pull request/PR, merge, etc.
and what the words between these pointy tags <> means.
Some tools to help you get started that you may need:
- Node.js
- Visual Studio Code (or derivatives) and an MDX extension (found in the Extension Store)
- GitHub Desktop or the fork for Linux
Of course, you can supplement these tools with others that are more comfortable for you if you understand Git, but this guide will assume that you are using these tools.
To get started on contributing to the Wiki page:
- Make a fork of this repository
- Clone your fork of the repository locally
- Open a Terminal in the folder of the cloned repository
3.1. If you haven't installed Node.js, now's the time. - Run:
npm i
. This will install all necessary dependencies for the local development preview environment. - Run:
npm run dev
. This will initiate the development preview, allowing you to quickly view the changes that you've made. - Edit the following files:
In app/[lang]/layout.tsx
, under locales
, add an entry like this:
{
name: "full_language_name", // ex: English
locale: "two_letter_designation", // ex: en
},
In lib/i18n.ts
, under languages
, add the two letter designation you gave for your language.
ex.
languages: ["en", "cn", "vn", "jp", "your_language"],
Under content/
and content/install/
you will see a few .mdx files.
- To make a translation, duplicate the base files (without language codes), and edit the names to include your two-letter language code. ex.
index.vn.mdx
. - You can now edit the files and start translating! The contents that you can translate are those not inbetween these pointy brackets
<>
and anything that looks like code. If you're confused about what you can or cannot translate, feel free to give@davidscann
a ping.
To preview your translation and what they look like, save your document and go to the preview page. Note that this only works when the web server is running locally (i.e. after npm run dev
is executed.)
- To submit your translation, you must commit all of your changes to your forked repository, push all of them to remote, then send a PR to origin. We will then review and merge your changes into main, effectively deploying the translation.
Thanks for your interest in this project! We'd also like to keep in touch with you, in case the content changes or more content is added in the future (it's okay if you don't want to though).
If you have any questions, feel free to pass them to @davidscann.
To learn more about Next.js and Fumadocs, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Fumadocs - learn about Fumadocs