|
37 | 37 | - name: Generate TypeDoc documentation |
38 | 38 | run: npm run docs |
39 | 39 |
|
40 | | - # Step 3: Create an HTML index file for the Markdown documentation |
41 | | - - name: Create HTML index for Markdown docs |
42 | | - run: | |
43 | | - cat > storybook-static/api/index.html << 'EOL' |
44 | | - <!DOCTYPE html> |
45 | | - <html lang="en"> |
46 | | - <head> |
47 | | - <meta charset="UTF-8"> |
48 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
49 | | - <title>TanStack Table Adapter API</title> |
50 | | - <style> |
51 | | - body { |
52 | | - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
53 | | - line-height: 1.6; |
54 | | - color: #333; |
55 | | - max-width: 900px; |
56 | | - margin: 0 auto; |
57 | | - padding: 20px; |
58 | | - } |
59 | | - h1 { |
60 | | - border-bottom: 1px solid #eaecef; |
61 | | - padding-bottom: 0.3em; |
62 | | - } |
63 | | - a { |
64 | | - color: #0366d6; |
65 | | - text-decoration: none; |
66 | | - } |
67 | | - a:hover { |
68 | | - text-decoration: underline; |
69 | | - } |
70 | | - .back-link { |
71 | | - margin-bottom: 20px; |
72 | | - display: inline-block; |
73 | | - } |
74 | | - .content { |
75 | | - background-color: #f6f8fa; |
76 | | - border: 1px solid #ddd; |
77 | | - border-radius: 3px; |
78 | | - padding: 20px; |
79 | | - } |
80 | | - </style> |
81 | | - </head> |
82 | | - <body> |
83 | | - <a href="../" class="back-link">← Back to Storybook</a> |
84 | | - <h1>TanStack Table Adapter API Documentation</h1> |
85 | | - <div class="content"> |
86 | | - <p>This is the API documentation for the TanStack Table Adapter library.</p> |
87 | | - <p>Please navigate to the <a href="./README.md">README</a> or <a href="./modules.md">Modules</a> to start exploring the API.</p> |
88 | | - <h2>Main Documentation Files</h2> |
89 | | - <ul> |
90 | | - <li><a href="./README.md">README</a> - Overview of the library</li> |
91 | | - <li><a href="./modules.md">Modules</a> - List of all modules</li> |
92 | | - </ul> |
93 | | - </div> |
94 | | - </body> |
95 | | - </html> |
96 | | - EOL |
97 | | - |
98 | | - # Step 4: Create a simple navigation page |
99 | | - - name: Create navigation page |
100 | | - run: | |
101 | | - echo '<!DOCTYPE html> |
102 | | - <html> |
103 | | - <head> |
104 | | - <meta charset="UTF-8"> |
105 | | - <title>Project Documentation</title> |
106 | | - <style> |
107 | | - body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 800px; margin: 0 auto; padding: 2rem; } |
108 | | - h1 { border-bottom: 1px solid #eaecef; } |
109 | | - .nav-links { display: flex; gap: 2rem; margin: 2rem 0; } |
110 | | - .nav-link { display: inline-block; padding: 0.5rem 1rem; background-color: #0366d6; color: white; text-decoration: none; border-radius: 4px; } |
111 | | - </style> |
112 | | - </head> |
113 | | - <body> |
114 | | - <h1>Project Documentation</h1> |
115 | | - <div class="nav-links"> |
116 | | - <a class="nav-link" href="./index.html">Component Library</a> |
117 | | - <a class="nav-link" href="./api/index.html">API Documentation</a> |
118 | | - </div> |
119 | | - </body> |
120 | | - </html>' > storybook-static/docs-home.html |
121 | | - |
122 | 40 | # Add debugging step to see what files were generated |
123 | 41 | - name: Check TypeDoc output |
124 | 42 | run: | |
|
0 commit comments