Skip to content

Commit 5f6b50d

Browse files
committed
Add isbn to doc
1 parent c3000df commit 5f6b50d

File tree

10 files changed

+8
-4
lines changed

10 files changed

+8
-4
lines changed
10 Bytes
Binary file not shown.

docs/sphinx/source/api/examples/document.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"MyBook": {
33
"title": "My life in Python",
4+
"ISBN": 123,
45
"sections": {
56
"Abstract": {
67
"paragraphs": [

docs/sphinx/source/api/examples/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Document(Base):
5252
sections: List[Section] = field(factory=list)
5353

5454

55-
doc = Document(id="MyBook")
55+
doc = Document(id="MyBook", ISBN=123)
5656
doc.title = "My life in Python"
5757

5858
a = Section(id="Abstract")

docs/sphinx/source/api/examples/document.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Document id="MyBook" title="My life in Python">
2+
<Document id="MyBook" title="My life in Python" ISBN="123">
33
<Section id="Abstract">
44
<Paragraph contents="Blah blah blah"/>
55
<Paragraph contents="Blah2"/>

docs/sphinx/source/api/examples/document.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MyBook:
22
title: My life in Python
3+
ISBN: 123
34
sections:
45
Abstract:
56
paragraphs:

examples/document.bson

10 Bytes
Binary file not shown.

examples/document.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"MyBook": {
33
"title": "My life in Python",
4+
"ISBN": 123,
45
"sections": {
56
"Abstract": {
67
"paragraphs": [

examples/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Document(Base):
5252
sections: List[Section] = field(factory=list)
5353

5454

55-
doc = Document(id="MyBook")
55+
doc = Document(id="MyBook", ISBN=123)
5656
doc.title = "My life in Python"
5757

5858
a = Section(id="Abstract")

examples/document.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Document id="MyBook" title="My life in Python">
2+
<Document id="MyBook" title="My life in Python" ISBN="123">
33
<Section id="Abstract">
44
<Paragraph contents="Blah blah blah"/>
55
<Paragraph contents="Blah2"/>

examples/document.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MyBook:
22
title: My life in Python
3+
ISBN: 123
34
sections:
45
Abstract:
56
paragraphs:

0 commit comments

Comments
 (0)