Skip to content
Snippets Groups Projects
Unverified Commit 34f86069 authored by Anjan Kaur's avatar Anjan Kaur Committed by GitHub
Browse files

Merge pull request #75 from AndyOGo/bugfix/readme-links-broken

fixed broken readme links
parents 1eb7dc87 456bb2b9
Branches
Tags
No related merge requests found
......@@ -15,7 +15,7 @@ var validUrl = require('valid-url');
function relativePath(full, base) {
if (full.indexOf(base)===0) {
return full.substr(base.length).replace(/\.schema\.json$/, '');
return full.substr(base.length).replace(/\.json$/, '');
} else {
return full;
}
......
......@@ -10,6 +10,8 @@
<% _.forIn(groups, (schemas, group) => { %>
## <%= group %>
<% _.forEach(_.sortBy(schemas, [o => { return o.title }]), schema => { %>
* [<%= schema.title %>](.<%= schema.relative %>.schema.md) – `<%= schema.id %>` (<%= schema.status %>)<% }); %>
<%
const reJson = /\.json$/;
_.forEach(_.sortBy(schemas, [o => { return o.title }]), schema => { %>
* [<%= schema.title %>](.<%= schema.relative.replace(reJson, '') %>.md) – `<%= schema.id %>` (<%= schema.status %>)<% }); %>
<% }); %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment