This repository contains the Mintlify documentation for the Source Medium dbt repository.
Documentation can be updated from the parent dbt repository (reporting_queries
) using the following steps:
-
Navigate to the parent repository root:
cd /path/to/reporting_queries
-
Run the documentation generation script:
./bin/generate_mintlify_docs.sh
-
The script will:
- Extract information from dbt's manifest and catalog files
- Convert it to Markdown files in the appropriate directories
- Commit and push changes to this repository
-
After the script finishes, update the submodule reference in the parent repository:
git add mintlify git commit -m "Update mintlify docs" git push
For making direct changes to documentation files (not generated from dbt), follow this workflow:
-
Create a new branch for your changes:
git checkout -b your-branch-name
-
Make your changes to the documentation files
-
Preview your changes locally (requires Mintlify CLI):
npm i -g mintlify # Install if not already installed mintlify dev
-
Commit and push your changes:
git add . git commit -m "Description of your changes" git push -u origin your-branch-name
-
Create a pull request using GitHub CLI:
gh pr create --title "Your PR title" --body "Description of your changes"
-
Merge the pull request:
gh pr merge <PR-NUMBER> --merge
-
After merging, don't forget to update the main repository to point to the latest version of this submodule.
-
When sending Slack notifications about documentation updates, include a link to the PR diffs:
📚 *Documentation Update*: <description> *View the updated documentation here*: <link> *See PR & Diffs*: <PR-URL>/files
This allows team members to easily view the changes made to the documentation.
models/
: Documentation for dbt modelsmacros/
: Documentation for dbt macrosseeds/
: Documentation for dbt seedssnapshots/
: Documentation for dbt snapshotsanalyses/
: Documentation for dbt analysesdata-inputs/
: Documentation for data input platformsdata-transformations/
: Documentation for data transformation processesdata-activation/
: Documentation for data activation platforms
Add new content with MDX files using this template:
---
title: "Page Title"
sidebarTitle: "Sidebar title (optional - if different from page title)"
description: "Subtitle (optional)"
---
Content goes here...
Brand settings are configured in the v2-mint.json
file, including:
- Company name
- Logo
- Favicon
- Color scheme
- Navigation structure
Documentation is automatically deployed to the Mintlify site when changes are pushed to the master branch of this repository via the GitHub workflow in .github/workflows/mintlify-docs-update.yml
.
If the GitHub workflow fails, you can manually deploy through the Mintlify dashboard.
Our documentation is available at: https://docs.sourcemedium.com/
This documentation was last tested on: March 5, 2024