Fix sphinx warnings

This commit is contained in:
Kovid Goyal 2021-02-28 13:13:25 +05:30
parent 0be56041fb
commit a0564ea47d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -306,24 +306,20 @@ is shown by the following grammar:
and_expression ::= not_expression [ '&&' not_expression ]*
not_expression ::= ['!' not_expression]* | compare_exp
compare_expr ::= add_sub_expr [ compare_op add_sub_expr ]
compare_op ::= '==' | '!=' | '>=' | '>' | '<=' | '<' | 'in' |
'==#' | '!=#' | '>=#' | '>#' | '<=#' | '<#'
compare_op ::= '==' | '!=' | '>=' | '>' | '<=' | '<' | 'in' | '==#' | '!=#' | '>=#' | '>#' | '<=#' | '<#'
add_sub_expr ::= times_div_expr [ add_sub_op times_div_expr ]*
add_sub_op ::= '+' | '-'
times_div_expr ::= unary_op_expr [ times_div_op unary_op_expr ]*
times_div_op ::= '*' | '/'
unary_op_expr ::= [ add_sub_op unary_op_expr ]* | expression
expression ::= identifier | constant | function | assignment |
compare | if_expression | for_expression | '(' top_expression ')'
expression ::= identifier | constant | function | assignment | compare | if_expression | for_expression | '(' top_expression ')'
identifier ::= sequence of letters or ``_`` characters
constant ::= " string " | ' string ' | number
function ::= identifier '(' top_expression [ ',' top_expression ]* ')'
assignment ::= identifier '=' top_expression
if_expression ::= 'if' top_expression 'then' expression_list
[elif_expression] ['else' expression_list] 'fi'
if_expression ::= 'if' top_expression 'then' expression_list [elif_expression] ['else' expression_list] 'fi'
elif_expression ::= 'elif' top_expression 'then' expression_list elif_expression | ''
for_expression ::= 'for' identifier 'in' top_expression
[ 'separator' top_expression ] ':' expression_list 'rof'
for_expression ::= 'for' identifier 'in' top_expression [ 'separator' top_expression ] ':' expression_list 'rof'
Comments are lines with a '#' character at the beginning of the line.
@ -891,7 +887,7 @@ use 'Unknown'. We want two completely different paths, depending on the value of
To accomplish this, we:
1. Create a composite field (give it lookup name #AA) containing ``{series}/{series_index} - {title}``. If
the series is not empty, then this template will produce `series/series_index - title`.
the series is not empty, then this template will produce `series/series_index - title`.
2. Create a composite field (give it lookup name #BB) containing ``{#genre:ifempty(Unknown)}/{author_sort}/{title}``.
This template produces `genre/author_sort/title`, where an empty genre is replaced with `Unknown`.
3. Set the save template to ``{series:lookup(.,#AA,#BB)}``. This template chooses composite field #AA if series is not empty,