mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Docs: Use version name from readthedocs
Latest still gets -dev, but if it's a docs preview use the tag/branch name.
This commit is contained in:
		
							parent
							
								
									a20756676c
								
							
						
					
					
						commit
						ecff434886
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -62,8 +62,12 @@ autosectionlabel_prefix_document = True
 | 
			
		|||
autosectionlabel_maxdepth = 1
 | 
			
		||||
 | 
			
		||||
# set version
 | 
			
		||||
if os.getenv("READTHEDOCS") and os.getenv("READTHEDOCS_VERSION") == "latest":
 | 
			
		||||
    release = yosys_ver + "-dev"
 | 
			
		||||
if os.getenv("READTHEDOCS"):
 | 
			
		||||
    rtds_version = os.getenv("READTHEDOCS_VERSION")
 | 
			
		||||
    if rtds_version == "latest":
 | 
			
		||||
        release = yosys_ver + "-dev"
 | 
			
		||||
    else:
 | 
			
		||||
        release = rtds_version
 | 
			
		||||
else:
 | 
			
		||||
    release = yosys_ver
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue