Please point me to the ones that describe when/how the Pyramids were built.
Which was the context of my comment.
Well the Famine Stela mentions the invention of pyramid building by Pharoah Zhoser and high priest Imhotep, and refers to the pyramids as tombs/temples for the king. Then there are the Pyramid Texts, which were inscribed on pyramids and detail the funerary rites and spells for the deceased Pharaohs. The Famine Stela is probably a Ptolemaic copy of an older text, but the Pyramid Texts date back to 2000-2500 BC. There is also the more recent discovery of the tombs of the pyramid builders at Giza, which contained hieroglyphics about the work gangs that built the pyramids.