Skip to content

Commit

Permalink
fix(workflow): wrong path to build docs link.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Dec 16, 2020
1 parent fd46fd1 commit 066f54a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const template = require('jsdoc/template');

const helper = require('./templateHelper');

const rootProject = path.normalize(`${__dirname}/..`);

// globals
const outDir = path.normalize(env.opts.destination);
let view;
Expand All @@ -22,8 +24,8 @@ function find(spec) {
});
}

function linkToSource(filename, path) {
const location = path.split('itowns/')[1];
function linkToSource(filename, pathFile) {
const location = path.relative(rootProject, pathFile);
return `${location}/${filename}`;
}

Expand Down

0 comments on commit 066f54a

Please sign in to comment.