Example Page
A short lead description about this content page. It can be bold or italic and can be split over multiple paragraphs.
2 minute read
jq
mdformat
with mdformat-frontmatter
python-frontmatter
compile_commands.json
files generated in each library directory.cd
into it.Do:
# These paths need to be absolute
./scripts/generate-docs.sh $PWD/code $PWD/content/en/api
That’s all; you’ll find your API docs as markdown files in content/en/api
.
You can add content to them manually. The next time you run this command (hopefully on next
commit), the manual content will not be overwritten but the front matter will be updated.
It might not be this easy for your own code. What this actually does is to try and partially compile your code
with clang to figure out the AST of your code.
For it to work, your code needs to compile with clang.
This repository provides example API documentation of the libraries in code
folder.
You can access it through the main menu at the top right corner.
The Markdown files in content/en/docs
count as a user guide. On every commit, remember to check
if information there needs to be changed!
To make sure you understand the structure of the docs, we’ve setup two top level pages:
But the latter has a sub-page (Example Page) which you can reach from the left sidebar
or the navigation buttons at the bottom of the page.
Did working on this commit make you learn something new? Write a blog entry about it atcontent/en/blog
!
A short lead description about this content page. It can be bold or italic and can be split over multiple paragraphs.