Skip to content

Commit

Permalink
chore: debug ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Oct 16, 2023
1 parent 415277d commit 575424a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ html.h-100.no-js(
crossorigin="anonymous"
)
else
if isPDF || ctx.path.endsWith(".pdf")
if isPDF || ctx.path.endsWith(".pdf") || config.env === 'test'
link(
rel="stylesheet",
href=`${config.urls.web}/css/app.css`,
Expand Down
6 changes: 5 additions & 1 deletion config/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,14 @@ let developerDocs = [];
const pathToDocs = path.join(__dirname, '..', 'app', 'views', 'docs');

for (const dir of fs.readdirSync(pathToDocs, { withFileTypes: true })) {
console.log('UTILITY DIRECTORY', dir);
if (!dir.isDirectory()) continue;

// `dir.path` is not available until Node v20.1.0
if (!dir.path) dir.path = path.join(pathToDocs, dir.name);
// if (!dir.path) dir.path = path.join(pathToDocs, dir.name);
dir.path = path.join(pathToDocs, dir.name);

console.log('dir.path', dir.path);

if (!fs.existsSync(path.join(dir.path, 'index.pug'))) {
console.error('%s missing index.pug', dir.path);
Expand Down

0 comments on commit 575424a

Please sign in to comment.