Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: techncial writing category and Docsify #1701

Merged
merged 4 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,16 @@ export const sidebarData: ISidebar[] = [
category: 'devops',
subcategory: [
{ name: 'CI/CD', url: '/cicd', resources: DB.cicd },
{ name: 'DevOps Life Cycle', url: '/devops-life-cycle', resources: DB.devopsLifecycle },
{ name: 'DevOps Methodologies', url: '/devops-methodologies', resources: DB.devopsMethodologies },
{
name: 'DevOps Life Cycle',
url: '/devops-life-cycle',
resources: DB.devopsLifecycle,
},
{
name: 'DevOps Methodologies',
url: '/devops-methodologies',
resources: DB.devopsMethodologies,
},
{ name: 'docker', url: '/docker', resources: DB.docker },
{
name: 'kubernetes',
Expand Down Expand Up @@ -267,8 +275,15 @@ export const sidebarData: ISidebar[] = [
{ name: 'Roadmaps', url: '/roadmaps', resources: DB.roadmaps },
],
},
{
category: 'technical-writing',
subcategory: [{ name: 'Tools', url: '/tools', resources: DB.tools }],
},
]

export const subCategories = sidebarData.flatMap(({ category, subcategory }) =>
subcategory.map(({ url }) => ({ category, subcategory: url.replace('/', '') }))
);
subcategory.map(({ url }) => ({
category,
subcategory: url.replace('/', ''),
}))
)
2 changes: 2 additions & 0 deletions database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ export { default as roadmaps } from './other/roadmaps.json'
// competitive programming
export { default as cpPlatforms } from './competitive_programming/cp-platforms.json'
export { default as cpTutorials } from './competitive_programming/cp-tutorials.json'
// technical-writing
export { default as technicalwritingtools } from './technical-writing/tools.json'
9 changes: 9 additions & 0 deletions database/technical-writing/tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"name": "Docsify",
"description": "If you're looking for a static generator that makes it easier for you to create docs, you'll love Docsify. Unlike GitBook, it does not generate static HTML files. Instead, it loads and parses your Markdown files and displays them as a website.",
"url": "https://docsify.js.org/#/",
"category": "technical writing",
"subcategory": "tools"
}
]
2 changes: 2 additions & 0 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,6 @@ export const subcategoryArray = [
'roadmaps',
// competitive programming
'platforms',
// technical-writing
'tools',
]
Loading