Compare commits
	
		
			No commits in common. "9cf52dd60d3d28177d9442a28e059e04fc51d4f2" and "d5c4377e564db5705eafc0d3bee08233c98e0681" have entirely different histories.
		
	
	
		
			9cf52dd60d
			...
			d5c4377e56
		
	
		
					 9 changed files with 45 additions and 28 deletions
				
			
		
							
								
								
									
										3
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1,2 @@ | ||||||
| /public/ | .zig-cache | ||||||
|  | zig-out | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| # Building | # Building | ||||||
| 
 | 
 | ||||||
| To build this site, you need zine | To build this site, you need zig | ||||||
| 
 | 
 | ||||||
| Just clone the repository | Just clone the repository | ||||||
| ``` | ``` | ||||||
|  | @ -10,7 +10,7 @@ cd flow-control.dev | ||||||
| and issue | and issue | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| zine | zig build serve | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Then visit with your browser the site pointed by the previous command | Then visit with your browser the site pointed by the previous command | ||||||
|  |  | ||||||
							
								
								
									
										24
									
								
								build.zig
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								build.zig
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | ||||||
|  | const std = @import("std"); | ||||||
|  | const zine = @import("zine"); | ||||||
|  | 
 | ||||||
|  | pub fn build(b: *std.Build) !void { | ||||||
|  |     _ = zine.website(b, .{ | ||||||
|  |         .title = "Flow Control: a progammer's text editor", | ||||||
|  |         .host_url = "https://flow-control.dev", | ||||||
|  |         .content_dir_path = "content", | ||||||
|  |         .layouts_dir_path = "layouts", | ||||||
|  |         .assets_dir_path = "assets", | ||||||
|  |     }); | ||||||
|  | 
 | ||||||
|  |     const install_step = b.addInstallFile(b.path("install"), "install"); | ||||||
|  |     b.getInstallStep().dependOn(&install_step.step); | ||||||
|  | 
 | ||||||
|  |     const install_key = b.addInstallFile(b.path("public.gpg"), "public.gpg"); | ||||||
|  |     b.getInstallStep().dependOn(&install_key.step); | ||||||
|  | 
 | ||||||
|  |     const install_font = b.addInstallFile(b.path("assets/fonts/AcPlus_IBM_VGA_9x16.ttf"), "fonts/AcPlus_IBM_VGA_9x16.ttf"); | ||||||
|  |     b.getInstallStep().dependOn(&install_font.step); | ||||||
|  | 
 | ||||||
|  |     const install_font2 = b.addInstallFile(b.path("assets/fonts/Iosevka-Regular.woff2"), "fonts/Iosevka-Regular.woff2"); | ||||||
|  |     b.getInstallStep().dependOn(&install_font2.step); | ||||||
|  | } | ||||||
							
								
								
									
										11
									
								
								build.zig.zon
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								build.zig.zon
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | .{ | ||||||
|  |     .name = "Zine Website", | ||||||
|  |     .version = "0.0.0", | ||||||
|  |     .dependencies = .{ | ||||||
|  |         .zine = .{ | ||||||
|  |             .url = "git+https://github.com/kristoff-it/zine?ref=v0.8.0#ec0f549654a4f7183d4520227b6748bba7ade98e", | ||||||
|  |             .hash = "122049c99f3faaaff159cdccb3792d1518b10534e8225e26e5b24a369d325b0ebdc5", | ||||||
|  |         }, | ||||||
|  |     }, | ||||||
|  |     .paths = .{"."}, | ||||||
|  | } | ||||||
|  | @ -53,8 +53,8 @@ curl -fsSL https://flow-control.dev/install | sh -s -- --nightly --verify | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ### Prebuilt Binaries | ### Prebuilt Binaries | ||||||
| - Stable: [Releases](https://github.com/neurocyte/flow/releases/latest) | - Stable: [Releases](https://github.com/neurocyte/flow/releases) | ||||||
| - Nightly: [Nightly Builds](https://github.com/neurocyte/flow-nightly/releases/latest) | - Nightly: [Nightly Builds](https://github.com/neurocyte/flow-nightly/releases) | ||||||
| 
 | 
 | ||||||
| Or check your favorite local system package repository. | Or check your favorite local system package repository. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -12,23 +12,17 @@ | ||||||
|   </head> |   </head> | ||||||
|   <body> |   <body> | ||||||
|   <nav id="menu" class="centered"> |   <nav id="menu" class="centered"> | ||||||
|       <ctx about="$site.page('')"> |       <ctx about="$site.page('index')"> | ||||||
|         <a href="$ctx.about.link()" text="$ctx.about.title">Home</a> |         <a href="$ctx.about.link()" text="$ctx.about.title">Home</a> | ||||||
|       </ctx> |       </ctx> | ||||||
|       • |       • | ||||||
|       <a href="https://github.com/neurocyte/flow/releases/latest">Downloads</a> |       <a href="https://github.com/neurocyte/flow/releases">Downloads</a> | ||||||
|       • |       • | ||||||
|       <a href="https://github.com/neurocyte/flow-nightly/releases/latest">Nightly Builds</a> |       <a href="https://github.com/neurocyte/flow-nightly/releases">Nightly Builds</a> | ||||||
|       • |  | ||||||
|       <a href="https://git.flow-control.dev/neurocyte/flow">Source</a> |  | ||||||
|       • |       • | ||||||
|       <a href="https://discord.com/invite/4wvteUPphx">Discord</a> |       <a href="https://discord.com/invite/4wvteUPphx">Discord</a> | ||||||
|       • |       • | ||||||
|       <a href="https://github.com/neurocyte/flow">Github</a> |       <a href="https://github.com/neurocyte/flow">Github</a> | ||||||
|       • |  | ||||||
|       <a href="https://codeberg.org/neurocyte/flow">Codeberg</a> |  | ||||||
|       • |  | ||||||
|       <a href="https://git.sr.ht/~neurocyte/flow">sourcehut</a> |  | ||||||
|     </nav> |     </nav> | ||||||
|     <h1 :text="$page.title"></h1> |     <h1 :text="$page.title"></h1> | ||||||
|     <div :html="$page.content()"></div> |     <div :html="$page.content()"></div> | ||||||
|  |  | ||||||
							
								
								
									
										13
									
								
								zine.ziggy
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								zine.ziggy
									
										
									
									
									
								
							|  | @ -1,13 +0,0 @@ | ||||||
| Site { |  | ||||||
|     .title = "Flow Control: a progammer's text editor", |  | ||||||
|     .host_url = "https://flow-control.dev", |  | ||||||
|     .content_dir_path = "content", |  | ||||||
|     .layouts_dir_path = "layouts", |  | ||||||
|     .assets_dir_path = "assets", |  | ||||||
|     .static_assets = [ |  | ||||||
|         "install", |  | ||||||
|         "public.gpg", |  | ||||||
|         "fonts/AcPlus_IBM_VGA_9x16.ttf", |  | ||||||
|         "fonts/Iosevka-Regular.woff2", |  | ||||||
|     ], |  | ||||||
| } |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue