mirror of https://github.com/freeCodeCamp/devdocs
parent
4177026c11
commit
e5fcde09f9
@ -1,17 +1,11 @@
|
|||||||
// TODO: This file was created by bulk-decaffeinate.
|
app.templates.typePage = (type) => {
|
||||||
// Sanity-check the conversion and remove this comment.
|
return ` <h1>${type.doc.fullName} / ${type.name}</h1>
|
||||||
/*
|
|
||||||
* decaffeinate suggestions:
|
|
||||||
* DS102: Remove unnecessary code created because of implicit returns
|
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
|
|
||||||
*/
|
|
||||||
app.templates.typePage = (type) => ` <h1>${type.doc.fullName} / ${
|
|
||||||
type.name
|
|
||||||
}</h1>
|
|
||||||
<ul class="_entry-list">${app.templates.render(
|
<ul class="_entry-list">${app.templates.render(
|
||||||
"typePageEntry",
|
"typePageEntry",
|
||||||
type.entries(),
|
type.entries(),
|
||||||
)}</ul> `;
|
)}</ul> `;
|
||||||
|
};
|
||||||
|
|
||||||
app.templates.typePageEntry = (entry) =>
|
app.templates.typePageEntry = (entry) => {
|
||||||
`<li><a href="${entry.fullPath()}">${$.escape(entry.name)}</a></li>`;
|
return `<li><a href="${entry.fullPath()}">${$.escape(entry.name)}</a></li>`;
|
||||||
|
};
|
||||||
|
Loading…
Reference in new issue