Skip to content

eihabkhan2/contentlayer-website

This branch is 1 commit ahead of, 7 commits behind contentlayerdev/website:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9ed39dc · Jul 22, 2023
Jun 13, 2023
Apr 19, 2022
Apr 14, 2022
Jul 22, 2023
Jun 13, 2023
Jun 6, 2023
Jun 13, 2023
Apr 18, 2022
Mar 9, 2022
Apr 18, 2022
May 2, 2023
Jun 6, 2023
Dec 10, 2021
May 2, 2023
May 18, 2022
May 23, 2023
Jun 6, 2023
Dec 8, 2021
Dec 10, 2021
May 14, 2022
May 2, 2023
Jun 13, 2023
Jan 28, 2022
Apr 14, 2022
Mar 9, 2022
Apr 21, 2022
Jun 13, 2023

Repository files navigation

Contentlayer Website

Gitpod Ready-to-Code

Local setup

npm install
npm run dev

Open https://localhost:3000 with your browser to see the result. (Note the webserver is using a self-signed SSL certificate since HTTPS is required for the embedded Stackblitz editor to work properly.)

Live preview

Current Vercel Deployment

Generating Global Doc ID

Every document (except docs index page) has a unique eight-character global_id property. This uniquely identifies that piece of documentation and provides a seamless way to be able to reorganize documentation without worrying about 404 errors for missing redirects.

These can be automatically generated by running the following command:

node scripts/generate-page-ids.mjs

Validate that all global_id values are unique with this command:

node scripts/validate-duplicate-ids.mjs

About

Contentlayer Website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.0%
  • CSS 4.3%
  • JavaScript 0.7%