Skip to content

Commit

Permalink
Feat: update script in js
Browse files Browse the repository at this point in the history
  • Loading branch information
currenjin committed Jan 25, 2024
1 parent 212eaa9 commit 9e9246e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/convert-yml-to-md.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const fs = require('fs');

function generateMarkdown(categories, sites) {
let markdown = '## 문서\n';
let markdown = '';
categories.forEach(category => {
markdown += `### ${category.text}\n`;
markdown += `## ${category.text}\n`;
const categorySites = sites.filter(site => site.categories.includes(category.category));
categorySites.forEach(site => {
markdown += `- [${site.name}](${site.link}) - ${site.description}\n`;
Expand Down

0 comments on commit 9e9246e

Please sign in to comment.