many things:
* flake.lock update, with code changes needed. * miniserve.rs static directory listing. * change from typst-ls to tinymist for typst lsp * deletion of hugo template. * change from self-built duckdns module to nixpkgs one.
This commit is contained in:
		
							parent
							
								
									73451d607b
								
							
						
					
					
						commit
						e8a5bb3bc9
					
				
					 29 changed files with 103 additions and 267 deletions
				
			
		| 
						 | 
				
			
			@ -3,12 +3,12 @@
 | 
			
		|||
    path = ./default;
 | 
			
		||||
    description = "a basic blank devshell flake";
 | 
			
		||||
  };
 | 
			
		||||
  hugo = {
 | 
			
		||||
    path = ./hugo;
 | 
			
		||||
    description = "a flake for getting a hugo website up and running";
 | 
			
		||||
  };
 | 
			
		||||
  latex = {
 | 
			
		||||
    path = ./latex;
 | 
			
		||||
    description = "A flake containing a basic latex environment";
 | 
			
		||||
  };
 | 
			
		||||
  typst = {
 | 
			
		||||
    path= ./typst;
 | 
			
		||||
    description = "A flake containing a basic typst environment";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +0,0 @@
 | 
			
		|||
use flake
 | 
			
		||||
							
								
								
									
										16
									
								
								templates/hugo/.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								templates/hugo/.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,16 +0,0 @@
 | 
			
		|||
# Generated files by hugo
 | 
			
		||||
/public/
 | 
			
		||||
/resources/_gen/
 | 
			
		||||
/assets/jsconfig.json
 | 
			
		||||
hugo_stats.json
 | 
			
		||||
 | 
			
		||||
# Executable may be added to repository
 | 
			
		||||
hugo.exe
 | 
			
		||||
hugo.darwin
 | 
			
		||||
hugo.linux
 | 
			
		||||
 | 
			
		||||
# Temporary lock file while building
 | 
			
		||||
/.hugo_build.lock
 | 
			
		||||
 | 
			
		||||
# for direnv
 | 
			
		||||
.direnv
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +0,0 @@
 | 
			
		|||
+++
 | 
			
		||||
date = '{{ .Date }}'
 | 
			
		||||
draft = true
 | 
			
		||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
 | 
			
		||||
+++
 | 
			
		||||
| 
						 | 
				
			
			@ -1,26 +0,0 @@
 | 
			
		|||
{
 | 
			
		||||
  description = "hugo development environment";
 | 
			
		||||
 | 
			
		||||
  inputs = {
 | 
			
		||||
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
 | 
			
		||||
    flake-utils.url = "github:numtide/flake-utils";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  outputs = {
 | 
			
		||||
    self,
 | 
			
		||||
    nixpkgs,
 | 
			
		||||
    flake-utils,
 | 
			
		||||
  }:
 | 
			
		||||
    flake-utils.lib.eachDefaultSystem (system: let
 | 
			
		||||
      pkgs = import nixpkgs {inherit system;};
 | 
			
		||||
    in
 | 
			
		||||
      with pkgs; {
 | 
			
		||||
        devShells.default = mkShell {
 | 
			
		||||
          buildInputs = [
 | 
			
		||||
            hugo
 | 
			
		||||
            just
 | 
			
		||||
            rsync
 | 
			
		||||
          ];
 | 
			
		||||
        };
 | 
			
		||||
      });
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,22 +0,0 @@
 | 
			
		|||
languageCode = 'en-us'
 | 
			
		||||
baseURL = "https://example.com"
 | 
			
		||||
title = "Title"
 | 
			
		||||
enableRobotsTXT = true
 | 
			
		||||
 | 
			
		||||
[markup.goldmark.extensions]
 | 
			
		||||
definitionList = true
 | 
			
		||||
footnote = true
 | 
			
		||||
strikethrough = true
 | 
			
		||||
table = true
 | 
			
		||||
taskList = true
 | 
			
		||||
[markup.goldmark.extensions.extras.insert]
 | 
			
		||||
enable = true
 | 
			
		||||
[markup.goldmark.extensions.extras.mark]
 | 
			
		||||
enable = true
 | 
			
		||||
[markup.goldmark.extensions.extras.subscript]
 | 
			
		||||
enable = true
 | 
			
		||||
[markup.goldmark.extensions.extras.superscript]
 | 
			
		||||
enable = true
 | 
			
		||||
 | 
			
		||||
[security]
 | 
			
		||||
enableInlineShortcodes = true
 | 
			
		||||
| 
						 | 
				
			
			@ -1,10 +0,0 @@
 | 
			
		|||
preview:
 | 
			
		||||
    hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged
 | 
			
		||||
 | 
			
		||||
USER:='root'
 | 
			
		||||
HOST:='1.1.1.1'
 | 
			
		||||
DIR:='/srv/folder'
 | 
			
		||||
 | 
			
		||||
deploy:
 | 
			
		||||
    hugo --minify
 | 
			
		||||
    rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder
 | 
			
		||||
| 
						 | 
				
			
			@ -18,7 +18,6 @@
 | 
			
		|||
        devShells.default = mkShell {
 | 
			
		||||
          buildInputs = [
 | 
			
		||||
            typst
 | 
			
		||||
            just
 | 
			
		||||
          ];
 | 
			
		||||
        };
 | 
			
		||||
      });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +0,0 @@
 | 
			
		|||
preview:
 | 
			
		||||
    typst watch main.typ
 | 
			
		||||
 | 
			
		||||
compile:
 | 
			
		||||
    typst compile main.typ
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue