Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/contentlayerdev/website
Contentlayer Website
https://github.com/contentlayerdev/website
Last synced: 27 days ago
JSON representation
Contentlayer Website
- Host: GitHub
- URL: https://github.com/contentlayerdev/website
- Owner: contentlayerdev
- License: mit
- Created: 2021-08-05T14:52:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T18:10:58.000Z (8 months ago)
- Last Synced: 2024-08-03T13:05:13.733Z (4 months ago)
- Language: TypeScript
- Homepage: https://www.contentlayer.dev
- Size: 12.3 MB
- Stars: 122
- Watchers: 2
- Forks: 60
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-NextJs - contentlayer.dev - [website](https://www.contentlayer.dev/) (Build with Nextjs)
- jimsghstars - contentlayerdev/website - Contentlayer Website (TypeScript)
README
# Contentlayer Website
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/contentlayerdev/website)
## Local setup
```bash
npm install
npm run dev
```Open [https://localhost:3000](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](https://website-git-new-landing-page-schick.vercel.app)
## 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