File: build_html.py

package info (click to toggle)
vedo 2025.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,404 kB
  • sloc: python: 64,792; javascript: 1,932; xml: 437; sh: 139; makefile: 6
file content (19 lines) | stat: -rwxr-xr-x 809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import datetime
from vedo import __version__, printc

cmd =  "pdoc vedo -o html -t . "
cmd+= f'--footer-text "version {__version__}, rev {datetime.date.today()}." '
cmd+=  '--logo https://vedo.embl.es/images/logos/logo_vedo_simple_transp.png '
cmd+=  '--favicon https://vedo.embl.es/images/logos/favicon.svg '
printc("Generating documentation:\n", cmd, "\n..please wait", c='y')
os.system(cmd)
os.system("chmod 755 html/ -R")
printc("Done.", c='y')

printc("Move to server manually with commands:")
printc(" ls ~/Projects/StagingServer/var/www/html/vtkplotter.embl.es/autodocs/")
printc(" rm ~/Projects/StagingServer/var/www/html/vtkplotter.embl.es/autodocs/html")
printc(" mv html/ ~/Projects/StagingServer/var/www/html/vtkplotter.embl.es/autodocs/")