@@ -12,7 +12,6 @@ import remarkGfm from "remark-gfm";
1212import rehypeRaw from "rehype-raw" ;
1313import { FileText , Search , Book , ArrowLeft , CheckCircle } from "lucide-react" ;
1414
15- // Import all markdown files
1615import aboutSast from "../components/docs/about-sast.md?raw" ;
1716import codeOfConduct from "../components/docs/code-of-conduct.md?raw" ;
1817import communityRoles from "../components/docs/community-roles.md?raw" ;
@@ -24,18 +23,60 @@ import guidelines from "../components/docs/guidelines.md?raw";
2423import learning from "../components/docs/learning.md?raw" ;
2524import memberNames from "../components/docs/member-names.md?raw" ;
2625
26+ // ✅ NEW: single doc that lists all department PDFs
27+ import departmentalDocs from "../components/docs/departmental-docs.md?raw" ;
28+
2729// Map of all docs with their content
2830const DOCS_MAP = {
29- "about-sast" : { title : "About SAST" , content : aboutSast , category : "Introduction" } ,
30- guidelines : { title : "Guidelines" , content : guidelines , category : "Getting Started" } ,
31- contribution : { title : "Contribution Guide" , content : contribution , category : "Getting Started" } ,
32- "code-of-conduct" : { title : "Code of Conduct" , content : codeOfConduct , category : "Getting Started" } ,
33- "github-process" : { title : "GitHub Process" , content : githubProcess , category : "Development" } ,
34- "community-roles" : { title : "Community Roles" , content : communityRoles , category : "Community" } ,
31+ "about-sast" : {
32+ title : "About SAST" ,
33+ content : aboutSast ,
34+ category : "Introduction" ,
35+ } ,
36+ guidelines : {
37+ title : "Guidelines" ,
38+ content : guidelines ,
39+ category : "Getting Started" ,
40+ } ,
41+ contribution : {
42+ title : "Contribution Guide" ,
43+ content : contribution ,
44+ category : "Getting Started" ,
45+ } ,
46+ "code-of-conduct" : {
47+ title : "Code of Conduct" ,
48+ content : codeOfConduct ,
49+ category : "Getting Started" ,
50+ } ,
51+ "github-process" : {
52+ title : "GitHub Process" ,
53+ content : githubProcess ,
54+ category : "Development" ,
55+ } ,
56+ "community-roles" : {
57+ title : "Community Roles" ,
58+ content : communityRoles ,
59+ category : "Community" ,
60+ } ,
3561 faqs : { title : "FAQs" , content : faqs , category : "Help" } ,
3662 learning : { title : "Learning Resources" , content : learning , category : "Resources" } ,
37- "contributors-name" : { title : "Contributors" , content : contributorsName , category : "Community" } ,
38- "member-names" : { title : "Members" , content : memberNames , category : "Community" } ,
63+ "contributors-name" : {
64+ title : "Contributors" ,
65+ content : contributorsName ,
66+ category : "Community" ,
67+ } ,
68+ "member-names" : {
69+ title : "Members" ,
70+ content : memberNames ,
71+ category : "Community" ,
72+ } ,
73+
74+ // ✅ NEW entry
75+ "departmental-docs" : {
76+ title : "SAST Departmental Docs" ,
77+ content : departmentalDocs ,
78+ category : "Departments" ,
79+ } ,
3980} ;
4081
4182// Header Component
@@ -48,18 +89,15 @@ function DocsHeader() {
4889 </ div >
4990 < h1 className = "docs-header-title" > Community Handbook</ h1 >
5091 < p className = "docs-header-description" >
51- Your comprehensive guide to contributing, learning, and growing with
52- SAST.
92+ Your comprehensive guide to contributing, learning, and growing with SAST.
5393 </ p >
5494 < div className = "docs-header-divider" > </ div >
5595 < div className = "docs-header-tags" >
56- { [ "Open Source" , "Community Guidelines" , "Best Practices" ] . map (
57- ( tag ) => (
58- < span key = { tag } className = "docs-header-tag" >
59- { tag }
60- </ span >
61- )
62- ) }
96+ { [ "Open Source" , "Community Guidelines" , "Best Practices" ] . map ( ( tag ) => (
97+ < span key = { tag } className = "docs-header-tag" >
98+ { tag }
99+ </ span >
100+ ) ) }
63101 </ div >
64102 </ header >
65103 ) ;
@@ -264,4 +302,4 @@ export default function DocsHub() {
264302 </ div >
265303 </ section >
266304 ) ;
267- }
305+ }
0 commit comments