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

libc/docs/stdbit.rst renamed to libc/docs/headers/stdbit.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
stdbit.h

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

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

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

77
---------------
88
Source location

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

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

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

77
---------------
88
Source location

libc/docs/threads.rst renamed to libc/docs/headers/threads.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
threads.h

libc/docs/date_and_time.rst renamed to libc/docs/headers/time.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
=======================
2-
Date and Time Functions
3-
=======================
1+
======
2+
time.h
3+
======
44

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

77
---------------
88
Source location

libc/docs/index.rst

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,8 @@ stages there is no ABI stability in any form.
6464
:caption: Status
6565

6666
compiler_support
67-
date_and_time
68-
math/index.rst
69-
strings
70-
stdio
71-
stdbit
72-
fenv
73-
libc_search
67+
headers/index.rst
7468
c23
75-
ctype
76-
complex
77-
signal
78-
threads
79-
setjmp
8069

8170
.. toctree::
8271
:hidden:

libc/utils/docgen/docgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def print_macros_rst(header: Header, macros: Dict):
161161

162162

163163
def print_impl_status_rst(header: Header, api: Dict):
164-
print(".. include:: check.rst\n")
164+
print(".. include:: ../check.rst\n")
165165

166166
print("=" * len(header.name))
167167
print(header.name)

0 commit comments

Comments
 (0)