forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates DocumentParser to look for docs in .sql files
Since the .sql files have macros that aren't available to the docs parser (e.g., `ref`), we can instead get the AST for the docs macros and directly read out the contents without rendering them. This assumes that when people write `docs` blocks, they don't contain to any other macros or other Jinja tomfoolery. It's hard for me to tell if that's a reasonable assumption or not. Relevant to dbt-labs#979
- Loading branch information
Jake Biesinger
committed
Oct 3, 2018
1 parent
42d6c9f
commit d276583
Showing
2 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters