[llvm-dev] Docs: Setting up two-column layout on docs homepage

Michael Spencer via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 12 16:22:15 PDT 2019


On Thu, Sep 12, 2019 at 3:40 PM via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> Quick update. I've decided to scratch the idea of using the raw directive
> to add html to the docs homepage. I realized today that in order to
> accomplish what I want (add two-column layout with links to individual
> topics), I would have to use hyperlinks. That seems undesirable given that
> it would make it easier to break the URL links if the LLVM docs site were
> ever moved/updated.
>
> I spent a few hours today trying to determine if there was a possible
> workaround. It doesn't look like there is. So for now I'll continue with my
> efforts using a single-column layout.
>
> -DeForest
>

Can you not use css for this?

div.body {
  column-count: 2;
}

You'll need some other cleanups to make it pretty, but it works.  There's
also flexbox and grid stuff you can do.  Flexbox works on all modern
browsers, and grid works on the major 4.

- Michael Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190912/aae563a0/attachment.html>


More information about the llvm-dev mailing list