mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-09 08:25:00 -04:00
Fixed release script with new doc building mechanism.
This commit is contained in:
parent
4ca30166b8
commit
291f07dcf1
1 changed files with 11 additions and 1 deletions
|
@ -9,6 +9,7 @@ const childProcess = require('child_process');
|
||||||
const log4js = require('log4js');
|
const log4js = require('log4js');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const semver = require('semver');
|
const semver = require('semver');
|
||||||
|
const {exec} = require("child_process");
|
||||||
|
|
||||||
log4js.replaceConsole();
|
log4js.replaceConsole();
|
||||||
|
|
||||||
|
@ -76,6 +77,15 @@ const assertUpstreamOk = (branch, opts = {}) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Check if asciidoctor is installed
|
||||||
|
exec('asciidoctor -v', (err,stdout)=>{
|
||||||
|
if (err){
|
||||||
|
console.log('Please install asciidoctor')
|
||||||
|
console.log('https://asciidoctor.org/docs/install-toolchain/')
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const dirExists = (dir) => {
|
const dirExists = (dir) => {
|
||||||
try {
|
try {
|
||||||
return fs.statSync(dir).isDirectory();
|
return fs.statSync(dir).isDirectory();
|
||||||
|
@ -168,7 +178,7 @@ try {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
console.log('Building documentation...');
|
console.log('Building documentation...');
|
||||||
run('make docs');
|
run('node ./make_docs.js');
|
||||||
console.log('Updating ether.github.com master branch...');
|
console.log('Updating ether.github.com master branch...');
|
||||||
run('git pull --ff-only', {cwd: '../ether.github.com/'});
|
run('git pull --ff-only', {cwd: '../ether.github.com/'});
|
||||||
console.log('Committing documentation...');
|
console.log('Committing documentation...');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue