Skip to content

Commit 3df5b9d

Browse files
authored
Merge pull request #327 from tcmitchell/317-documentation
Fix a documentation example
2 parents 0dfcf97 + 888537f commit 3df5b9d

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
# html_theme = 'alabaster'
5656
html_theme = 'sphinx_rtd_theme'
5757

58+
pygments_style = 'sphinx'
59+
5860
# Add any paths that contain custom static files (such as style sheets) here,
5961
# relative to this directory. They are copied after the builtin static files,
6062
# so a file named "default.css" will overwrite the builtin "default.css".

docs/getting_started.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -333,19 +333,19 @@ Some SBOL objects point to other objects by way of URI references. For example,
333333
334334
>>> eyfp_gene = ComponentDefinition('EYFPGene', BIOPAX_DNA)
335335
>>> seq = Sequence('EYFPSequence', 'atgnnntaa', SBOL_ENCODING_IUPAC)
336-
>>> eyfp_gene.sequence = seq
337-
>>> print (eyfp_gene.sequence)
338-
'http://sbols.org/Sequence/EYFPSequence/1.0.0'
336+
>>> eyfp_gene.sequences = seq
337+
>>> print(eyfp_gene.sequences)
338+
['http://examples.org/Sequence/EYFPSequence/1']
339339
340340
.. end
341341
342-
Note that assigning the ``seq`` object to the ``eyfp_gene.sequence`` actually results in assignment of the object's URI. An equivalent assignment is as follows:
342+
Note that assigning the ``seq`` object to the ``eyfp_gene.sequences`` actually results in assignment of the object's URI. An equivalent assignment is as follows:
343343

344344
.. code:: python
345345
346-
>>> eyfp_gene.sequence = seq.identity
347-
>>> print (eyfp_gene.sequence)
348-
'http://sbols.org/Sequence/EYFPSequence/1.0.0'
346+
>>> eyfp_gene.sequences = seq.identity
347+
>>> print (eyfp_gene.sequences)
348+
['http://examples.org/Sequence/EYFPSequence/1']
349349
350350
.. end
351351

0 commit comments

Comments
 (0)