mirror of
				https://github.com/fastapi/sqlmodel.git
				synced 2025-10-31 18:15:44 +08:00 
			
		
		
		
	📝 Add Jina's QA Bot to the docs to help people that want to ask quick questions (#263)
Co-authored-by: yanlong.wang <yanlong.wang@naiver.org> Co-authored-by: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
		 Sebastián Ramírez
					Sebastián Ramírez
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							6d969c5845
						
					
				
				
					commit
					e523e1e4c3
				
			
							
								
								
									
										31
									
								
								docs/overrides/main.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								docs/overrides/main.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | ||||
| {% extends "base.html" %} | ||||
| {%- block scripts %} | ||||
| {{ super() }} | ||||
| <script src="https://cdn.jsdelivr.net/npm/qabot@0.4"></script> | ||||
| <script> | ||||
|     // This prevents the global search from interfering with qa-bot's internal text input. | ||||
|     document.addEventListener('DOMContentLoaded', () => { | ||||
|       document.querySelectorAll('qa-bot').forEach((x) => { | ||||
|         x.addEventListener('keydown', (event) => { | ||||
|           event.stopPropagation(); | ||||
|         }); | ||||
|       }); | ||||
|     }); | ||||
| </script> | ||||
| <qa-bot  | ||||
|     server="https://tiangolo-sqlmodel.docsqa.jina.ai"  | ||||
|     theme="infer"  | ||||
|     title="SQLModel Bot" | ||||
|     description="SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness." | ||||
|     style="font-size: 0.8rem" | ||||
| > | ||||
|     <template> | ||||
|         <dl> | ||||
|             <dt>You can ask questions about SQLModel. Try:</dt> | ||||
|             <dd>Which Python version is supported?</dd> | ||||
|             <dd>How SQLModel interacts with the database?</dd> | ||||
|             <dd>How can I link tables?</dd> | ||||
|         </dl> | ||||
|     </template> | ||||
| </qa-bot> | ||||
| {%- endblock %} | ||||
| @ -3,6 +3,7 @@ site_description: SQLModel, SQL databases in Python, designed for simplicity, co | ||||
| site_url: https://sqlmodel.tiangolo.com/ | ||||
| theme: | ||||
|   name: material | ||||
|   custom_dir: docs/overrides | ||||
|   palette: | ||||
|   - scheme: default | ||||
|     primary: deep purple | ||||
|  | ||||
		Reference in New Issue
	
	Block a user