Skip to content

Files

Latest commit

eb85583 · Apr 18, 2025

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 6, 2025
Apr 18, 2025
Apr 15, 2025
Apr 18, 2025
Apr 18, 2025
Apr 17, 2025
Apr 9, 2025
Feb 6, 2025
Feb 19, 2025
Mar 28, 2025
Mar 28, 2025
Feb 6, 2025
Sep 4, 2024
Feb 6, 2025
Apr 15, 2025
Mar 27, 2025
Apr 18, 2025
Feb 6, 2025
Apr 8, 2025
Apr 17, 2025
Apr 17, 2025
Apr 18, 2025
Apr 15, 2025
Feb 6, 2025
Apr 15, 2025
Mar 28, 2025
Mar 28, 2025
Mar 28, 2025
Apr 17, 2025

Dagster Docs

This is the home of the Dagster documentation. The documentation site is built using Docusaurus, a modern static website generator.


Overview of the docs

  • ./src contains custom components, styles, themes, and layouts.
  • ./docs/ contains documentation Markdown files.
  • /examples/docs_snippets/docs_snippets/ contains code examples for the documentation. Some code examples also live in /examples/ and /examples/docs_snippets/docs_snippets/.

The docs are organized into the following sections:

sidebar.ts and docusaurus.config.ts are the main configuration files for the documentation.

For formatting guidelines, see the CONTRIBUTING guide.


Installation

The site uses yarn for package management. We recommend using nvm to install the long-term-support version of Node.

nvm install --lts
yarn install

Local development

To start the local development server:

yarn start

This command starts a local development server and opens http://localhost:3050 in a browser window.

Checking for build errors

To check for broken links and other build errors, you will need to build API docs, then build the full docs site:

# build and copy API markdown files; build and copy the sphinx `objects.inv` to static/
yarn build-api-docs

# build the static site
yarn build

Note that building API docs requires you to configure Python on your system. To do this, run make dev_install as outlined in the Dagster contributing guide.

Linting

To check the documentation for formatting issues, run the following:

yarn format

Generated content

Kinds tags are generated programmatically and stored in the docs/partials/_KindsTags.md partial with the following command:

yarn rebuild-kinds-tags

Note: Most of the time, you will not need to run this command locally, since it runs on the production build.


Versioning

Previous versions of the docs site, plus an "Upcoming release" version, are made accessible through preview deployments in Vercel.

For example, https://release-1-9-13.archive.dagster-docs.io/ is hosted on the archive subdomain of dagster-docs.io where release-1-9-13 is the release branch in version control.

The "Upcoming release" version is also hosted on the archive subdomain. Its release branch is master.

These versions are accessible through the navigation bar as external links. See the conditional logic using VERCEL_ENV in docusaurus.config.ts.

To validate the dropdown menu, you can run VERCEL_ENV=preview yarn start.


Production deployment

This site is built and deployed using Vercel.

The build step in Vercel is overridden to build API documentation using the scripts/vercel-sync-api-docs.sh script; this should not be used locally.


Search

Algolia search is used for search results on the website, as configured in docusaurus.config.ts.

The following environment variables must be configured in Vercel:

  • ALGOLIA_APP_ID
  • ALGOLIA_API_KEY
  • ALGOLIA_INDEX_NAME

These variables are not loaded when process.env.ENV === 'development'.