old_contents: import commands
  import os
  
  
  print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JPush/"))
  print (commands.getstatusoutput("mkdocs build --clean"))
  print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JMessage/"))
  print (commands.getstatusoutput("mkdocs build --clean"))
  print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JSMS/"))
  print (commands.getstatusoutput("mkdocs build --clean"))
  print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/Index/"))
  print (commands.getstatusoutput("mkdocs build --clean"))
  
  
  
  
  
new_contents: import commands
  import os
  import time
  
  def git_pull():
      print (os.chdir("/opt/push/jpush-docs/jpush-docs/"))
      print (commands.getstatusoutput("git pull origin renew"))
  
  def set_venv():
      print (os.chdir("/opt/push/jpush-docs/"))
      print (commands.getstatusoutput(". venv/bin/activate"))
  
  def build():
      print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JPush/"))
      print (commands.getstatusoutput("mkdocs build --clean"))
      print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JMessage/"))
      print (commands.getstatusoutput("mkdocs build --clean"))
      print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JSMS/"))
      print (commands.getstatusoutput("mkdocs build --clean"))
      print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/Index/"))
      print (commands.getstatusoutput("mkdocs build --clean"))
  
  set_venv()
  
  for i in range(1,10000000):
      time.sleep(120)
      git_pull()
      build()
  
  
  
  
  
  
  
subject: add auto pull ,auto build