This command generates static content into the `dist` directory and can be served using any static contents hosting service. You can preview the built static site using `../gradlew serve`, although we're recommend using the local development instructions locally.
**NOTE:** Assigning a value for `label:` in `sidebar.js` is not reliable, e.g.
```
{ // Don't do this
label: "Usage Guide",
type: "doc",
id: "path/to/document",
},
```
### Determine the Appropriate Sidebar Section
When adding a new document to the site, determine the appropriate sidebar section:
**What is DataHub?**
By the end of this section, readers should understand the core use cases that DataHub addresses, target end-users, high-level architecture, & hosting options.
**Get Started**
The goal of this section is to provide the bare-minimum steps required to:
This section aims to provide a deeper understanding of how ingestion works. Readers should be able to find details for ingesting from all systems, apply transformers, understand sinks, and understand key concepts of the Ingestion Framework (Sources, Sinks, Transformers, and Recipes).
**Enrich Metadata**
The purpose of this section is to provide direction on how to enrich metadata when shift-left isn’t an option.
By default, all markdown files in the repository will be included in the docs site.
However, you can exclude files by modifying the `filter_patterns` array in `generateDocsDir.ts`.
Any file that is included in our docs site should be linked to from the sidebar.
You can suppress this check by adding the path to the file in a comment in `sidebar.js`:
**Inline Code Snippets**
Use an "inline" directive to include code snippets from other files. The `show_path_as_comment` option will include the path to the file as a comment at the top of the snippet.
This process is orchestrated by a combination of Gradle and Yarn tasks. The main entrypoint is via the `docs-website:yarnGenerate` task, which in turn eventually runs `yarn run generate`.
Steps:
1. Generate the GraphQL combined schema using the gradle's `docs-website:generateGraphQLSchema` task. This generates `./graphql/combined.graphql`.