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

Docs: hide Syntax when empty #234

Open
jeremydouglass opened this issue Sep 1, 2017 · 0 comments
Open

Docs: hide Syntax when empty #234

jeremydouglass opened this issue Sep 1, 2017 · 0 comments

Comments

@jeremydouglass
Copy link
Member

In the docs / docs generator, "Syntax" heading is getting displayed even if there is no syntax entry (or if the entry is whitespace).

We would expect that "Syntax" would not display if empty.

Here is the check on the jinja template, which may need to be expanded:

https://github.com/processing-r/Processing.R-docs-tools/blob/85aacd25c3909c14b0e402a1e7dc89a075bbb78a/templates/reference_item_template.jinja#L36

    {% if item.syntax is not none %} {# To keep lxml from yelling at us about unstable APIs #}
        <tr class=""><th scope="row">Syntax</th><td><pre>{{ item.syntax }}</pre></td></tr>
    {% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant