Then Joshua built an altar on Mount Ebal to the LORD, the God of Israel.
References for Joshua 8:30
This was exactly what Moses the LORD's servant had commanded the Israelites. It is what is written in the Instruction scroll from Moses: "an altar of crude stones against which no iron tool has swung." On it they offered entirely burned offerings to the LORD and sacrificed well-being offerings.
References for Joshua 8:31
There, in the presence of the Israelites, Joshua wrote on the stones a copy of the Instruction from Moses, which Moses had written earlier.
All Israel—with its elders, officers, and judges—were standing on either side of the chest. They were facing the levitical priests who carry the LORD's chest containing the covenant. They included both immigrants and full citizens. Half stood facing Mount Gerizim and half stood facing Mount Ebal. This was exactly what Moses the LORD's servant had initially commanded for the blessing of the Israelite people.
Afterward, Joshua read aloud all the words of the Instruction, both blessing and curse, in agreement with everything written in the Instruction scroll.
There wasn't a single word of all that Moses had commanded that Joshua failed to read aloud in the presence of the entire assembly of Israel. This assembly included the women and small children, along with the immigrants who lived among them.