Skip to content

Commit

Permalink
Table of content added to js file generateMarkdown.js
Browse files Browse the repository at this point in the history
  • Loading branch information
itcreativeusa committed May 20, 2023
1 parent 8965628 commit 8f3962f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions utils/generateMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ const { error } = require("console");
// Create a function that returns the license section of README
// If there is no license, return an empty string
function renderLicenseSection(license) {
/*switch (license) {
case license == "MIT": return "The MIT License";
case "ISC": return "ISC License (ISC)";
case "UnlicenseNU": return "The Unlicense";
case "GNU GPL": return "GNU GPL v3";
}*/
if (!license) {
return "";
} else if (license == "MIT") {
Expand Down Expand Up @@ -43,7 +37,7 @@ function renderLicenseBadge(license) {
} else "";
}

// TODO: Create a function that returns the license section of README
//Create a function that returns the license section of README
// If there is no license, return an empty string
const renderTableOfContents = `- [Installation](#installation)
- [Usage](#usage)
Expand Down

0 comments on commit 8f3962f

Please sign in to comment.