Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 43d4fff

Browse files
chore(docs): update to dgeni 0.4.1 and dgeni-packages 0.10.1
Adds a new processor to identify dangling links
1 parent 409ad62 commit 43d4fff

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

docs/config/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module.exports = new Package('angularjs', [
103103

104104
computePathsProcessor.pathTemplates.push({
105105
docTypes: ['indexPage'],
106-
getPath: function() {},
106+
pathTemplate: '.',
107107
outputPathTemplate: '${id}.html'
108108
});
109109

@@ -131,6 +131,12 @@ module.exports = new Package('angularjs', [
131131
});
132132
})
133133

134+
.config(function(checkAnchorLinksProcessor) {
135+
checkAnchorLinksProcessor.base = '/';
136+
// We are only interested in docs that have an area (i.e. they are pages)
137+
checkAnchorLinksProcessor.checkDoc = function(doc) { return doc.area; };
138+
})
139+
134140

135141
.config(function(
136142
generateIndexPagesProcessor,

npm-shrinkwrap.json

+37-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)