original_docstring: 
      Generate API documentation + run Sphinx.
  
      :param ctx:
      
docstring: Generate API documentation + run Sphinx.
docstring_tokens: Generate API documentation + run Sphinx .
code: def make_doc(ctx):
      """
      Generate API documentation + run Sphinx.
  
      :param ctx:
      """
  
      # ctx.run("cp README.rst api-docs-source/index.rst")
      ctx.run("cp CHANGES.rst api-docs-source/changelog.rst")
  
      with cd("api-docs-source"):
          ctx.run("rm maml.*.rst", warn=True)
          ctx.run("sphinx-apidoc --separate -P -d 7 -o . -f ../maml")
          ctx.run("rm maml*.tests.*rst", warn=True)
          for f in glob.glob("maml*.rst"):
              newoutput = []
              with open(f, "r") as fid:
                  for line in fid:
                      if re.search("maml.*\._.*", line):
                          continue
                      else:
                          newoutput.append(line)
  
              with open(f, "w") as fid:
                  fid.write("".join(newoutput))
          ctx.run("rm maml*._*.rst")
  
      ctx.run("rm -r docs", warn=True)
  
      ctx.run("sphinx-build -b html api-docs-source docs")
  
      # ctx.run("cp _static/* ../docs/html/_static", warn=True)
  
      with cd("docs"):
          ctx.run("rm -r .doctrees", warn=True)
  
          # This makes sure maml.org works to redirect to the Github page
          ctx.run('echo "maml.ai" > CNAME')
          # Avoid the use of jekyll so that _dir works as intended.
          ctx.run("touch .nojekyll")
code_tokens: def make_doc ( ctx ) : ctx . run ( "cp CHANGES.rst api-docs-source/changelog.rst" ) with cd ( "api-docs-source" ) : ctx . run ( "rm maml.*.rst" , warn = True ) ctx . run ( "sphinx-apidoc --separate -P -d 7 -o . -f ../maml" ) ctx . run ( "rm maml*.tests.*rst" , warn = True ) for f in glob . glob ( "maml*.rst" ) : newoutput = [ ] with open ( f , "r" ) as fid : for line in fid : if re . search ( "maml.*\._.*" , line ) : continue else : newoutput . append ( line ) with open ( f , "w" ) as fid : fid . write ( "" . join ( newoutput ) ) ctx . run ( "rm maml*._*.rst" ) ctx . run ( "rm -r docs" , warn = True ) ctx . run ( "sphinx-build -b html api-docs-source docs" ) with cd ( "docs" ) : ctx . run ( "rm -r .doctrees" , warn = True ) ctx . run ( 'echo "maml.ai" > CNAME' ) ctx . run ( "touch .nojekyll" )
short_docstring: Generate API documentation + run Sphinx.
short_docstring_tokens: Generate API documentation + run Sphinx .
comment: """
      Generate API documentation + run Sphinx.
  
      :param ctx:
      """$SEP$# ctx.run("cp README.rst api-docs-source/index.rst")$SEP$# ctx.run("cp _static/* ../docs/html/_static", warn=True)$SEP$# This makes sure maml.org works to redirect to the Github page$SEP$# Avoid the use of jekyll so that _dir works as intended.