mirror of https://github.com/xwiki-labs/cryptpad
generate built pages in a directory that is easier to serve
This commit is contained in:
parent
0219637502
commit
2f81c6f3a0
|
@ -255,19 +255,19 @@ try {
|
|||
},
|
||||
{
|
||||
src: './customize.dist/contact.html',
|
||||
dest: './contact.html',
|
||||
dest: './www/contact.html',
|
||||
url: '/contact.html',
|
||||
title: getKey('og_contact', [instance]),
|
||||
},
|
||||
{
|
||||
src: './customize.dist/features.html',
|
||||
dest: './features.html',
|
||||
dest: './www/features.html',
|
||||
url: '/features.html',
|
||||
title: getKey((config.allow_subscriptions? 'og_pricing': 'og_features'), [instance]),
|
||||
},
|
||||
{
|
||||
src: './customize.dist/index.html',
|
||||
dest: './index.html',
|
||||
dest: './www/index.html',
|
||||
url: '/index.html',
|
||||
title: getKey('og_default'),
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
var Meta = require("../lib/metadata");
|
||||
|
||||
var lines = [
|
||||
{
|
||||
"validateKey":"TMsHGx/I5EWBqckKTq/9t/6Xjvl7IdA/IMg0ssn27BY=",
|
||||
"owners":[
|
||||
"BpL3pEyX2IlfsvxQELB9uz5qh+40re0gD6J6LOobBm8="
|
||||
],
|
||||
"channel":"771cefbdf2e62543388f1f7acb0338c1",
|
||||
"created":1628512619236
|
||||
},
|
||||
{
|
||||
"validateKey":"TMsHGx/I5EWBqckKTq/9t/6Xjvl7IdA/IMg0ssn27BY=",
|
||||
"channel":"771cefbdf2e62543388f1f7acb0338c1",
|
||||
"created":1628512619236
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
var ref = {};
|
||||
var lineHandler = Meta.createLineHandler(ref, console.log);
|
||||
|
||||
lines.forEach(line => {
|
||||
lineHandler(void 0, line);
|
||||
});
|
||||
|
||||
console.log(ref);
|
|
@ -1422,6 +1422,8 @@ define([
|
|||
|
||||
[
|
||||
'/',
|
||||
'/index.html',
|
||||
'/contact.html',
|
||||
'/code/',
|
||||
'/pad/index.html',
|
||||
].forEach(url => {
|
||||
|
@ -1456,7 +1458,7 @@ define([
|
|||
h('p', [
|
||||
link(url, url),
|
||||
' is missing several attributes which provide better previews on social media sites and messengers. ',
|
||||
"The administrator of this instance can generate them with ", code('npm run make-opengraph'), '.',
|
||||
"The administrator of this instance can generate them with ", code('npm run build'), '.',
|
||||
]),
|
||||
h('p', "Missing attributes: "),
|
||||
h('ul', missing.map(q => h('li', h('code', q)))),
|
||||
|
|
Loading…
Reference in New Issue