-
Notifications
You must be signed in to change notification settings - Fork 23
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
Schema doesn't get built unless there is something after it #60
Comments
The only way I could reproduce this is when the yaml file has errors in it. sphinx-jsonschema will try to read a file using pyyaml. When this fails it silently falls back to json. I did notice something that could be an issue: Does your yaml file contain sequences like |
I'm so sorry for the extremely late response. Here is an example file for which this problem occurred: number: 1
additionalProperties: false
properties:
property1:
type: string
default: "property1"
description: A string
property2:
type: boolean
default: false
description: True or False |
No problem. Still I cannot replicate the problem.
and a nearly empty Please send me a complete example demonstrating the problem. I'd really like to know what is happening but I need to be able to replicate this. |
Hi, It took me a bit to replicate the problem starting from scratch. It turns out, my project uses sphinx-astropy which appears to be causing the problem. This may not be a problem you can or want to address, but in case, I will be sending an example via email. |
I have the same issue and found a workaround: It is enough to add a comment at the end, such as
|
I assume you are not using the sphinx-astropy extension? Can you produce a small sample that illustrates the problem on the current version? |
I'm still trying to construct a minimal example that can reproduce the error but it is difficult. sphinx-astropy is not used. |
So sorry. I failed trying to reproduce this problem. |
@raspe88 @lnoor I have been able to reproduce this issue. Here is an MRE! issueIt seems that the epilog is not playing nicely with The following are workarounds:
|
I was trying to include a schema (written in YAML) in my documentation (built with Sphinx), but it did not work unless there was something under the
jsonschema
directive.For example, if I put in my RST file:
only example1 would build. If the document ended with
.. jsonschema:: example1.yml
, it would not build, but if it wasit would build.
If this is not just a problem on my end, this may be something you want to fix or document.
The text was updated successfully, but these errors were encountered: