Closed ian-lewis-d closed 1 year ago
@ian-lewis-d Thanks for raising this issue and sorry for the late reply. I can't think of anything else than adding empty docblocks to the project before you run the update-relation-profile.sh script. Did you manage to solve this?
Here's a write-up what I suspect is happening and how I solved it: https://github.com/dbt-labs/dbt-core/issues/7464#issuecomment-1728277284
I'd recommend adding a little bit of documentation to the README within https://github.com/data-mie/dbt-profiler that adds the relevant instructions related to adding the "docs"
folder explicitly to dbt_project.yml
either via docs-paths
or model-paths
.
@dbeatty10 Thanks for doing the research and the recommendation! Would you like to contribute by writing the instructions in the README and open a PR? :)
@dbeatty10 Thanks for doing the research and the recommendation! Would you like to contribute by writing the instructions in the README and open a PR? :)
I have added the suggested docblock to my schema file.
eg:
However, when I try to generate the doc.md files I get the following error:
Documentation for 'source.dbt_test_schema.test.admin_activity' depends on doc 'dbt_profiler_results__test_admin_activity' which was not found
I'm using the
update-relation-profile.sh
script which works nicely.It looks like there is no way the generate the markdown files if the docblock is in the YAML schema file.