build.py 438 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2023/05/02 20:50:44
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : build website or pdf book
  8. '''
  9. import os
  10. def build_pdf():
  11. '''
  12. build pdf
  13. '''
  14. os.system('gitbook pdf .')
  15. def build_web():
  16. '''
  17. build web
  18. '''
  19. os.system('gitbook build .')
  20. if __name__=='__main__':
  21. build_pdf()