Creating your ebooks
For me, creating ebooks has been all about knowledge consoldation and to be able to help others without my active time investment.
An offer you cant refuse: use your time to gain curated knowledge.
I was tinkering with ebooks creation here and with a website to show them here.
It was all about to extract knowledge from Kinddle clippings and I ended up creating some instead.
PDFs
PDFs are strange files, actually.
Thanks to R Language + Rmd + Latex, creating PDFs is very simple.
See the source code of the open ebooks Ive created for the docs here
#git clone https://github.com/JAlcocerT/JAlcocerT.git
#cd JAlcocerT/
# From the repo root
Rscript Z_ebooks/render.R \
--input Z_ebooks/dna-ebook.md \
--output Z_ebooks/dna-ebook.pdf \
--cover Z_ebooks/sample-cover.png
Astro x eBook PDF Landing
Create a web/ook WebAppYou could think about using your books as lead magnets:

Consider that there are interesting tools to work with PDFs!
Epubs
Now, the epub files are closer to htmls than we might expect.
And IMO they are trickier to create compared to PDFs.