lore dumping is usually not the best thing to do in the story unless it is absolutely relevant. You can write about the world and the events within it but, much like DMing, you will have a lot more information that the average reader will not know or care about. Maybe an option would be to include a lore guide that someone could read if they are interested in the rest of the world building not included in the story itself.