elixir-lang / ex_doc

ExDoc produces HTML and EPUB documentation for Elixir projects
http://elixir-lang.org
Other
1.44k stars 324 forks source link

EPUB styles #1074

Open milmazz opened 5 years ago

milmazz commented 5 years ago

Hello @elixir-lang/exdoc

I will try to fix all the issues reported by epubcheck after producing the EPUB document for elixir-lang/elixir/ this week that I have some time, but I was wondering if there is any volunteer that could help me improving the CSS styles for the EPUB document.

I would like to see something as polished as the EPUB document for the Swift programming language:

Screen Shot 2019-07-30 at 11 42 02 AM

Any help is more than welcome :)

josevalim commented 5 years ago

Is the swift epub open source? If so, we can check the license of the CSS files and see if we are allowed to use them. If so, we can add it and do some modifications to it (minor ones, like making the border light purple?).

milmazz commented 5 years ago

@josevalim Yes, the Swift EPUB use these three CSS files from the Sphinx team (BSD license):

josevalim commented 5 years ago

I believe we can use them then. We just need to make sure to keep the notices in the .css files when we copy their contents!

cgerling commented 12 months ago

I was searching for open issues and found this one. Is this still something to be addressed?

josevalim commented 12 months ago

Yes, it is!

cgerling commented 11 months ago

Cool, I was looking at the suggested approach and there are a lot of incompatibilities between the referenced CSS files and the HTML structure that ex_doc produces:

Considering the issues described above and the assumption that most of the imported CSS won't be used, I think it might be easier to create a CSS specific for ex_doc rather than importing an external CSS. @josevalim do you have any issues with going with that approach instead of the original one?

josevalim commented 11 months ago

Yes, take any approach you'd like. :) I agree that we shouldn't import the CSS as is and maybe not even all of it. Whatever we can do to improve the current one is great though. :)

josevalim commented 10 months ago

Now that Erlang support in ExDoc is almost complete, we are gearing towards v1.0. So if someone would like to pick this up, it would be awesome.

cgerling commented 10 months ago

Sorry, didn't have much spare time recently but I do have most of the styling for the code blocks, including the line numbers. The only issue is that the numbering is not reliable because there is no way to distinguish newlines from whitespace in the makeup output