mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-06-05 21:59:15 +02:00
Fix READMEs build
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
const fs = require('fs');
|
||||
const dir = require('process').argv.slice(-1)[0];
|
||||
const readme = `${dir}/README.md`;
|
||||
const app = require('process').argv.slice(-1)[0];
|
||||
const readme = `../source/${app}/README.md`;
|
||||
if (fs.existsSync(readme)) {
|
||||
let index;
|
||||
for (const ext of ['js', 'html']) {
|
||||
const path = `${dir}/index.${ext}`;
|
||||
const path = `./${app}/index.${ext}`;
|
||||
if (fs.existsSync(path)) {
|
||||
index = path;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user