I've had stuff published, sadly, on rather boring subjects.
I just made sure that what I wrote was easy to read, grammatically and syntactically correct and properly spelled.
It's the "easy to read" bit that is the hardest. If you can combine "easy to read" with "interesting to read" you are doing well.
If you can add "fun to read" to that, you have a career as an author.