Skip to content

documentdb/documentdb.github.io

Repository files navigation

DocumentDB Website

A modern website for DocumentDB built with Next.js and Tailwind CSS. The site features community blog posts and technical documentation, with content automatically pulled from the documentdb/docs repository during the build process.

Prerequisites for Development

  • Node.js (20 or higher)

  • 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.

Getting Started

Get started by cloning and running this repository locally.

  1. Clone this repository

  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Observe that the 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.

Contributing

We welcome contributions to improve the DocumentDB website, whether it's blog posts, bug fixes, or enhancements to the site itself.

Contributing Blog Posts

Blog posts are managed locally in this repository. Contribute directly through a pull request to this repository.

  1. Open blogs/content.yml

  2. Add your blog post entry following the format of existing posts

  3. Submit a pull request for review

Contributing Documentation & Reference Content

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/)

Content Configuration

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"]
}

Configuration options

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

Manual content operations

While content is automatically compiled during builds, you can manually trigger these operations during development:

# Clean all target directories
npm run clean:content
# Compile content from sources
npm run compile:content

Develop in GitHub Codespaces

Launch a pre-configured development environment with all dependencies installed:

Open in GitHub Codespaces

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •