From 291f07dcf181062d6428c5d7be944fe09eabcbad Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Wed, 21 Jun 2023 08:04:43 +0200 Subject: [PATCH] Fixed release script with new doc building mechanism. --- src/bin/release.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/bin/release.js b/src/bin/release.js index e1dbcae3d..9aafaaa58 100644 --- a/src/bin/release.js +++ b/src/bin/release.js @@ -9,6 +9,7 @@ const childProcess = require('child_process'); const log4js = require('log4js'); const path = require('path'); const semver = require('semver'); +const {exec} = require("child_process"); 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) => { try { return fs.statSync(dir).isDirectory(); @@ -168,7 +178,7 @@ try { try { console.log('Building documentation...'); - run('make docs'); + run('node ./make_docs.js'); console.log('Updating ether.github.com master branch...'); run('git pull --ff-only', {cwd: '../ether.github.com/'}); console.log('Committing documentation...');