Skip to content

Commit

Permalink
Move warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adamboche committed Feb 2, 2020
1 parent 53d2ce9 commit eacccb8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Union fields for marshmallow.
* Free software: MIT license


.. include:: warning.rst

Documentation
=============

Expand Down
10 changes: 2 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import unicode_literals

import os
import pathlib


extensions = [
Expand Down Expand Up @@ -55,11 +56,4 @@
autoapi_dirs = ["../src/marshmallow_union"]


rst_prolog = """
.. warning::
Figuring out the correct field type from an untagged dump is a matter of guesswork and
can be error-prone. A more explicit approach like
https://github.com/Bachmann1234/marshmallow-polyfield/ is better. This project remains
here to avoid breaking existing software.
"""
rst_prolog = pathlib.Path(__file__).parent.parent.joinpath("warning.rst").read_text()
6 changes: 6 additions & 0 deletions warning.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. warning::

Figuring out the correct field type from an untagged dump is a matter of guesswork and
can be error-prone. A more explicit approach like
https://github.com/Bachmann1234/marshmallow-polyfield/ is better. This project remains
here to avoid breaking existing software.

0 comments on commit eacccb8

Please sign in to comment.