Skip to content

Commit

Permalink
wrap doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed Jul 12, 2023
1 parent a298ffa commit 284ae80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ Release v\ |version|.
from mincfg import MergedConfiguration, YamlFileSource
mycfg = MergedConfiguration([YamlFileSource('/etc/myapp.yaml'), YamlFileSource('~/.myapp.yaml')])
mycfg = MergedConfiguration([YamlFileSource('/etc/myapp.yaml'),
YamlFileSource('~/.myapp.yaml')])
*and more complicated things reasonably...*

.. code-block:: python
from mincfg import MergedConfiguration, YamlFileSource, OSEnvironSource, DictSource
from mincfg import MergedConfiguration, YamlFileSource,\
OSEnvironSource, DictSource
defaults = DictSource({'url': 'https://example.com',
'user': 'testuser',
Expand Down

0 comments on commit 284ae80

Please sign in to comment.