mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-11-04 00:28:54 +00:00 
			
		
		
		
	
		
			
	
	
		
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								// https://gitlab.com/antora/antora/-/issues/132#note_712132072
							 | 
						||
| 
								 | 
							
								'use strict'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								module.exports.register = function({ config }) {
							 | 
						||
| 
								 | 
							
								    this.on('contentAggregated', ({ contentAggregate }) => {
							 | 
						||
| 
								 | 
							
								        contentAggregate.forEach(aggregate => {
							 | 
						||
| 
								 | 
							
								            if (aggregate.name === "" && aggregate.displayVersion === 5.6) {
							 | 
						||
| 
								 | 
							
								                aggregate.name = "ROOT";
							 | 
						||
| 
								 | 
							
								                aggregate.version = "5.6.0-RC1"
							 | 
						||
| 
								 | 
							
								                aggregate.startPage = "ROOT:index.adoc"
							 | 
						||
| 
								 | 
							
								                aggregate.displayVersion = `${aggregate.version}`
							 | 
						||
| 
								 | 
							
								                delete aggregate.prerelease
							 | 
						||
| 
								 | 
							
								            }
							 | 
						||
| 
								 | 
							
								            if (aggregate.version === "5.6.1" &&
							 | 
						||
| 
								 | 
							
								                    aggregate.prerelease == "-SNAPSHOT") {
							 | 
						||
| 
								 | 
							
								                aggregate.version = "5.6.1"
							 | 
						||
| 
								 | 
							
								                aggregate.displayVersion = `${aggregate.version}`
							 | 
						||
| 
								 | 
							
								                delete aggregate.prerelease
							 | 
						||
| 
								 | 
							
								            }
							 | 
						||
| 
								 | 
							
								        })
							 | 
						||
| 
								 | 
							
								    })
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function out(args) {
							 | 
						||
| 
								 | 
							
								    console.log(JSON.stringify(args, no_data, 2));
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function no_data(key, value) {
							 | 
						||
| 
								 | 
							
								    if (key == "data" || key == "files") {
							 | 
						||
| 
								 | 
							
								        return value ? "__data__" : value;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    return value;
							 | 
						||
| 
								 | 
							
								}
							 |