@power_session(python=[PY37])
def docs(session: PowerSession):
    "Generates the doc and serves it on a local http server. Pass '-- build' to build statically instead."
    session.install_reqs(phase='docs', phase_reqs=['mkdocs-material', 'mkdocs', 'pymdown-extensions', 'pygments'])
    if session.posargs:
        session.run2(('mkdocs -f ./docs/mkdocs.yml %s' % ' '.join(session.posargs)))
    else:
        session.run2('mkdocs serve -f ./docs/mkdocs.yml')
Generates the doc and serves it on a local http server. Pass '-- build' to build statically instead.
@power_session(python=[PY37])
def docs(session: PowerSession):
    
    session.install_reqs(phase='docs', phase_reqs=['mkdocs-material', 'mkdocs', 'pymdown-extensions', 'pygments'])
    if session.posargs:
        session.run2(('mkdocs -f ./docs/mkdocs.yml %s' % ' '.join(session.posargs)))
    else:
        session.run2('mkdocs serve -f ./docs/mkdocs.yml')