fceruti
Using monospace in docs
I’m trying to add an ascii diagram to a @moduledoc, but when I generate the docs using ex_docs’s mix docs, the output doesn’t look well because of the non-monospace font it’s using.
Is there any way I can tell the docs to use a monospace font here?
┌──────┐
│ User │
└──────┘
◆
│
┌──────────┐
│ Settings │
└──────────┘
Marked As Solved
lud
You could use the :assets config option to provide your own CSS and use the :before_closing_head_tag to call that CSS into your docs.
Alternatively, as docs are rendered using markdown, you should be able to output a code block by indenting your diagram with four spaces.
Also Liked
fceruti
Thanks, you definitely pointed me in the right direction. For anyone interested, I found this link very useful: https://medium.com/@takanori.ishikawa/customize-how-your-exdoc-documentation-looks-a10234dbb4c9
Last Post!
fceruti
Thanks, you definitely pointed me in the right direction. For anyone interested, I found this link very useful: https://medium.com/@takanori.ishikawa/customize-how-your-exdoc-documentation-looks-a10234dbb4c9
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










