mirror of
				https://github.com/slint-ui/slint.git
				synced 2025-10-31 12:04:33 +00:00 
			
		
		
		
	Fix the links in the welcome page for the nightly releases
This commit is contained in:
		
							parent
							
								
									e9286c1189
								
							
						
					
					
						commit
						752e92b1e7
					
				
					 2 changed files with 12 additions and 8 deletions
				
			
		|  | @ -125,7 +125,11 @@ export class WelcomePanel { | |||
|         ); | ||||
|         let result = Buffer.from(data).toString("utf-8"); | ||||
| 
 | ||||
|         result = result.replaceAll("<VERSION>", pkg.version); | ||||
|         let version = `releases/${pkg.version}`; | ||||
|         if (pkg.name.endsWith("-nightly")) { | ||||
|             version = `snapshots/master`; | ||||
|         } | ||||
|         result = result.replaceAll("<VERSION>", version); | ||||
|         result = result.replaceAll( | ||||
|             "<ASSETS_URL>", | ||||
|             this.#webview.webview | ||||
|  |  | |||
|  | @ -454,7 +454,7 @@ | |||
|                             </p> | ||||
|                             <p> | ||||
|                                 <a | ||||
|                                     href="https://slint.dev/releases/<VERSION>/docs/slint/index.html" | ||||
|                                     href="https://slint.dev/<VERSION>/docs/slint/index.html" | ||||
|                                     class="btn doc" | ||||
|                                     >Language Documentation</a | ||||
|                                 > | ||||
|  | @ -473,14 +473,14 @@ | |||
|                                 </p> | ||||
|                                 <p> | ||||
|                                     <a | ||||
|                                         href="https://slint.dev/releases/<VERSION>/docs/rust/slint" | ||||
|                                         href="https://slint.dev/<VERSION>/docs/rust/slint" | ||||
|                                         class="btn doc" | ||||
|                                         >API Documentation</a | ||||
|                                     > | ||||
|                                 </p> | ||||
|                                 <p> | ||||
|                                     <a | ||||
|                                         href="https://slint.dev/releases/<VERSION>/docs/tutorial/rust" | ||||
|                                         href="https://slint.dev/<VERSION>/docs/tutorial/rust" | ||||
|                                         class="btn doc" | ||||
|                                         >Tutorial</a | ||||
|                                     > | ||||
|  | @ -509,14 +509,14 @@ | |||
|                                 </p> | ||||
|                                 <p> | ||||
|                                     <a | ||||
|                                         href="https://slint.dev/releases/<VERSION>/docs/cpp" | ||||
|                                         href="https://slint.dev/<VERSION>/docs/cpp" | ||||
|                                         class="btn doc" | ||||
|                                         >API Documentation</a | ||||
|                                     > | ||||
|                                 </p> | ||||
|                                 <p> | ||||
|                                     <a | ||||
|                                         href="https://slint.dev/releases/<VERSION>/docs/tutorial/cpp" | ||||
|                                         href="https://slint.dev/<VERSION>/docs/tutorial/cpp" | ||||
|                                         class="btn doc" | ||||
|                                         >Tutorial</a | ||||
|                                     > | ||||
|  | @ -540,14 +540,14 @@ | |||
|                                 </p> | ||||
|                                 <p> | ||||
|                                     <a | ||||
|                                         href="https://slint.dev/releases/<VERSION>/docs/node" | ||||
|                                         href="https://slint.dev/<VERSION>/docs/node" | ||||
|                                         class="btn doc" | ||||
|                                         >API Documentation</a | ||||
|                                     > | ||||
|                                 </p> | ||||
|                                 <p> | ||||
|                                     <a | ||||
|                                         href="https://slint.dev/releases/<VERSION>/docs/tutorial/node" | ||||
|                                         href="https://slint.dev/<VERSION>/docs/tutorial/node" | ||||
|                                         class="btn doc" | ||||
|                                         >Tutorial</a | ||||
|                                     > | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Hausmann
						Simon Hausmann