Amazon.com Inc., which over more than two decades made itself the world’s largest book retailer, has created an unrivaled display window that can catapult titles from obscurity to must-reads.

More recently it has built something else: Its own line of published books.

When veteran book author Mark Sullivan tried to sell a World War II saga...