A modern website for DocumentDB built with Next.js for the main site and Jekyll for the /blogs/ section. The site features community blog posts and technical documentation, with content automatically pulled from the documentdb/docs repository during the build process.
-
Node.js (20 or higher)
-
Ruby with Bundler (for the Jekyll-powered blog section)
-
Git (for cloning documentation content)
You can develop locally on any machine with these prerequisites installed, or use GitHub Codespaces for a pre-configured environment.
Get started by cloning and running this repository locally.
-
Clone this repository
-
Install dependencies:
npm install
-
Install Ruby dependencies:
bundle install
-
Start the Next.js development server:
npm run dev
-
For a full static preview, including the Jekyll-powered blog section:
npm run build npm run start
-
Observe that the preview site will be available at http://localhost:3000
The first time you run npm run dev or npm run build, documentation content will be automatically compiled from the documentdb/docs repository.
We welcome contributions to improve the DocumentDB website, whether it's blog posts, bug fixes, or enhancements to the site itself.
Blog posts are managed locally in this repository. Contribute directly through a pull request to this repository.
You can publish blog content in two ways:
-
Markdown posts hosted in this repo
Add a new file under
blogs/_posts/using the Jekyll naming format:blogs/_posts/YYYY-MM-DD-my-post-title.mdStart it with front matter like:
--- title: My Blog Post description: One-line summary used in the blog card. date: 2026-03-19 featured: false author: Your Name category: documentdb-blog cover_image: /assets/images/posts/my-post-title/hero.png cover_image_alt: Short description of the image tags: - Example - Markdown ---
Store post images under:
blogs/assets/images/posts/my-post-title/Then write the post body in Markdown. Jekyll renders the post page and uses the same card layout on the blog index. Images can be referenced directly from Markdown, for example:

-
Curated external articles
Open blogs/_data/posts.yml and add a new entry following the existing YAML format when you want the card to link to an article hosted elsewhere.
-
Submit a pull request for review
Documentation articles and API reference content are managed in a separate repository. For more information, see documentdb/docs.
Important
Please refer to that repository for instructions on contributing:
- Documentation articles (
getting-started/,postgres-api/,architecture/, etc.) - API reference content (
api-reference/)
Documentation content is automatically compiled during builds from external repositories. The mapping is configured in content.config.json.
{
"sources": [
{
"repository": "https://github.com/documentdb/docs",
"branch": "main",
"mappings": [
{
"source": "api-reference",
"target": "reference"
},
{
"source": "getting-started",
"target": "articles/getting-started"
}
]
}
],
"include": ["**/*.md", "**/*.yml"],
"exclude": ["**/{readme,README}.md"]
}The content.config.json file controls how documentation is compiled from external sources into this site.
- sources - Array of repositories to clone content from. Each source includes:
- repository - Git repository URL
- branch - Git branch to clone from
- mappings - Array of source folder to target folder mappings
- include - Array of glob patterns for files to include (opt-in filtering)
- exclude - Array of glob patterns for files to exclude
While content is automatically compiled during builds, you can manually trigger these operations during development:
# Build the full static site artifact
npm run build# Start the static preview server
npm run startLaunch a pre-configured development environment with all dependencies installed:
The Codespaces environment includes:
- Node.js 20
- Git
- Visual Studio Code extensions for Markdown and YAML editing
- All npm dependencies
Simply run npm run dev after the container starts.