|
33 | 33 | cache: 'npm' |
34 | 34 |
|
35 | 35 | - name: Install dependencies |
36 | | - run: npm ci |
| 36 | + run: | |
| 37 | + npm ci |
| 38 | + cd themes/toha && npm ci && cd ../.. |
37 | 39 |
|
38 | 40 | - name: Test Hugo build (without docs) |
39 | 41 | run: | |
@@ -81,84 +83,84 @@ jobs: |
81 | 83 | run: | |
82 | 84 | mkdir -p static/docs |
83 | 85 | cat > static/docs/index.html << 'EOF' |
84 | | -<!DOCTYPE html> |
85 | | -<html lang="en"> |
86 | | -<head> |
87 | | - <meta charset="UTF-8"> |
88 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
89 | | - <title>Documentation - copan:LPJmL</title> |
90 | | - <style> |
91 | | - body { |
92 | | - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
93 | | - margin: 0; |
94 | | - padding: 2rem; |
95 | | - background-color: #f2f3e3; |
96 | | - color: #344643; |
97 | | - } |
98 | | - .container { |
99 | | - max-width: 1000px; |
100 | | - margin: 0 auto; |
101 | | - text-align: center; |
102 | | - } |
103 | | - h1 { |
104 | | - color: #e37222; |
105 | | - margin-bottom: 2rem; |
106 | | - } |
107 | | - .redirect-notice { |
108 | | - background: #e1f5fe; |
109 | | - border: 1px solid #81d4fa; |
110 | | - border-radius: 8px; |
111 | | - padding: 2rem; |
112 | | - margin: 2rem 0; |
113 | | - } |
114 | | - .link { |
115 | | - color: #e37222; |
116 | | - text-decoration: none; |
117 | | - font-weight: 500; |
118 | | - font-size: 1.2rem; |
119 | | - background: #e37222; |
120 | | - color: white; |
121 | | - padding: 1rem 2rem; |
122 | | - border-radius: 8px; |
123 | | - display: inline-block; |
124 | | - margin: 1rem; |
125 | | - } |
126 | | - .link:hover { |
127 | | - background: #91cdcd; |
128 | | - color: white; |
129 | | - } |
130 | | - .info { |
131 | | - background: white; |
132 | | - padding: 2rem; |
133 | | - border-radius: 8px; |
134 | | - box-shadow: 0 2px 10px rgba(0,0,0,0.1); |
135 | | - margin: 2rem 0; |
136 | | - } |
137 | | - </style> |
138 | | - <script> |
139 | | - // Auto-redirect after 3 seconds |
140 | | - setTimeout(function() { |
141 | | - window.location.href = 'https://pycopanlpjml.readthedocs.io/en/latest/'; |
142 | | - }, 3000); |
143 | | - </script> |
144 | | -</head> |
145 | | -<body> |
146 | | - <div class="container"> |
147 | | - <h1>copan:LPJmL Documentation</h1> |
148 | | - |
149 | | - <div class="redirect-notice"> |
150 | | - <p><strong>Redirecting to the official documentation...</strong></p> |
151 | | - <p>You will be automatically redirected in 3 seconds.</p> |
152 | | - </div> |
153 | | - |
154 | | - <div class="info"> |
155 | | - <p>Access the complete documentation at:</p> |
156 | | - <a href="https://pycopanlpjml.readthedocs.io/en/latest/" class="link">📚 View Full Documentation</a> |
157 | | - </div> |
158 | | - </div> |
159 | | -</body> |
160 | | -</html> |
161 | | -EOF |
| 86 | + <!DOCTYPE html> |
| 87 | + <html lang="en"> |
| 88 | + <head> |
| 89 | + <meta charset="UTF-8"> |
| 90 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 91 | + <title>Documentation - copan:LPJmL</title> |
| 92 | + <style> |
| 93 | + body { |
| 94 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 95 | + margin: 0; |
| 96 | + padding: 2rem; |
| 97 | + background-color: #f2f3e3; |
| 98 | + color: #344643; |
| 99 | + } |
| 100 | + .container { |
| 101 | + max-width: 1000px; |
| 102 | + margin: 0 auto; |
| 103 | + text-align: center; |
| 104 | + } |
| 105 | + h1 { |
| 106 | + color: #e37222; |
| 107 | + margin-bottom: 2rem; |
| 108 | + } |
| 109 | + .redirect-notice { |
| 110 | + background: #e1f5fe; |
| 111 | + border: 1px solid #81d4fa; |
| 112 | + border-radius: 8px; |
| 113 | + padding: 2rem; |
| 114 | + margin: 2rem 0; |
| 115 | + } |
| 116 | + .link { |
| 117 | + color: #e37222; |
| 118 | + text-decoration: none; |
| 119 | + font-weight: 500; |
| 120 | + font-size: 1.2rem; |
| 121 | + background: #e37222; |
| 122 | + color: white; |
| 123 | + padding: 1rem 2rem; |
| 124 | + border-radius: 8px; |
| 125 | + display: inline-block; |
| 126 | + margin: 1rem; |
| 127 | + } |
| 128 | + .link:hover { |
| 129 | + background: #91cdcd; |
| 130 | + color: white; |
| 131 | + } |
| 132 | + .info { |
| 133 | + background: white; |
| 134 | + padding: 2rem; |
| 135 | + border-radius: 8px; |
| 136 | + box-shadow: 0 2px 10px rgba(0,0,0,0.1); |
| 137 | + margin: 2rem 0; |
| 138 | + } |
| 139 | + </style> |
| 140 | + <script> |
| 141 | + // Auto-redirect after 3 seconds |
| 142 | + setTimeout(function() { |
| 143 | + window.location.href = 'https://pycopanlpjml.readthedocs.io/en/latest/'; |
| 144 | + }, 3000); |
| 145 | + </script> |
| 146 | + </head> |
| 147 | + <body> |
| 148 | + <div class="container"> |
| 149 | + <h1>copan:LPJmL Documentation</h1> |
| 150 | + |
| 151 | + <div class="redirect-notice"> |
| 152 | + <p><strong>Redirecting to the official documentation...</strong></p> |
| 153 | + <p>You will be automatically redirected in 3 seconds.</p> |
| 154 | + </div> |
| 155 | + |
| 156 | + <div class="info"> |
| 157 | + <p>Access the complete documentation at:</p> |
| 158 | + <a href="https://pycopanlpjml.readthedocs.io/en/latest/" class="link">📚 View Full Documentation</a> |
| 159 | + </div> |
| 160 | + </div> |
| 161 | + </body> |
| 162 | + </html> |
| 163 | + EOF |
162 | 164 | echo "Created docs redirect page" |
163 | 165 |
|
164 | 166 | - name: Build Hugo site |
|
0 commit comments