-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate documentation pages for each Pattern subclass #35
Comments
We can use the following regex and
Using this gets us class PSequence(Pattern):
""" Sequence: Sequence of values based on an array
Takes an input list, and repeats the items in this list.
>>> p = PSeq([ 1, 2, 3, 5 ])
>>> p.nextn(10)
[1, 2, 3, 5, 1, 2, 3, 5, 1, 2, 3, 5, 1, 2, 3, 5]
""" Which can then be formatted as the following: PSequenceSequence: Sequence of values based on an array Takes an input list, and repeats the items in this list.
The main point where I'm having issue is in how the code should be formatted (either using > indents or removing those and surrounding them with ``` blocks), and also how to deal with titles, since some documentation starts with the pattern name (like the above starting with |
There aren't too many instances of it, but when there are comments for init args, they look to be in the format of: Args:
initial_value (float or int): Initial value
step (float or int): Maximum value to increase or decrease by each step
min (float or int): Minimum permitted value
min (float or int): Maximum permitted value Would this be the standard to stick to and work around or would you want to change the comment formatting before pushing the doc changes? |
Happy to keep these as-is for now and address in a future change :) |
Got this working with the current args formatting and also made the index page push out to |
No description provided.
The text was updated successfully, but these errors were encountered: