-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sitefile.yaml
223 lines (200 loc) · 7.63 KB
/
Sitefile.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
sitefile: 0.0.7-dev
date: 2020-09-25
datetime: 2020-11-28T02:57:22
version: v0.0.2-13-g4f21809
dateversion: v0.0.2-13-g4f21809:2020-11-28
port: 4508
config:
body-class: ok-diagram
downstream: [] # Grant sitefile derefs to these remote sites
upstream: [] # Grant CORS access from these hosts
paths: # Additional router include paths
routers_replace: false
routers:
- 'sitefile:app/ok-sdk/router'
routes: # Simple router instances
favicon.ico: static:/srv/htdocs-local/media/image/icon/favicon-file-text-o-7986cb.ico
'': redir:main
main: redir:select
index: redir:readme
# Serve documentation
ReadMe: docutils.rst2html:ReadMe.rst
ChangeLog: docutils.rst2html:CHANGELOG
Copying: docutils.rst2html:COPYING
_doc: docutils.rst2html:doc/*.rst
_doc_dev: docutils.rst2html:doc/dev/*.rst
# Setup okudagram views (ok-sdk "app"; no r.js only pain HTML+CSS links)
select: pug:app/ok-sdk/view/select.pug
forms: pug:app/ok-sdk/view/layout/forms.pug
base-form-1: redir:forms?data=base/form-1
base-form-2: redir:forms?data=base/form-2
base-form-3: redir:forms?data=base/form-3
base-form-4: redir:forms?data=base/form-4
lcarssdk-src/: static:lib/lcars-sdk/
lcarssdk/: static:lib/lcars-sdk/lcarssdk/
interfaces/: static:lib/lcars-sdk/interfaces/
# extra styling for LCARS SDK okudagram views
base.css: sass:app/ok-sdk/style/style.sass
base-theme.css: sass:app/ok-sdk/style/theme.sass
lcarssdk-fonts.css: static:app/ok-sdk/style/lcarssdk-fonts.css
fonts/Swiss_911_Extra_Compressed_BT.woff: static:public/media/fonts/Swiss_911_Extra_Compressed_BT.woff
fonts/Swiss_911_Ultra_Compressed_BT.woff: static:public/media/fonts/Swiss_911_Ultra_Compressed_BT.woff
fonts: static:lib/lcars-sdk/lcarssdk/fonts
# correct case for one lib
lcarssdk/addons/levelbar/levelbar.css: redir:lcarssdk/addons/levelBar/levelBar.css
# Secondary resource with oku docs view... also based on ok-sdk PUG tpl
app/ok-docs/main: pug:app/ok-docs-v0/view/main.pug
app/ok-docs/doc001: pug:app/ok-docs-v0/view/doc001.pug
app/ok-docs/doc002: pug:app/ok-docs-v0/view/doc002.pug
app/ok-docs/doc003: pug:app/ok-docs-v0/view/doc003.pug
ok-docs: pug:app/ok-docs-v0/view/main.pug
todo.json: todo.json:./TODO.txt
todo.txt: todo.txt:./TODO.txt
todo: todo:./TODO.txt
# FIXME:
file: file:TODO.txt
# include large set of package name - CDN version mappings from Sitefile
vendor/:package.:format: http.vendor:cdn.json
npm/packages/: 'static:{,sitefile:}node_modules/'
# Setup for require.js app
app: 'static:{app,sitefile:lib/sitefile/client}'
'r:app/(.*).sass.css': sass:sitefile-lib:client/
'r:app/(.*).pug.html': pug:sitefile-lib:client/
app/ok-docs-v0.json: rjs.config:paths=$ref:sitefile:cdn.json#/js/http/packages;shim=$ref:sitefile:cdn-deps.json#/shim;deps=["css","cs!ok-docs-v0/main"];baseUrl=/app;map=$ref:var/sitefile/cdn-deps.json#/map
#app/ok-docs-v0.json: rjs.config:paths=$ref:sitefile:cdn.json#/js/http/packages;baseUrl=/app;shim=$ref:sitefile:cdn-deps.json#/shim;deps=["css","text","cs!ok-docs-v0"];map=$ref:var/sitefile/cdn-deps.json#/map;hbars={"extension":".hbs"}
app/ok-docs-v0.js: rjs.main:app/ok-docs-v0.json
#app/ok-docs-v0.coffee: pug:app/ok-docs.pug
#app/ok-docs-v0: pug:app/ok-docs-v0.pug
app/ok-todo-v0.json: rjs.config:paths=$ref:sitefile:cdn.json#/js/http/packages;shim=$ref:sitefile:cdn-deps.json#/shim;deps=["css","cs!ok-todo-v0/main"];baseUrl=/app;map=$ref:var/sitefile/cdn-deps.json#/map
app/ok-todo-v0.js: rjs.main:app/ok-todo-v0.json
# TODO-12: develop basic terminal forms into layouts templates merged with metadata
#prototype.yaml: @var/ok-sdk/layout/prototype.yaml#/forms/form-0-a-1-1
#prototype.json: :var/ok-sdk/layout/prototype.yaml
'r:var/ok-sdk/layout/(.*).css': sass:var/ok-sdk/layout/
'r:var/ok-sdk/repro/(.*).css': sass:var/ok-sdk/repro/
media/image: static:public/media/image
options:
local: # Options per route instances
select:
merge:
stylesheets:
- url: "/lcarssdk/css/lcarssdk.css"
id: "lcarssdk"
- url: "/base-theme.css"
id: "ok-sdk-theme"
- url: "/base.css"
id: "ok-sdk-css"
disabled: true
scripts:
#$ref: '#/defs/scripts/default'
$ref: '#/defs/scripts/lcarssdk'
forms:
route:
import-query: ['merge.data', 'merge.formDataFile']
merge:
stylesheets:
- url: "/lcarssdk/css/lcarssdk.css"
id: "lcarssdk"
disabled: true
- url: "/base.css"
id: "ok-sdk-css"
scripts:
$ref: '#/options/local/select/merge/scripts'
# 'todo':
# pug:
# merge:
# clients:
# $ref: '#/defs/app/todo/clients'
# 'ok-docs':
# pug:
# merge:
# clients:
# $ref: '#/defs/app/base/clients'
global: # Options per router instance
docutils:
$ref: '#/options/global/rst2html'
rst2html:
link_stylesheets: true
flags:
- "--no-toc-backlinks"
- '--field-name-limit=0'
scripts:
$ref: '#/defs/scripts/default'
stylesheets:
$ref: '#/defs/stylesheets/default'
pug:
insert-local: ['require', 'lodash', 'lorem-ipsum']
compile:
pretty: false
merge:
meta:
$ref: '#/defs/app/base/meta'
scripts: []
#$ref: '#/defs/scripts/lcarssdk'
stylesheets:
$ref: '#/defs/stylesheets/default'
clients:
$ref: '#/defs/app/base/clients'
defs: # Storage for custom structures here
scripts:
default:
- /vendor/jquery.js
- /vendor/jquery-ui.js
- /vendor/jquery-terminal.js
- /vendor/coffee-script.js
- /vendor/jq-console.js
- /vendor/bootstrap.js
- /vendor/bootstrap-table.js
#- /lcarssdk/js/jquery.js
lcarssdk:
- /vendor/jquery.js
#- /lcarssdk/js/webviewinfo.js
#- /lcarssdk/js/arrive.js
#- /lcarssdk/js/lcarssdk.js
#- /lcarssdk/addons/scrollbutton/scrollbutton.js
#- /lcarssdk/addons/levelBar/levelBar.js
#- /lcarssdk/templates/bracket/bracket.js
#- /lcarssdk/templates/dialog/dialog.js
#- /lcarssdk/templates/framing/framing.js
#- /lcarssdk/templates/button/button.js
#- /npm/packages/color-tween/dist/color-tween.min.js
stylesheets:
default: []
#- url: /vendor/jquery-ui.css
#- url: /vendor/jquery-terminal.css
#- url: /vendor/bootstrap.css
#- url: /vendor/bootstrap-theme.css
#- url: /vendor/bootstrap-table.css
lcarssdk:
- url: "/lcarssdk/css/lcarssdk.css"
#- url: "/lcarssdk/addons/scrollbutton/scrollbutton.css"
#- url: "/lcarssdk/addons/levelBar/levelBar.css"
#- url: "/lcarssdk/templates/bracket/bracket.css"
#- url: "/lcarssdk/templates/dialog/dialog.css"
#- url: "/lcarssdk/templates/framing/framing.css"
#- url: "/lcarssdk/templates/button/button.css"
#- url: "/lcarssdk/themes/theme_ussNotAffiliated.css"
- url: "/base.css"
app:
base:
meta:
- description: 'Sitefile LCARS SDK dev server'
- sitefile.main: 'ok-docs'
- sitefile-client-modules:
- 'cs!ok-docs/client-modules/page'
#- 'cs!sf-v0/tilda'
- sitefile-apps: 'cs!htd-v0/page-app.coffee'
- viewport: 'width=device-width, initial-scale=.5, maximum-scale=12.0, minimum-scale=.25, user-scalable=yes'
stylesheets: []
#$ref: '#/defs/default/stylesheets'
scripts: []
# - /vendor/jquery.js
clients:
- type: require-js
href: /vendor/require.js
main: /app/ok-docs-v0.js
todo:
clients:
- type: require-js
href: /vendor/require.js
main: /app/ok-todo-v0.js