Menachos11: 2
אֶחָד שְׁתֵּי הַלֶּחֶם וְאֶחָד לֶחֶם הַפָּנִים, לִישָׁתָן וַעֲרִיכָתָן בַּחוּץ, וַאֲפִיָּתָן בִּפְנִים; וְאֵינָן דּוֹחוֹת אֶת הַשַּׁבָּת. רַבִּי יְהוּדָה אוֹמֵר: כָּל מַעֲשֵׂיהֶם בִּפְנִים. רַבִּי שִׁמְעוֹן אוֹמֵר: לְעוֹלָם הֱוֵי רָגִיל לוֹמַר שְׁתֵּי הַלֶּחֶם וְלֶחֶם הַפָּנִים כְּשֵׁרוֹת בָּעֲזָרָה וּכְשֵׁרוֹת בְּבֵית פָּאגִי.
Both the shtei halechem and the lechem hapanim are kneaded and shaped outside [the Temple Courtyard], and are baked within [it]; and they do not override the Sabbath. R’ Yehudah says: All their procedures are [performed] within [the Courtyard]. R’ Shimon says: Always be accustomed to say that the shtei halechem and the lechem hapanim are valid [both] in the Courtyard and in Beis Paggi.