#| export
WORDS_TO_SNAKE_WITH_UPPERCASE = re.compile(
r'[A-Z]?[a-z]+' # A possible uppercase followed by lowercase letters
r'|[A-Z]{2,}(?=[A-Z][a-z]|\d|\W|$)' # Two or more consecutive uppercase letters
r'|\d+' # One or more digits
r'|[A-Z]{2,}' # Two or more consecutive uppercase letters
r'|[A-Z]$' # Uppercase letter at end of string
)
#| hide
import nbdev; nbdev.nbdev_export()
Problem Statement
Above doesn't really generate any documentation
Now we could add an 00__init__.ipynb file with a #| default_exp cons.__init__
to try and get around this.
Let's say I have a notebook
00_cons.ipynb
Which contains some constants (maybe some compiled regex expressions, or maybe just some default values)Example Notebook
00_cons.ipynb
Constants
Named Literals
Meta-Data Keys
Regex Expressions
Problem Statement
Above doesn't really generate any documentation Now we could add an
00__init__.ipynb
file with a#| default_exp cons.__init__
to try and get around this.None of these work well.
Will yield
See #1313 . As
show_doc
doesn't work withNotes
, etc