CP: Fix the path where footer is written. (#114947)

* Add a script to post-process docs. (#112228)

* Do not upgrade packages in dev/bot.

* Fix the path where footer is written. (#114469)

The footer file was being written in dev/bot instead of dev/docs.

Bug: https://github.com/flutter/flutter/issues/113805

Co-authored-by: Casey Hillers <chillers@google.com>
diff --git a/dev/bots/post_process_docs.dart b/dev/bots/post_process_docs.dart
index 8be4123..b88f04f 100644
--- a/dev/bots/post_process_docs.dart
+++ b/dev/bots/post_process_docs.dart
@@ -65,7 +65,7 @@
   final File versionFile = File('version');
   final String version = versionFile.readAsStringSync();
   // Recreate footer
-  final String publishPath = path.join(docsPath, 'doc', 'api', 'footer.js');
+  final String publishPath = path.join(docsPath, '..', 'docs', 'doc', 'flutter', 'footer.js');
   final File footerFile = File(publishPath)..createSync(recursive: true);
   createFooter(footerFile, version);
 }