Joshua 8

30 The command to pronounce the blessings and curses was given in Deu 11:29-30 and repeated with more details in Deu 27:12-26.
31 This ceremony was to confirm the covenant between Israel and God. The altar and sacrifice signified that Israel worshiped God alone. The reading of, and agreement with, the Law indicated that they were willing to live by God's terms. The pronouncements of blessings and curses were to remind them that their observance of their vows to God had consequences (potentially positive or negative). This is like a contract between a king and his people.

This regulation for the altar is found in Exo 20:24-26. Burnt offerings were given to atone for sins while peace offerings showed that God fellowshipped with His people.

32 Joshua was not a king, per say, but as Israel's leader, he took on a role similar to what a king would have. An important part of leading God's people is leading them God's way. For this reason, kings were commanded to make their own copy of the Law so they could meditate on it daily and rule the way God desired (Deu 17:18-20). Joshua copied the Law onto the stones of the altar. Thus, this was not his personal copy, but a copy that the whole community could access. It is not the leader only who needs to know about God and His regulations -- all of God's people need to know Him.
33 The priests stood in the valley with the ark. Six tribes stood on each of the lower slopes of the mountain. What the tribes called out from one mountain could be heard on the other.

"Strangers" are mentioned. These were those who, like Rahab's family, were not descendants of Israel, but had joined the Israelite community by faith.

35 This probably took a long time to do, but it was important. It was also important that everyone knew the requirements of the Law. Women and children were not excluded. This shows that all people are important to God, and all are responsible for knowing Him.