Skip to content

Add interactive docs error template #5548

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

carltongibson
Copy link
Collaborator

Closes #5496

Adds a plain error template for DocumentationRenderer.

Previously we've not had to switch template for the error case, since both cases are presented the same. With the interactive docs we need to switch to a different template. (We do this by checking whether we have a coreapi.Document, as expected, or not.)

I've not added any styling here. For the 90% case seeing this template is a configuration error, so I've added DEBUG-only notes for explaining that.

Those that need a better template can easily override in their own projects.

We can happily take PRs improving this template, but I'd rather leave that for community input at this point.

@carltongibson carltongibson added this to the 3.7.2 milestone Oct 31, 2017
@carltongibson carltongibson force-pushed the 372/doc-error-rendering branch from 3e9f7d9 to 0fcc5f8 Compare November 6, 2017 07:55
@carltongibson carltongibson removed the request for review from tomchristie November 6, 2017 07:55
@carltongibson carltongibson merged commit 565c722 into encode:master Nov 6, 2017
@carltongibson carltongibson deleted the 372/doc-error-rendering branch November 6, 2017 08:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant