You do not have to deploy on Netlify to use Netlify CMS, but it is the fastest way to get started. I have also included instructions for deploying to GitHub Pages.
This is the fastest way to get your website going. You will initially be hosted on a random URL, but you can add your own domain name later in your "Domain settings" on Netlify.
Add base: "/name-of-your-repo/" to your docs/.vitepress/config.js file.
Run npm run deploy to deploy your to GitHub pages.
In GitHub, go to your repo settings to see a link to your deployed site. It will be something like https://username/github.io/name-of-your-repo/. You can configure a custom domain in GitHub later.
Comment créer mon clan ?
Get started
You do not have to deploy on Netlify to use Netlify CMS, but it is the fastest way to get started. I have also included instructions for deploying to GitHub Pages.
Deploy to Netlify
The best way to start is to hit this button:
This is the fastest way to get your website going. You will initially be hosted on a random URL, but you can add your own domain name later in your "Domain settings" on Netlify.
Deploy to GitHub Pages
You will need Node installed on your computer.
npm i
to install VitePress.base: "/name-of-your-repo/"
to your docs/.vitepress/config.js file.npm run deploy
to deploy your to GitHub pages.In GitHub, go to your repo settings to see a link to your deployed site. It will be something like
https://username/github.io/name-of-your-repo/
. You can configure a custom domain in GitHub later.Setup Netlify CMS
Edit the
backend
config inpublic/admin/config.yml
to point at your repo and deploy the change.Login with GitHub OAuth
You can use Netlify Identity to authenticate CMS users, but to start off, it's simplest to give yourself access with GitHub OAuth.
You should now be able to visit the /admin page on your website and login with GitHub.
Install and develop on your computer
You will need Node installed on your computer. Run these commands inside your repo to install vuepress and start a live-reloading development server:
Build and deploy
After build the folder to deploy is
docs/.vitepress/dist
Read the docs
Official VitePress guide
Netlify CMS docs
Contribute
This template is default VitePress - so please give your skills or money to the VitePress team.
Author
Pete Davis
Modify by tsutoringo