Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ def format_doc_line(line):
# Bold the <arg>: part of each line
line = re.sub(r"\+ ([0-9a-z_\/\*]+)(.*)", r"+ **\1**\2", line)

# Strip the first 4 characters (first indent from docstring)
return line[4:]
# Python's __doc__ attribute already dedents docstrings, so we don't need to strip anything
return line
1 change: 1 addition & 0 deletions scripts/generate_arguments_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def build_arguments_doc():

if arguments_title_doc:
lines.append(cleandoc(arguments_title_doc))
lines.append("")

lines.append(
""".. list-table::
Expand Down
14 changes: 7 additions & 7 deletions src/pyinfra/facts/crontab.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ class Crontab(FactBase[CrontabFile]):
# or CrontabFile.to_json()
[
{
command: "/path/to/command",
minute: "*",
hour: "*",
month: "*",
day_of_month: "*",
day_of_week: "*",
"command": "/path/to/command",
"minute": "*",
"hour": "*",
"month": "*",
"day_of_month": "*",
"day_of_week": "*",
},
{
"command": "echo another command
"command": "echo another command",
"special_time": "@daily",
}
]
Expand Down