forked from akeneo/pim-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
69 lines (56 loc) · 1.51 KB
/
.platform.app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This file describes an application. You can have multiple applications
# in the same project.
# The name of this app. Must be unique within a project.
name: akeneodocs
# The toolstack used to build the application.
type: "python:2.7"
build:
flavor: "none"
variables:
env:
PIM_VERSION: $PLATFORM_BRANCH
PIM_VERSIONS: $PLATFORM_BRANCH
# The configuration of app when it is exposed to the web.
web:
# The public directory of the app, relative to its root.
document_root: "/build/"
index_files:
- index.html
whitelist:
- \.html$
- \.txt$
# CSS and Javascript.
- \.css$
- \.js$
- \.hbs$
# image/* types.
- \.gif$
- \.png$
- \.ico$
- \.svgz?$
# fonts types.
- \.ttf$
- \.eot$
- \.woff$
- \.otf$
# robots.txt.
- /robots\.txt$
# The size of the persistent disk of the application (in MB).
disk: 256
# Build time dependencies.
dependencies:
python:
virtualenv: 15.1.0
# The hooks that will be performed when the package is deployed.
hooks:
build: |
virtualenv .virtualenv
. .virtualenv/bin/activate
# Platform.sh currently sets PIP_USER=1.
export PIP_USER=
pip install sphinx~=1.8.5
pip install git+https://github.com/fabpot/sphinx-php.git
pip install git+https://github.com/mickaelandrieu/sphinxcontrib.youtube.git
export PIM_VERSION=$PLATFORM_BRANCH
export PIM_VERSIONS=$PLATFORM_BRANCH
sphinx-build -b html . ./build