[libc-commits] [PATCH] D137090: [libc] Add example programs and their CMake build and instructions.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Nov 4 01:39:24 PDT 2022
sivachandra added inline comments.
================
Comment at: libc/examples/README.md:15
+
+```
+$> cd <example> # example $> cd hello_world
----------------
jeffbailey wrote:
> sivachandra wrote:
> > jeffbailey wrote:
> > > +.. code-block:: sh ? (Here and below)
> > I think the the `.. code-block::` syntax is for `.rst` files? This is a `.md` file to be rendered like the README.md file here: https://github.com/llvm/llvm-project/tree/main/libc/src/__support/CPP. The idea is that this is a less formal document as opposed to the docs in the `docs` directory which are of a formal nature. I am calling it "less formal" to imply that this will have much more churn than the docs in the `docs` directory.
> Ah! I hadn't realized that this isn't an rst file.
>
> So, looking at: https://github.github.com/gfm/#info-string and https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code it looks like it's possible to do:
>
> ,,,bash (where those are backticks rather than commas, but this box is interpreting the MD if I use actual backticks)
>
> However, I have no idea how to test this before committing it =)
>
> I'm also not sure if you have to remove the "$> " as well.
I added `bash` as you suggested and removed the `$>`: https://github.com/llvm/llvm-project/tree/main/libc/examples
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137090/new/
https://reviews.llvm.org/D137090
More information about the libc-commits
mailing list