-
Notifications
You must be signed in to change notification settings - Fork 1
/
nanoc.yaml
172 lines (135 loc) · 4.46 KB
/
nanoc.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
text_extensions: [ 'atom', 'conf', 'css', 'erb', 'haml', 'htm', 'html', 'js', 'markdown', 'md', 'rb', 'sass', 'scss', 'tex', 'ttl', 'txt', 'xml' ]
# Config for Nanoc commands
checks: &checks
internal_links:
exclude: [ '^/blog/feed' ]
external_links:
exclude: [ 'example.org' ]
deploy:
public:
kind: rsync
dst: "lifepreserver@pentandra.com:/srv/http/lifepreserver"
options: [ '-gplPrtvz', '--delete-after', '--exclude=/logs', '--rsync-path=sudo rsync' ]
staging:
kind: rsync
dst: "vlad@rebikov.process.tree:/srv/http/lifepreserver"
options: [ '-gplPrtvz', '--delete-after' ]
prune:
auto_prune: true
exclude: [ 'logs', 'uwsgi_temp', 'scgi_temp', 'proxy_temp', 'fastcgi_temp', 'client_body_temp' ]
view:
static_root: &static_root /static
# Config for Nanoc data sources
data_sources:
- type: filesystem
content_dir: items
- type: dependencies
items_root: &meta_items_root /lifepreserver
- type : dictionaries
items_root: *meta_items_root
directories:
- 'etc/dictionaries'
supported_languages: [ 'en_US', 'en_GB', 'es_ES', 'fr_FR', 'nl_NL', 'de_DE', 'it_IT' ]
- type: tags
items_root: *meta_items_root
- type: vocabularies
items_root: *meta_items_root
prefixes_used:
standard: [ cc, ctag, dc, foaf, owl, pav, prov, rdf, rdfs, schema, sioc, skos, xhv ]
business: [ essglobal, fea, rov, vcard ]
open_graph: [ article, og, profile ]
document: [ bibo, deo, doco, fabio ]
instances: [ dbo, dbr, yago ]
technical: [ deps, doap, vann, voaf, void ]
pentandra: [ pentandra, pentandra-blog, pentandra-website ]
extra: [ essglobal-activities, essglobal-legalform, essglobal-qualifiers, essglobal-typeoflabour, sioct, xsd ]
- type: company
company_metafile: 'etc/company.yaml'
# Config for Nanoc environments
environments:
default: &default
base_url: &base_url "https://pentandra.com"
static_root: *static_root
blog: &blog
title: The Pentandra Blog
author_name: Pentandra
author_uri: *base_url
path: /blog
tags_path: /tags
archives_path: /archives
authors_path: /authors
feed_path: /blog/feed
cache:
short_urls: 'var/short_urls.yaml'
company:
page_path: /company
logo_uri: &logo_uri "https://pentandra.com/images/pentandra-logo.png"
photo_uri: *logo_uri
kind: org
erb:
trim_mode: '>'
git:
url: "https://github.com/pentandra/lifepreserver.git"
browse_url: "https://github.com/pentandra/lifepreserver"
tag_url: "https://github.com/pentandra/lifepreserver/releases/tag"
version_history_url: "https://github.com/lifepreserver/commits/master"
qrcode:
size: 25
module_size: 2
color: "#544233"
site: &site
name: Pentandra
motto: Breaking Research Barriers
recent_thoughts_limit: 5
generate_meta: true
base_url: *base_url
images_path: /images
development: &development
<<: *default
enable_output_diff: true
site: # Simplify dependencies for quicker compilation during development
<<: *site
recent_thoughts_limit: 0
generate_meta: false
context2pdf:
debug: true
trackers: [ 'graphics.locating' ]
checks:
<<: *checks
internal_links:
exclude: [ '^/blog/feed', '^/tags', '^/archives', '^/authors' ]
server:
name: 'localhost'
pid_file: 'logs/nginx.pid'
error_log: 'stderr info'
port: 3125
port_tls: 4125
tls_certificate: 'etc/certs/server.crt'
tls_certificate_key: 'etc/certs/server.key'
tls_dhparam: 'etc/certs/dhparam.pem'
static_only:
<<: *development
ignore_server_items: true
production: &production
<<: *default
require_git_tag: true # All production releases must be at a tag
output_dir: 'output_prod'
google_analytics:
code: UA-26002603-1
site: pentandra.com
hypothesis: false
production: true
server:
name: 'pentandra.com'
pid_file: '/var/run/nginx.pid'
error_log: 'logs/error.log'
port: 80
port_tls: 443
platform: 'linux'
tls_certificate: '/etc/letsencrypt/live/pentandra.com/fullchain.pem'
tls_certificate_key: '/etc/letsencrypt/live/pentandra.com/privkey.pem'
tls_trusted_certificate: '/etc/letsencrypt/live/pentandra.com/chain.pem'
tls_dhparam: '/etc/letsencrypt/live/pentandra.com/dhparam.pem'
staging:
<<: *production
require_git_tag: false