@nox.session(name='docs-man', python='3')
@nox.parametrize('clean', [False, True])
@nox.parametrize('update', [False, True])
@nox.parametrize('compress', [False, True])
def docs_man(session, compress, update, clean):
    "\n    Build Salt's Manpages Documentation\n    "
    if _upgrade_pip_setuptools_and_wheel(session):
        requirements_file = os.path.join('requirements', 'static', 'ci', _get_pydir(session), 'docs.txt')
        install_command = ['--progress-bar=off', '-r', requirements_file]
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    os.chdir('doc/')
    if clean:
        session.run('make', 'clean', external=True)
    session.run('make', 'man', 'SPHINXOPTS=-W', external=True)
    if update:
        session.run('rm', '-rf', 'man/', external=True)
        session.run('cp', '-Rp', '_build/man', 'man/', external=True)
    if compress:
        session.run('tar', '-cJvf', 'man-archive.tar.xz', '_build/man', external=True)
    os.chdir('..')
Build Salt's Manpages Documentation
@nox.session(name='docs-man', python='3')
@nox.parametrize('clean', [False, True])
@nox.parametrize('update', [False, True])
@nox.parametrize('compress', [False, True])
def docs_man(session, compress, update, clean):
    "\n    \n    "
    if _upgrade_pip_setuptools_and_wheel(session):
        requirements_file = os.path.join('requirements', 'static', 'ci', _get_pydir(session), 'docs.txt')
        install_command = ['--progress-bar=off', '-r', requirements_file]
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    os.chdir('doc/')
    if clean:
        session.run('make', 'clean', external=True)
    session.run('make', 'man', 'SPHINXOPTS=-W', external=True)
    if update:
        session.run('rm', '-rf', 'man/', external=True)
        session.run('cp', '-Rp', '_build/man', 'man/', external=True)
    if compress:
        session.run('tar', '-cJvf', 'man-archive.tar.xz', '_build/man', external=True)
    os.chdir('..')