gravitational / docs

Source code backing goteleport.com/docs
https://goteleport.com/docs
Apache License 2.0
11 stars 13 forks source link

If an include starts with another include, the nested include will not render #461

Open greedy52 opened 2 months ago

greedy52 commented 2 months ago

Steps to repro:

Screenshot 2024-05-06 at 10 20 21 AM

docs/pages/database-access/reference/aws.mdx page sources:

(!docs/pages/includes/database-access/reference/rds-action-notes-on-modify.mdx!)  

And this include has the following content:

(!docs/pages/includes/database-access/reference/rds-action-notes.mdx!)                                                                                                                                                                          

Teleport uses `rds:ModifyDBInstance` and `rds:ModifyDBCluster` to automatically                                                                                                                                                  
enable [IAM                                                                                                                                                                                                    
authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html)                                                                                                        
on the RDS instance and the Aurora cluster, respectively. You can omit these                                                                                                                           
permissions if IAM authentication is already enabled. 

Workaround 1: Remove the nested include and let the main page include both.

Workaround 2: Add {{}} at the beginning for the include.