Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/contentlayerdev/website

Contentlayer Website
https://github.com/contentlayerdev/website

Last synced: 27 days ago
JSON representation

Contentlayer Website

Awesome Lists containing this project

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