Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Description returns jinja as a string when trying to render Markdown #1484

Closed
AllenMCunningham opened this issue May 28, 2019 · 0 comments · Fixed by #1494
Closed
Assignees
Labels
bug Something isn't working

Comments

@AllenMCunningham
Copy link

Issue

When placing markdown into a source description, it renders as the jinja string rather than markdown.

Issue description

The jinja string in the sources description is rendered as the string in the documentation.
Schema.yml file:
image

markdown file:
image

rendered description:
image

Results

The jinja string is returned instead of rendered markdown like in models descriptions
Should render like this:
image

System information

The output of dbt --version:

installed version: 0.13.1
   latest version: 0.13.1

Up to date!

The operating system you're running on:

Windows 10

The python version you're using (probably the output of python --version)

Python 3.6.8

Steps to reproduce

create an .md doc
dummy markdown provided below:

{% docs tradein %}

### tradein sample
# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading

{% enddocs %}

in schema.yml add a source and reference the doc block created above in the description field

sources:
  - name: Amazon_Tradein
   description: '{{ doc("<name>") }}'

run

dbt docs generate

then run

dbt docs serve

and navigate to the sources description.

@drewbanin drewbanin added the bug Something isn't working label May 28, 2019
@drewbanin drewbanin added this to the Wilt Chamberlain milestone May 28, 2019
@beckjake beckjake self-assigned this May 29, 2019
beckjake added a commit that referenced this issue May 30, 2019
…ons-properly

Render source_description fields in sources (#1484)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants