|
4 | 4 | * This source code is licensed under the GPL3 license found in the |
5 | 5 | * LICENSE file in the root directory of this source tree. |
6 | 6 | */ |
7 | | - |
8 | | -import React from 'react'; |
9 | | -import Layout from '@theme/Layout'; |
10 | | -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; |
11 | | -import useBaseUrl from '@docusaurus/useBaseUrl'; |
| 7 | + |
| 8 | +import React from "react"; |
| 9 | +import Layout from "@theme/Layout"; |
| 10 | +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; |
| 11 | +import useBaseUrl from "@docusaurus/useBaseUrl"; |
12 | 12 |
|
13 | 13 | export default function Download() { |
14 | | - const {siteConfig} = useDocusaurusContext(); |
15 | | - const docUrl = doc => `${useBaseUrl(siteConfig.routeBasePath)}/${doc}`; |
| 14 | + const { siteConfig } = useDocusaurusContext(); |
| 15 | + const docUrl = (doc) => `${useBaseUrl(siteConfig.routeBasePath)}/${doc}`; |
16 | 16 |
|
17 | | - const Button = props => ( |
| 17 | + const Button = (props) => ( |
18 | 18 | <div className={`col col--${props.col}`}> |
19 | | - <a className={`button button button--${props.buttonColor}`} style={{width: "85%"}} href={`${props.href}`} target="_blank">{props.children}</a> |
| 19 | + <a |
| 20 | + className={`button button button--${props.buttonColor}`} |
| 21 | + style={{ width: "85%" }} |
| 22 | + href={`${props.href}`} |
| 23 | + target="_blank" |
| 24 | + > |
| 25 | + {props.children} |
| 26 | + </a> |
20 | 27 | </div> |
21 | 28 | ); |
22 | 29 |
|
23 | 30 | return ( |
24 | | - <Layout |
25 | | - description="GAMA is an easy-to-use open source modeling and simulation environment for creating spatially explicit agent-based simulations."> |
26 | | - |
27 | | - <style dangerouslySetInnerHTML={{__html: ` |
| 31 | + <Layout description="GAMA is an easy-to-use open source modeling and simulation environment for creating spatially explicit agent-based simulations."> |
| 32 | + <style |
| 33 | + dangerouslySetInnerHTML={{ |
| 34 | + __html: ` |
28 | 35 | .row { |
29 | 36 | margin-top: 1.5em; |
30 | 37 | } |
@@ -61,79 +68,161 @@ export default function Download() { |
61 | 68 |
|
62 | 69 | [data-theme="dark"] :where(.button-dyn-color) { |
63 | 70 | --ifm-button-border-color: var(--ifm-color-warning) !important; |
64 | | - `}} /> |
| 71 | + `, |
| 72 | + }} |
| 73 | + /> |
65 | 74 |
|
66 | 75 | <div className="container"> |
67 | | - |
68 | 76 | <div className="row"> |
69 | 77 | <div className="col col--12"> |
70 | 78 | <header className="postHeader"> |
71 | | - <h1>Download GAMA <a href={`https://github.com/gama-platform/gama/releases/tag/${siteConfig.customFields.downloadVersion}`} target="_blank">version {siteConfig.customFields.downloadVersion}</a></h1> |
| 79 | + <h1> |
| 80 | + Download GAMA{" "} |
| 81 | + <a |
| 82 | + href={`https://github.com/gama-platform/gama/releases/tag/${siteConfig.customFields.downloadVersion}`} |
| 83 | + target="_blank" |
| 84 | + > |
| 85 | + version {siteConfig.customFields.latestVersion} |
| 86 | + </a> |
| 87 | + </h1> |
72 | 88 | </header> |
73 | 89 | </div> |
74 | 90 | </div> |
75 | 91 |
|
76 | 92 | <div id="release" className="row"> |
77 | | - |
78 | | - <div className="blockElement imageAlignTop col col--4" style={{marginTop:"3em", textAlign: "center"}}> |
79 | | - <a href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Windows_with_JDK.exe`} target="_blank"> |
| 93 | + <div |
| 94 | + className="blockElement imageAlignTop col col--4" |
| 95 | + style={{ marginTop: "3em", textAlign: "center" }} |
| 96 | + > |
| 97 | + <a |
| 98 | + href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Windows_with_JDK.exe`} |
| 99 | + target="_blank" |
| 100 | + > |
80 | 101 | <div className="blockImage"> |
81 | | - <img src="/img/windows-logo.svg" alt="Windows" ></img> |
82 | | - </div> |
83 | | - <div className="blockContent"> |
84 | | - <Button href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Windows_with_JDK.exe`} buttonColor="outline button-dyn-color" col="12">Windows</Button> |
| 102 | + <img src="/img/windows-logo.svg" alt="Windows"></img> |
| 103 | + </div> |
| 104 | + <div className="blockContent"> |
| 105 | + <Button |
| 106 | + href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Windows_with_JDK.exe`} |
| 107 | + buttonColor="outline button-dyn-color" |
| 108 | + col="12" |
| 109 | + > |
| 110 | + Windows |
| 111 | + </Button> |
85 | 112 | </div> |
86 | 113 | </a> |
87 | 114 | </div> |
88 | | - <div className="blockElement imageAlignTop col col--4" style={{marginTop:"3em", textAlign: "center"}}> |
| 115 | + <div |
| 116 | + className="blockElement imageAlignTop col col--4" |
| 117 | + style={{ marginTop: "3em", textAlign: "center" }} |
| 118 | + > |
89 | 119 | <div className="blockImage"> |
90 | | - <img src="/img/apple-logo.svg" alt="Apple" ></img> |
91 | | - </div> |
92 | | - <div className="blockContent"> |
93 | | - <Button href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_MacOS_M1_with_JDK.dmg`} buttonColor="outline button-dyn-color" col="12">macOS Apple Silicon</Button> |
94 | | - <Button href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_MacOS_with_JDK.dmg`} buttonColor="outline button-dyn-color" col="12">macOS Intel (Older)</Button> |
| 120 | + <img src="/img/apple-logo.svg" alt="Apple"></img> |
| 121 | + </div> |
| 122 | + <div className="blockContent"> |
| 123 | + <Button |
| 124 | + href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_MacOS_M1_with_JDK.dmg`} |
| 125 | + buttonColor="outline button-dyn-color" |
| 126 | + col="12" |
| 127 | + > |
| 128 | + macOS Apple Silicon |
| 129 | + </Button> |
| 130 | + <Button |
| 131 | + href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_MacOS_with_JDK.dmg`} |
| 132 | + buttonColor="outline button-dyn-color" |
| 133 | + col="12" |
| 134 | + > |
| 135 | + macOS Intel (Older) |
| 136 | + </Button> |
95 | 137 | </div> |
96 | 138 | </div> |
97 | | - <div className="blockElement imageAlignTop col col--4" style={{marginTop:"3em", textAlign: "center"}}> |
98 | | - <a href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Linux_with_JDK.deb`} target="_blank"> |
| 139 | + <div |
| 140 | + className="blockElement imageAlignTop col col--4" |
| 141 | + style={{ marginTop: "3em", textAlign: "center" }} |
| 142 | + > |
| 143 | + <a |
| 144 | + href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Linux_with_JDK.deb`} |
| 145 | + target="_blank" |
| 146 | + > |
99 | 147 | <div className="blockImage"> |
100 | | - <img src="/img/linux-logo.svg" alt="Linux" ></img> |
101 | | - </div> |
102 | | - <div className="blockContent"> |
103 | | - <Button href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Linux_with_JDK.deb`} buttonColor="outline button-dyn-color" col="12">Linux</Button> |
| 148 | + <img src="/img/linux-logo.svg" alt="Linux"></img> |
| 149 | + </div> |
| 150 | + <div className="blockContent"> |
| 151 | + <Button |
| 152 | + href={`https://github.com/gama-platform/gama/releases/download/${siteConfig.customFields.downloadVersion}/${siteConfig.customFields.zipName}_Linux_with_JDK.deb`} |
| 153 | + buttonColor="outline button-dyn-color" |
| 154 | + col="12" |
| 155 | + > |
| 156 | + Linux |
| 157 | + </Button> |
104 | 158 | </div> |
105 | 159 | </a> |
106 | 160 | </div> |
| 161 | + </div> |
| 162 | + <div style={{ marginBottom: "3em", marginTop: "3em" }}> |
| 163 | + <h2> |
| 164 | + This major release of GAMA contains many new features and fixes, |
| 165 | + including: |
| 166 | + </h2> |
| 167 | + |
| 168 | + <ul> |
| 169 | + <li> |
| 170 | + <strong>A much more fluid and powerful IDE</strong> |
| 171 | + </li> |
| 172 | + <li> |
| 173 | + <strong>A new server mode of GAMA</strong>, which revolutionizes |
| 174 | + the way to interact with the platform from R, Python or web |
| 175 | + clients. |
| 176 | + </li> |
| 177 | + <li> |
| 178 | + <strong>Increased model exploration possibilities</strong>. |
| 179 | + </li> |
| 180 | + <li> |
| 181 | + <strong>A more powerful graph manipulation</strong> |
| 182 | + </li> |
| 183 | + <li> |
| 184 | + <strong> |
| 185 | + The possibility to simulate physical interactions between agents |
| 186 | + </strong>{" "} |
| 187 | + thanks to the native <code>bullet</code> library. |
| 188 | + </li> |
| 189 | + <li> |
| 190 | + <strong>New and faster display capabilities</strong>, making it |
| 191 | + easier than ever to build interactive simulations, serious games |
| 192 | + or advanced scientific visualisations. |
| 193 | + </li> |
| 194 | + </ul> |
| 195 | + </div> |
107 | 196 |
|
| 197 | + <div className="row" style={{ textAlign: "center" }}> |
| 198 | + <Button href={`/wiki/Changelog`} col="4" buttonColor="warning"> |
| 199 | + What's new? |
| 200 | + </Button> |
| 201 | + <Button |
| 202 | + href={`https://github.com/gama-platform/gama/releases/tag/${siteConfig.customFields.downloadVersion}`} |
| 203 | + col="4" |
| 204 | + buttonColor="danger" |
| 205 | + > |
| 206 | + Other installation versions |
| 207 | + </Button> |
| 208 | + <Button |
| 209 | + href={`https://github.com/gama-platform/gama/wiki/resources/pdf/docGAMAv2025-06.pdf`} |
| 210 | + col="4" |
| 211 | + buttonColor="primary" |
| 212 | + > |
| 213 | + PDF Documentation |
| 214 | + </Button> |
| 215 | + <Button col="4" /> |
| 216 | + <Button col="4" /> |
| 217 | + <Button |
| 218 | + href={`https://docs.google.com/document/d/1n4-l6VmqSi6lFPyhdeCnowK9pG5gM773/edit?usp=sharing&ouid=101392264667256926559&rtpof=true&sd=true`} |
| 219 | + col="4" |
| 220 | + buttonColor="primary" |
| 221 | + > |
| 222 | + Cheat Sheet GAML Documentation |
| 223 | + </Button> |
| 224 | + </div> |
108 | 225 | </div> |
109 | | - <div style={{ marginBottom: "3em", marginTop: "3em"}}> |
110 | | - <h2>This major release of GAMA contains many new features and fixes, including:</h2> |
111 | | - |
112 | | - <ul> |
113 | | - <li><strong>A much more fluid and powerful IDE</strong></li> |
114 | | - <li><strong>A new server mode of GAMA</strong>, which revolutionizes the way to interact with the platform from R, Python or web clients.</li> |
115 | | - <li><strong>Increased model exploration possibilities</strong>.</li> |
116 | | - <li><strong>The addition of the two new data types <code>field</code> and <code>image</code></strong>, to better manage raster data</li> |
117 | | - <li><strong>A more powerful graph manipulation</strong></li> |
118 | | - <li><strong>A focus on urban mobility applications</strong>, with the <code>advanced_driving</code> and <code>pedestrian</code>, which make it much easier to produce realistic large-scale mobility models.</li> |
119 | | - <li><strong>The possibility to simulate physical interactions between agents</strong> thanks to the addition of the native <code>bullet</code> library.</li> |
120 | | - <li><strong>New and faster display capabilities</strong>, making it easier than ever to build interactive simulations, serious games or advanced scientific visualisations.</li> |
121 | | - </ul> |
122 | | - |
123 | | - </div> |
124 | | - |
125 | | - <div className="row" style={{textAlign: "center"}}> |
126 | | - |
127 | | - <Button href={`/wiki/Changelog`} col="4" buttonColor="warning">What's new?</Button> |
128 | | - <Button href={`https://github.com/gama-platform/gama/releases/tag/${siteConfig.customFields.downloadVersion}`} col="4" buttonColor="danger">Other installation versions</Button> |
129 | | - <Button href={`https://github.com/gama-platform/gama/wiki/resources/pdf/docGAMAv193.pdf`} col="4" buttonColor="primary">PDF Documentation</Button> |
130 | | - <Button col="4"/><Button col="4"/> |
131 | | - <Button href={`https://docs.google.com/document/d/1n4-l6VmqSi6lFPyhdeCnowK9pG5gM773/edit?usp=sharing&ouid=101392264667256926559&rtpof=true&sd=true`} col="4" buttonColor="primary">Cheat Sheet GAML Documentation</Button> |
132 | | - </div> |
133 | | - |
134 | | - </div> |
135 | | - |
136 | | - </Layout> |
137 | | - |
| 226 | + </Layout> |
138 | 227 | ); |
139 | 228 | } |
0 commit comments