Skip to content

Commit

Permalink
pathify before absoluteify
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Nov 6, 2019
1 parent d2e3e06 commit 62ce19f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tocify.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ class Tocify {
// `anchor`: Adds anchor (if needed)
assign(item, anchorize(item.source))

// `source`: Takes care of relative (../) paths
assign(item, absolutify(item.source, this.docs))

// `source`: Handle OS specific paths
assign(item, pathify(item.source))

// `source`: Takes care of relative (../) paths
assign(item, absolutify(item.source, this.docs))

if (this.sources[item.source]) {
// If this same item exists before, reuse its URL and stuff
const previous = this.sources[item.source]
Expand Down

0 comments on commit 62ce19f

Please sign in to comment.