@task(help={<EOL>'<STR_LIT>': "<STR_LIT>",<EOL>'<STR_LIT>': "<STR_LIT>",<EOL>'<STR_LIT>': "<STR_LIT>",<EOL>})<EOL>def confluence(ctx, no_publish=False, clean=False, opts='<STR_LIT>'):
cfg = config.load()<EOL>if clean:<EOL><INDENT>ctx.run("<STR_LIT>")<EOL><DEDENT>cmd = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>cmd.extend(['<STR_LIT>', '<STR_LIT>'])  <EOL>if opts:<EOL><INDENT>cmd.append(opts)<EOL><DEDENT>cmd.extend(['<STR_LIT:.>', ctx.rituals.docs.build + '<STR_LIT>'])<EOL>if no_publish:<EOL><INDENT>cmd.extend(['<STR_LIT>'])<EOL><DEDENT>notify.info("<STR_LIT>")<EOL>with pushd(ctx.rituals.docs.sources):<EOL><INDENT>ctx.run('<STR_LIT:U+0020>'.join(cmd), pty=True)<EOL><DEDENT>
Build Sphinx docs and publish to Confluence.