Skip to content

Commit

Permalink
Fix duplicate Examples and force reloading of custom stylesheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Meems committed Feb 18, 2019
1 parent c76424e commit 1cb314f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ generator/bin/Debug/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions
generator/bin/
generator/obj/
generator/packages/
docs/node_modules/
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@
todo_include_todos = True

def setup(app):
app.add_stylesheet('css/custom.css')
app.add_stylesheet('css/custom.css?v20190218')
2 changes: 0 additions & 2 deletions docs/source/explanation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ Generally, data should include Country and then State/Department and Municipalit

**Examples**: '2000-08-17', '1973-05-30'

**Examples**: '2000-08-17', '1973-05-30'

**Pattern**: *^[12][0-9]{3}-[01][0-9]-[0-3][0-9]$*

.. raw:: html
Expand Down
5 changes: 0 additions & 5 deletions generator/GenerateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,6 @@ private void WriteType(JObject objectProperties)
if (objectProperties.ContainsKey("minItems"))
_sb.AppendLine(" " + MakeBold("Minimum items") + ": " +
MakeItalic(objectProperties.GetValue("minItems").ToString()) + "\n");
if (objectProperties.ContainsKey("examples"))
{
if (objectProperties.GetValue("examples") is JArray examples)
_sb.AppendLine(" " + MakeBold("Examples") + ": '" + string.Join("', '", examples) + "'\n");
}
if (objectProperties.ContainsKey("items"))
{
foreach (var jToken in objectProperties.GetValue("items"))
Expand Down

0 comments on commit 1cb314f

Please sign in to comment.