@@ -9,153 +9,119 @@ oneAPI Specifications
99.. image :: https://github.com/oneapi-src/oneapi-spec/workflows/CI/badge.svg
1010 :target: https://github.com/oneapi-src/oneapi-spec/actions?query=workflow%3ACI
1111
12- This repo contains the sources for the `oneAPI Specification `_.
12+ This repository contains the sources for the `oneAPI Specification `_. For the
13+ latest build from main branch, see
14+ `HTML <https://oneapi-src.github.io/oneAPI-spec >`__ and
15+ `PDF <https://rscohn2.github.io/oneAPI-spec/oneAPI-spec.pdf >`__.
1316
14- For the latest build from main branch, see `HTML
15- <https://oneapi-src.github.io/oneAPI-spec> `__ and `PDF
16- <https://rscohn2.github.io/oneAPI-spec/oneAPI-spec.pdf> `__.
17+ For more information about oneAPI, see
18+ `oneapi.com <https://oneapi.com >`__. For information about future releases of the
19+ oneAPI specification, see the `oneAPI Specification Roadmap <roadmap.rst >`__.
20+ To be notified about new releases, become a release-only watcher of this
21+ repo.
1722
18- For more information about oneAPI, see `oneapi.com
19- <https://oneapi.com> `__. For information about future releases of the
20- oneAPI specification, see the `roadmap <roadmap.rst >`__. To be
21- notified about new releases, become a release-only watcher of this
22- repo. See `contribute <CONTRIBUTING.rst >`__ for information about
23- contributing.
23+ The document is written using `reStructuredText `_ and built with `Sphinx `_ using
24+ a theme provided by `Read the Docs `_.
2425
25- The document is built with `Sphinx `_ using a theme provided by `Read
26- the Docs `_.
26+ .. contents ::
27+ :local:
28+ :depth: 1
2729
28- ---------------------------------
29- Editing with GitHub Web Interface
30- ---------------------------------
30+ -------
31+ License
32+ -------
3133
32- The simplest and quickest way to edit is directly in the GitHub web
33- interface. It has an editor, previewer, and lets you commit
34- changes. You won't need to install any local tools. The previewer
35- knows how to render RST, but not the sphinx directives so it will not
36- display exactly as the real document.
34+ The oneAPI specification is licensed under the Creative Commons Attribution 4.0
35+ International License.
3736
38- -------------------------
39- Working with a Local Copy
40- -------------------------
37+ See `LICENSE <LICENSE.rst >`__ for more information.
4138
42- For bigger edits, you will need a local version of the tools. Clone
43- this repo to your local system. scripts/oneapi.py is a helper script
44- for the maintenance tasks. You can also look at the source if you want
45- to do the same task manually.
39+ ----------
40+ Contribute
41+ ----------
42+
43+ See `CONTRIBUTING <CONTRIBUTING.rst >`__ for more information.
44+
45+ .. _build_spec :
46+
47+ -----------------------
48+ Build the Specification
49+ -----------------------
50+
51+ To build the specification document locally, clone this repository to your local
52+ system and follow the setup and build instructions. The setup and build steps
53+ make use of scripts/oneapi.py, a helper script for maintenance tasks. You can
54+ also look at the source if you want to see how to do the same task manually.
4655
4756Setup
4857-----
4958
50- Install Python 3, doxygen (>= 1.8.17), latex , etc. To install on **Ubuntu **::
59+ Install Python 3, Doxygen (>= 1.8.17), LaTeX , etc. To install on **Ubuntu **::
5160
5261 sudo scripts/install.sh
5362
5463Create and activate a Python virtual environment with all required tools::
5564
5665 python scripts/oneapi.py spec-venv
5766 source spec-venv/bin/activate
58-
67+
5968To install directly with pip::
6069
6170 pip install -r requirements.txt
6271
63- On Windows::
72+ To install on Windows::
6473
6574 python scripts\oneapi.py spec-venv
6675 spec-venv\Scripts\activate
67-
6876
69- Building the docs
70- -----------------
77+ Build the Docs
78+ --------------
7179
72- To build the html document::
80+ To build the HTML document, use the following command ::
7381
7482 python scripts/oneapi.py html
7583
7684The document is organized as a book with chapters. Each element of
7785oneAPI is its own chapter and can be built separately. For example, to
78- build the oneVPL chapter, do ::
86+ build the oneVPL chapter, use the following command ::
7987
8088 python scripts/oneapi.py html source/elements/oneVPL
81-
82- To see the docs, visit build/html/index.html in your browser using a
83- file:// URL. Build the pdf version with::
84-
85- python scripts/oneapi.py latexpdf
86-
87- And then view build/latexpdf/oneAPI-spec.pdf
88-
89- Editing Tools
90- -------------
9189
92- For simple edits to individual files, you can use the GitHub web
93- interface .
90+ To view the HTML docs, visit build/html/index.html in your browser using a
91+ file:// URL .
9492
95- **Emacs ** has a built-in ReST mode. It does some syntax highlighting and
96- helps with some of the tedious aspects of ReST. M-q will rejustify
97- long lines to fit the recommended 80 character line. It understands
98- ReST formatting and won't mess up lists. C-= is a Swiss army knife. It
99- will cycle between different characters for a section break adornment
100- (e.g. --, ===,...) It will make the section break adornment match the
101- size of the text. Probably a lot more.
93+ Build the pdf version wit the following command::
10294
103- **Visual Studio Code ** has extensions for previewers and automatic
104- linting. I could not find any support for rejustifying paragraphs to
105- 80 characters, which makes it difficult to use.
106-
107- ------------------
108- Submitting changes
109- ------------------
95+ python scripts/oneapi.py latexpdf
11096
111- Changes are submitted as PR's to this repo. PR's and push trigger the
112- CI to build the doc and save it as an artifact. If you are working in
113- a fork on github, commits to the main branch will build and publish
114- the doc in the github pages associated with the repo.
97+ The generated PDF will be located at build/latexpdf/oneAPI-spec.pdf.
11598
116- ------
11799Docker
118100------
119101
120- You can build a **Docker container ** image with::
102+ You can build a **Docker container ** image with the following command ::
121103
122104 python scripts/oneapi.py dockerbuild
123105
124106The tag will be rscohn2/oneapi-spec. The script copies your proxy settings in
125107the invoking shell so it will work inside the firewall.
126108
127- You can run a docker container with::
109+ You can run a docker container with the following command ::
128110
129111 python scripts/oneapi.py dockerrun
130112
131113--
132114CI
133115--
134116
135- We use GitHub actions. See `<.github/workflows/ci.yml >`_
136-
117+ We use GitHub actions. See `<.github/workflows/ci.yml >`_.
137118
138- -----------------------------
139- Creating a new version number
140- -----------------------------
119+ PR's trigger the CI to build the document and save it as an artifact. If you are
120+ working in a fork on GitHub, commits to the main branch will build and publish
121+ the document in the GitHub pages associated with the repository.
141122
142- Change version in `<oneapi-doc.json >`__ and update the table in
143- `<source/versions.rst >`__.
144123
145- ------------
146- More Reading
147- ------------
148-
149- * `oneAPI Specification Roadmap <roadmap.rst >`__
150- * `oneAPI Specification Style Guide <style-guide.rst >`_
151- * `Sphinx Documentation <http://www.sphinx-doc.org/en/master/ >`_
152- * `rst docs `_: User and reference manuals.
153- * `online editor/viewer `_: Web page that lets you type in some rst fragments
154- and view. Good for debugging.
155-
156- .. _`rst tutorial` : http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
157- .. _`rst docs` : http://docutils.sourceforge.net/rst.html
158- .. _`online editor/viewer` : http://rst.aaroniles.net/
159- .. _`oneAPI Specification` : https://spec.oneapi.com
124+ .. _`reStructuredText` : http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
160125.. _`Sphinx` : http://www.sphinx-doc.org/en/master/
161126.. _`Read the Docs` : https://readthedocs.org/
127+ .. _`oneAPI Specification` : https://spec.oneapi.com
0 commit comments