forked from andonome/lk
		
	Merge branch 'master' into vhs
This commit is contained in:
		| @@ -1,9 +1,9 @@ | |||||||
| --- | --- | ||||||
| title: "git secret" | title: "git-secret" | ||||||
| tags: [ "data", "git" ] | tags: [ "data", "git" ] | ||||||
| --- | --- | ||||||
|  |  | ||||||
| This utility is largely useless, as it can only identify people by their email. | This utility is largely useless, as it can only identify people by their email. | ||||||
| So if someone has multiple GPG keys associated with one email, the tool will not work. | So if someone has multiple GPG keys associated with one email, the tool will not work. | ||||||
|  |  | ||||||
| Worse than not working, it may 'suddenly' stop working as you try to transfer a secret to someone, who then discovers that `git-secret` requires them to mess about with their GPG keyring in order to use the repository. | A broken tool is better than a tool which will break soon. | ||||||
|   | |||||||
| @@ -9,6 +9,14 @@ Turn a markdown file into a pdf: | |||||||
| lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf | lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | *Example:* put [this Makefile](lowdown/example.txt) in a directory, rename it `Makefile`, then do: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ```bash | ||||||
|  | make example | ||||||
|  | make | ||||||
|  | ``` | ||||||
|  |  | ||||||
| To give the document a title, put that title in the metadata: | To give the document a title, put that title in the metadata: | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
|   | |||||||
							
								
								
									
										36
									
								
								vision/lowdown/example.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								vision/lowdown/example.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | |||||||
|  | output: all | ||||||
|  |  | ||||||
|  | .PHONY: example | ||||||
|  | example: html/foot.html html/head.html | ||||||
|  | 	mkdir -p articles/ | ||||||
|  | 	fortune > articles/fort_1.md | ||||||
|  | 	fortune > articles/fort_2.md | ||||||
|  |  | ||||||
|  | HTML = $(patsubst articles/%.md,public/%.html,$(wildcard articles/*.md)) | ||||||
|  |  | ||||||
|  | $(HTML): public/ articles/ $(wildcard html/*) | ||||||
|  |  | ||||||
|  | html/head.html: | ||||||
|  | 	@mkdir $(@D) | ||||||
|  | 	echo '<head> Something about CSS probably </head>' > $@ | ||||||
|  | 	echo '<body>' >> $@ | ||||||
|  |  | ||||||
|  | html/foot.html: html/head.html | ||||||
|  | 	echo '</body>' >> $@ | ||||||
|  |  | ||||||
|  | public/%.html : articles/%.md | ||||||
|  | 	cat html/head.html > $@ | ||||||
|  | 	lowdown $< >> $@ | ||||||
|  | 	cat html/foot.html >> $@ | ||||||
|  |  | ||||||
|  | .PHONY: all | ||||||
|  | all : $(HTML) | ||||||
|  |  | ||||||
|  | articles/: | ||||||
|  | 	mkdir $@ | ||||||
|  |  | ||||||
|  | public/: | ||||||
|  | 	mkdir $@ | ||||||
|  |  | ||||||
|  | clean : | ||||||
|  | 	rm -rf public | ||||||
		Reference in New Issue
	
	Block a user