~mixxxdevelopers/mixxx/manual

2 by RJ Ryan
Initial add of an example Mixxx manual with a custom theme.
1
from fabric.api import *
2
import fabric.contrib.project as project
3
import os
4
40 by RJ Ryan
Use mixxx.org as fabfile push target.
5
PROD = 'stacktrace.org'
6
DEST_PATH = '/home/mixxx/public_html/manual/1.10'
2 by RJ Ryan
Initial add of an example Mixxx manual with a custom theme.
7
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
8
DEPLOY_PATH = os.path.join(ROOT_PATH, 'build/html')
9
10
def clean():
11
    local('make clean')
12
13
def regen():
14
    clean()
15
    local('make html')
16
17
@hosts(PROD)
18
def publish():
19
    regen()
20
    project.rsync_project(
21
        remote_dir=DEST_PATH,
22
        local_dir=DEPLOY_PATH.rstrip('/') + '/',
23
        delete=True
24
    )
25
26