Promoted the use of API endpoints
This commit is contained in:
parent
2cf80aae9c
commit
e83403d67d
3 changed files with 14 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ export const addEducation = (
|
||||||
if (!educationTagGroup) {
|
if (!educationTagGroup) {
|
||||||
educationTagGroup = {
|
educationTagGroup = {
|
||||||
name: "Education",
|
name: "Education",
|
||||||
tags: ["Education"],
|
tags: [],
|
||||||
};
|
};
|
||||||
redocOptions.tagGroups.push(educationTagGroup);
|
redocOptions.tagGroups.push(educationTagGroup);
|
||||||
}
|
}
|
||||||
|
|
@ -55,5 +55,8 @@ export const addEducation = (
|
||||||
document.addTag(education.institute, formatEducation(education));
|
document.addTag(education.institute, formatEducation(education));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
educationTagGroup.tags.push("Education");
|
||||||
|
document.addTag("Education", "For my complete education, take a look at the GetEducation API endpoint.");
|
||||||
|
|
||||||
return document;
|
return document;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ export const addExperiences = (
|
||||||
if (!experienceTagGroup) {
|
if (!experienceTagGroup) {
|
||||||
experienceTagGroup = {
|
experienceTagGroup = {
|
||||||
name: "Experience",
|
name: "Experience",
|
||||||
tags: ["Experience"],
|
tags: [],
|
||||||
};
|
};
|
||||||
redocOptions.tagGroups.push(experienceTagGroup);
|
redocOptions.tagGroups.push(experienceTagGroup);
|
||||||
}
|
}
|
||||||
|
|
@ -55,5 +55,11 @@ export const addExperiences = (
|
||||||
document.addTag(experience.name, formatExperience(experience));
|
document.addTag(experience.name, formatExperience(experience));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
experienceTagGroup.tags.push("Experience");
|
||||||
|
document.addTag(
|
||||||
|
"Experience",
|
||||||
|
"For my complete work experience history, take a look at the GetExperience API endpoint."
|
||||||
|
);
|
||||||
|
|
||||||
return document;
|
return document;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,7 @@ export const addSkills = (
|
||||||
.slice(0, count)
|
.slice(0, count)
|
||||||
.reduce((list, skill) => list.concat(`<li><strong>${skill.name}</strong> ${skill.description}</li>`), "");
|
.reduce((list, skill) => list.concat(`<li><strong>${skill.name}</strong> ${skill.description}</li>`), "");
|
||||||
|
|
||||||
return document.addTag("Skills", `${intro}<br/><ul>${skillList}</ul>`);
|
const outro = "For my complete skillset, take a look at the GetSkills API endpoint.";
|
||||||
|
|
||||||
|
return document.addTag("Skills", `${intro}<br/><ul>${skillList}</ul><br/>${outro}`);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue