Skip to content

Commit 1863fdd

Browse files
committed
Switch docs from reStructuredText to markdown.
1 parent 5b7ef87 commit 1863fdd

File tree

4 files changed

+106
-131
lines changed

4 files changed

+106
-131
lines changed

orc-rt/docs/Building-ORC-RT.rst renamed to orc-rt/docs/Building-orc-rt.md

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
.. _Building_ORC_RT:
1+
# Building orc-rt
22

3-
==================
4-
Building ORC-RT
5-
==================
6-
7-
.. contents::
8-
:local:
9-
10-
.. _build instructions:
11-
12-
Getting Started
13-
===============
3+
## Getting Started
144

155
The basic steps needed to build orc-rt are:
166

17-
#. Checkout llvm-project:
7+
* Checkout llvm-project:
188

199
* ``cd where-you-want-llvm-to-live``
2010
* ``git clone https://github.com/llvm/llvm-project.git``
2111

22-
#. Configure and build orc-rt:
12+
* Configure and build orc-rt:
2313

2414
CMake is the only supported configuration system.
2515

@@ -38,17 +28,14 @@ The basic steps needed to build orc-rt are:
3828
Shared and static libraries for orc-rt should now be present in
3929
llvm/build/lib.
4030

41-
#. **Optional**: Install orc-rt
31+
* **Optional**: Install orc-rt
4232

4333
Remember Use the CMake option ``CMAKE_INSTALL_PREFIX`` to select a safe
4434
place to install orc-rt.
4535

4636
* ``make install-orc-rt`` --- Will install the libraries and the headers
4737

48-
.. _CMake Options:
49-
50-
CMake Options
51-
=============
38+
## CMake Options
5239

5340
Here are some of the CMake variables that are used often, along with a
5441
brief explanation and LLVM-specific notes. For full documentation, check the
@@ -66,24 +53,21 @@ CMake docs or execute ``cmake --help-variable VARIABLE_NAME``.
6653
**CMAKE_CXX_COMPILER**:STRING
6754
The C++ compiler to use when building and testing orc-rt.
6855

69-
.. _orc-rt-specific options:
70-
71-
orc-rt specific options
72-
--------------------------
56+
## orc-rt specific options
7357

74-
.. option:: ORC_RT_ENABLE_ASSERTIONS:BOOL
58+
* option:: ORC_RT_ENABLE_ASSERTIONS:BOOL
7559

7660
**Default**: ``ON``
7761

7862
Toggle assertions independent of the build mode.
7963

80-
.. option:: ORC_RT_ENABLE_PEDANTIC:BOOL
64+
* option:: ORC_RT_ENABLE_PEDANTIC:BOOL
8165

8266
**Default**: ``ON``
8367

8468
Compile with -Wpedantic.
8569

86-
.. option:: ORC_RT_ENABLE_WERROR:BOOL
70+
* option:: ORC_RT_ENABLE_WERROR:BOOL
8771

8872
**Default**: ``ON``
8973

orc-rt/docs/conf.py

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# orc-rt documentation build configuration file.
2+
# Orc-Rt documentation build configuration file.
43
#
54
# This file is execfile()d with the current directory set to its containing dir.
65
#
@@ -10,9 +9,7 @@
109
# All configuration values have a default; values that are commented out
1110
# serve to show the default.
1211

13-
import sys, os
1412
from datetime import date
15-
1613
# If extensions (or modules to document with autodoc) are in another directory,
1714
# add these directories to sys.path here. If the directory is relative to the
1815
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -22,16 +19,32 @@
2219

2320
# If your documentation needs a minimal Sphinx version, state it here.
2421
# needs_sphinx = '1.0'
25-
2622
# Add any Sphinx extension module names here, as strings. They can be extensions
2723
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28-
extensions = ["sphinx.ext.intersphinx", "sphinx.ext.todo"]
24+
extensions = [
25+
"sphinx.ext.todo",
26+
"sphinx.ext.mathjax",
27+
"sphinx.ext.intersphinx",
28+
"sphinx.ext.autodoc",
29+
]
30+
31+
# When building man pages, we do not use the markdown pages,
32+
# So, we can continue without the myst_parser dependencies.
33+
# Doing so reduces dependencies of some packaged llvm distributions.
34+
try:
35+
import myst_parser
36+
37+
extensions.append("myst_parser")
38+
except ImportError:
39+
if not tags.has("builder-man"):
40+
raise
41+
2942

3043
# Add any paths that contain templates here, relative to this directory.
3144
templates_path = ["_templates"]
45+
myst_heading_anchors = 6
3246

33-
# The suffix of source filenames.
34-
source_suffix = ".rst"
47+
import sphinx
3548

3649
# The encoding of source files.
3750
# source_encoding = 'utf-8-sig'
@@ -40,17 +53,19 @@
4053
master_doc = "index"
4154

4255
# General information about the project.
43-
project = "orc-rt"
44-
copyright = "2021-%d, LLVM Project" % date.today().year
56+
project = "Orc-Rt"
57+
copyright = "2017-%d, The Orc-Rt Team" % date.today().year
4558

4659
# The version info for the project you're documenting, acts as replacement for
4760
# |version| and |release|, also used in various other places throughout the
48-
# built documents.
61+
# built documents. These are currently set to zero because we don't use them.
62+
# Should somebody consider in the future to change them, they need to be updated
63+
# everytime a new release comes out.
4964
#
50-
# The short X.Y version.
51-
version = "17.0"
65+
# The short version.
66+
# version = '0'
5267
# The full version, including alpha/beta/rc tags.
53-
release = "17.0"
68+
# release = '0'
5469

5570
# The language for content autogenerated by Sphinx. Refer to documentation
5671
# for a list of supported languages.
@@ -60,11 +75,11 @@
6075
# non-false value, then it is used:
6176
# today = ''
6277
# Else, today_fmt is used as the format for a strftime call.
63-
today_fmt = "%Y-%m-%d"
78+
# today_fmt = '%B %d, %Y'
6479

6580
# List of patterns, relative to source directory, that match files and
6681
# directories to ignore when looking for source files.
67-
exclude_patterns = ["_build"]
82+
exclude_patterns = ["_build", "analyzer", "FIR/*"]
6883

6984
# The reST default role (used for this markup: `text`) to use for all documents.
7085
# default_role = None
@@ -78,7 +93,7 @@
7893

7994
# If true, sectionauthor and moduleauthor directives will be shown in the
8095
# output. They are ignored by default.
81-
show_authors = True
96+
# show_authors = False
8297

8398
# The name of the Pygments (syntax highlighting) style to use.
8499
pygments_style = "friendly"
@@ -103,7 +118,7 @@
103118

104119
# The name for this set of Sphinx documents. If None, it defaults to
105120
# "<project> v<release> documentation".
106-
# html_title = None
121+
html_title = "ORC Runtime"
107122

108123
# A shorter title for the navigation bar. Default is the same as html_title.
109124
# html_short_title = None
@@ -120,11 +135,11 @@
120135
# Add any paths that contain custom static files (such as style sheets) here,
121136
# relative to this directory. They are copied after the builtin static files,
122137
# so a file named "default.css" will overwrite the builtin "default.css".
123-
html_static_path = []
138+
# html_static_path = []
124139

125140
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
126141
# using the given strftime format.
127-
# html_last_updated_fmt = '%b %d, %Y'
142+
html_last_updated_fmt = "%b %d, %Y"
128143

129144
# If true, SmartyPants will be used to convert quotes and dashes to
130145
# typographically correct entities.
@@ -166,6 +181,9 @@
166181
# Output file base name for HTML help builder.
167182
htmlhelp_basename = "orc-rt-doc"
168183

184+
# If true, the reST sources are included in the HTML build as
185+
# _sources/name. The default is True.
186+
html_copy_source = False
169187

170188
# -- Options for LaTeX output --------------------------------------------------
171189

@@ -181,7 +199,8 @@
181199
# Grouping the document tree into LaTeX files. List of tuples
182200
# (source start file, target name, title, author, documentclass [howto/manual]).
183201
latex_documents = [
184-
("contents", "orc-rt.tex", "orc-rt Documentation", "LLVM project", "manual"),
202+
("Overview", "Orc-Rt.tex", "orc-rt Documentation", "The orc-rt Team",
203+
"manual"),
185204
]
186205

187206
# The name of an image file (relative to this directory) to place at the top of
@@ -209,7 +228,7 @@
209228

210229
# One entry per manual page. List of tuples
211230
# (source start file, name, description, authors, manual section).
212-
man_pages = [("contents", "orc-rt", "orc-rt Documentation", ["LLVM project"], 1)]
231+
man_pages = []
213232

214233
# If true, show URL addresses after external links.
215234
# man_show_urls = False
@@ -222,13 +241,7 @@
222241
# dir menu entry, description, category)
223242
texinfo_documents = [
224243
(
225-
"contents",
226-
"orc-rt",
227-
"orc-rt Documentation",
228-
"LLVM project",
229-
"orc-rt",
230-
"LLVM ORC Runtime",
231-
"Miscellaneous",
244+
"Overview",
232245
),
233246
]
234247

@@ -240,13 +253,3 @@
240253

241254
# How to display URL addresses: 'footnote', 'no', or 'inline'.
242255
# texinfo_show_urls = 'footnote'
243-
244-
245-
# FIXME: Define intersphinx configuration.
246-
intersphinx_mapping = {}
247-
248-
249-
# -- Options for extensions ----------------------------------------------------
250-
251-
# Enable this if you want TODOs to show up in the generated documentation.
252-
todo_include_todos = True

orc-rt/docs/index.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# LLVM ORC Runtime
2+
3+
## Overview
4+
5+
The ORC runtime provides executor-side support code for the LLVM ORC APIs.
6+
7+
```{eval-rst}
8+
.. toctree::
9+
:titlesonly:
10+
11+
Building-orc-rt
12+
```
13+
14+
### Current Status
15+
16+
The ORC Runtime is a new, experimental project. It is being actively developed,
17+
and neither the ABI nor API are stable. LLVM ORC API clients should be careful
18+
to use an ORC Runtime from the same build as their LLVM ORC libraries.
19+
20+
### Platform and Compiler Support
21+
22+
* TODO
23+
24+
The following minimum compiler versions are strongly recommended.
25+
26+
* Clang 16 and above
27+
28+
Anything older *may* work.
29+
30+
### Notes and Known Issues
31+
32+
* TODO
33+
34+
## Getting Involved
35+
36+
First please review our
37+
[Developer's Policy](https://llvm.org/docs/DeveloperPolicy.html) and
38+
[Getting started with LLVM](https://llvm.org/docs/GettingStarted.html).
39+
40+
**Bug Reports**
41+
42+
If you think you've found a bug in the ORC Runtime, please report it using
43+
the [LLVM bug tracker](https://github.com/llvm/llvm-project/labels/orc-rt/).
44+
Please use the tag "orc-rt" for new threads.
45+
46+
**Patches**
47+
48+
If you want to contribute a patch to th ORC runtime, please start by reading
49+
the LLVM
50+
[documentation about contributing](https://www.llvm.org/docs/Contributing.html).
51+
52+
**Discussion and Questions**
53+
54+
* TODO

orc-rt/docs/index.rst

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)