@@ -61,17 +61,16 @@ func TestGenMdxTreeWritesNestedCommandPages(t *testing.T) {
6161 require .NoError (t , GenMdxTree (root , dir ))
6262
6363 rootContent := readTestFile (t , filepath .Join (dir , "index.mdx" ))
64- require .Contains (t , rootContent , "slug: doc/tools/cli/commands " )
64+ require .Contains (t , rootContent , "public: true " )
6565 require .Contains (t , rootContent , "[`algolia events`](/doc/tools/cli/commands/events)" )
6666
67- eventsContent := readTestFile (t , filepath .Join (dir , "events" , "index .mdx" ))
68- require .Contains (t , eventsContent , "slug: doc/tools/cli/commands/events " )
67+ eventsContent := readTestFile (t , filepath .Join (dir , "events.mdx" ))
68+ require .Contains (t , eventsContent , "public: true " )
6969 require .Contains (t , eventsContent , "[`algolia events sources`](/doc/tools/cli/commands/events/sources)" )
7070
71- listContent := readTestFile (t , filepath .Join (dir , "events" , "sources" , "list" , "index.mdx" ))
72- require .Contains (t , listContent , "slug: doc/tools/cli/commands/events/sources/list" )
73- require .Contains (t , listContent , "`algolia events sources list [flags]`" )
74- require .Contains (t , listContent , "`-F`, `--format`" )
71+ listContent := readTestFile (t , filepath .Join (dir , "events" , "sources" , "list.mdx" ))
72+ require .Contains (t , listContent , "algolia events sources list [flags]" )
73+ require .Contains (t , listContent , `<ParamField body="-F, --format">` )
7574}
7675
7776func TestGenMdxTreeSupportsCodeOnlyExamples (t * testing.T ) {
0 commit comments