From 888dd090826af87f4794051092cc9630c9018d8e Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Wed, 16 Oct 2024 05:58:56 -0400 Subject: [PATCH] Document default for `[weekday]` --- diagrams/diagrams.py | 2 +- src/api/format-description.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/diagrams/diagrams.py b/diagrams/diagrams.py index d22b773..3e53be9 100644 --- a/diagrams/diagrams.py +++ b/diagrams/diagrams.py @@ -55,7 +55,7 @@ def __init__(self, name, diagram): 0, '1+', '1', '2', '3', '4', '5', '6', '7', '8', '9')) weekday_repr = Sequence('repr:', Choice( 0, 'long', 'short', 'sunday', 'monday')) -weekday_one_indexed = Sequence('one_indexed:', Choice(0, 'false', 'true')) +weekday_one_indexed = Sequence('one_indexed:', Choice(0, 'true', 'false')) week_number_repr = Sequence('repr:', Choice(0, 'iso', 'sunday', 'monday')) year_repr = Sequence('repr:', Choice(0, 'full', 'last_two')) year_base = Sequence('base:', Choice(0, 'calendar', 'iso_week')) diff --git a/src/api/format-description.md b/src/api/format-description.md index a9f4068..28c3b47 100644 --- a/src/api/format-description.md +++ b/src/api/format-description.md @@ -301,7 +301,7 @@ ASCII whitespace characters. the weekday's full name in English, while the short is the first three letters. There are also _sunday_ and _monday_ representations, which are numerical. These formats are either zero to six or one to seven (depending on whether `one_indexed` is false or true, respectively), with the - named day being at the start of that range. + named day being at the start of that range. The default for `one_indexed` is true. When parsing, there is the option to consume text-based formats case-insensitively.