mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 02:43:41 +00:00 
			
		
		
		
	GH-103484: Docs: add linkcheck allowed redirects entries for most cases (#103569)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									e35e0f15eb
								
							
						
					
					
						commit
						f39e00f952
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		
							
								
								
									
										11
									
								
								Doc/conf.py
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Doc/conf.py
									
										
									
									
									
								
							|  | @ -254,9 +254,14 @@ | |||
| # Options for the link checker | ||||
| # ---------------------------- | ||||
| 
 | ||||
| # Ignore certain URLs. | ||||
| linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+'] | ||||
| 
 | ||||
| linkcheck_allowed_redirects = { | ||||
|     # bpo-NNNN -> BPO -> GH Issues | ||||
|     r'https://bugs.python.org/issue\?@action=redirect&bpo=\d+': 'https://github.com/python/cpython/issues/\d+', | ||||
|     # GH-NNNN used to refer to pull requests | ||||
|     r'https://github.com/python/cpython/issues/\d+': 'https://github.com/python/cpython/pull/\d+', | ||||
|     # :source:`something` linking files in the repository | ||||
|     r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*' | ||||
| } | ||||
| 
 | ||||
| # Options for extensions | ||||
| # ---------------------- | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rafael Fontenelle
						Rafael Fontenelle