With this extension a git hash can be easily referenced. The porters handbook versions chapter uses this extension as an example in the FreeBSD 14.0 version table. An example of use gitref:hash[repository="src|doc|ports",length=hash-longitude] The repository should be src, doc or ports. And if no length it's specified the macro will use 12 characters of the specified hash. PR: 253050 Submitted by: jhb@
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
| # FreeBSD documentation
 | |
| # $FreeBSD$
 | |
| 
 | |
| baseURL = "https://docs.freebsd.org/"
 | |
| title = "The FreeBSD Project"
 | |
| copyright = "BSD 2-clause 'Simplified' License"
 | |
| DefaultContentLanguage = "en"
 | |
| defaultContentLanguageInSubdir = true
 | |
| disablePathToLower = true
 | |
| theme = "beastie"
 | |
| disableKinds = [ "taxonomy", "taxonomyTerm" ]
 | |
| authors = [ "carlavilla@FreeBSD.org" ]
 | |
| preserveTOC = true
 | |
| ignoreFiles = [ "chapters-order.adoc$", "toc.adoc$", "toc-tables.adoc$", "toc-figures.adoc$", "toc-examples.adoc$", "toc-1.adoc$", "toc-2.adoc$", "toc-3.adoc$", "toc-4.adoc$", "toc-5.adoc$", "books.adoc$", "chapter.adoc$" ]
 | |
| enableRobotsTXT = true
 | |
| 
 | |
| [params]
 | |
|   websiteURL = "https://www.FreeBSD.org/"
 | |
| 
 | |
| [markup.asciidocExt]
 | |
|     preserveTOC = true
 | |
|     extensions = ["../shared/lib/man-macro.rb", "../shared/lib/inter-document-references-macro.rb", "../shared/lib/sectnumoffset-treeprocessor.rb", "../shared/lib/packages-macro.rb", "../shared/lib/git-macro.rb"]
 | |
| 
 | |
| [outputs]
 | |
| home = [ "HTML" ]
 | |
| page = [ "HTML" ]
 | |
| list = [ "HTML" ]
 | |
| single = [ "HTML" ]
 | |
| section = [ "HTML" ]
 |