Skip to content

Commit a9aff44

Browse files
[libc][docs] reorganize documentation (llvm#118836)
This commit does a few things: * creates libc/docs/headers/ and moves all user API related headers under it. * updates paths and docgen * updates the top level index to put these headers under a new "Implementation Status" tab. * rename some of the files to be foo.rst for foo.h (except strings, which is currently a mix of string.h and stdlib.h) * update the heading of some files to be in the form foo.h.
1 parent cfa582e commit a9aff44

File tree

17 files changed

+45
-38
lines changed

17 files changed

+45
-38
lines changed

libc/docs/complex.rst renamed to libc/docs/headers/complex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. include:: check.rst
1+
.. include:: ../check.rst
22

33
=========
44
complex.h

libc/docs/ctype.rst renamed to libc/docs/headers/ctype.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. include:: check.rst
1+
.. include:: ../check.rst
22

33
=======
44
ctype.h

libc/docs/fenv.rst renamed to libc/docs/headers/fenv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. include:: check.rst
1+
.. include:: ../check.rst
22

33
======
44
fenv.h

libc/docs/headers/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Implementation Status
2+
=====================
3+
4+
.. toctree::
5+
:maxdepth: 1
6+
7+
complex
8+
ctype
9+
fenv
10+
math/index.rst
11+
search
12+
setjmp
13+
signal
14+
stdbit
15+
stdio
16+
strings
17+
threads
18+
time

libc/docs/math/index.rst renamed to libc/docs/headers/math/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. _math:
22

3-
==============
4-
Math Functions
5-
==============
3+
======
4+
math.h
5+
======
66

7-
.. include:: ../check.rst
7+
.. include:: ../../check.rst
88

99
.. raw:: html
1010

File renamed without changes.

libc/docs/math/stdfix.rst renamed to libc/docs/headers/math/stdfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
StdFix Functions
33
================
44

5-
.. include:: ../check.rst
5+
.. include:: ../../check.rst
66

77
Standards and Goals
88
-------------------

libc/docs/libc_search.rst renamed to libc/docs/headers/search.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
=============
2-
Search Tables
3-
=============
1+
========
2+
search.h
3+
========
44

5-
.. include:: check.rst
5+
.. include:: ../check.rst
66

77
---------------
88
Source Location

libc/docs/setjmp.rst renamed to libc/docs/headers/setjmp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. include:: check.rst
1+
.. include:: ../check.rst
22

33
========
44
setjmp.h

libc/docs/signal.rst renamed to libc/docs/headers/signal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. include:: check.rst
1+
.. include:: ../check.rst
22

33
========
44
signal.h

0 commit comments

Comments
 (0)