Skip to content

Commit

Permalink
Add OpenCL 3.0 reference pages (generated from 3.0 spec sources)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddhack committed Sep 29, 2021
1 parent 508a939 commit f9068ae
Show file tree
Hide file tree
Showing 367 changed files with 266,208 additions and 11 deletions.
24 changes: 13 additions & 11 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
(<a href="specs/3.0-unified/html/OpenCL_Env.html">HTML</a>)
(<a href="specs/3.0-unified/pdf/OpenCL_Env.pdf">PDF</a>)
(June 30, 2021). </li>
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/3.0/docs/man/html/">
OpenCL 3.0 Reference Pages.</a> </li>
<li> <a href="https://www.khronos.org/files/opencl30-reference-guide.pdf">
OpenCL 3.0 Reference Guide.</a> </li>
</ul>
Expand Down Expand Up @@ -110,7 +112,7 @@
(<a href="specs/2.2/html/OpenCL_Cxx.html">HTML</a>)
(<a href="specs/2.2/pdf/OpenCL_Cxx.pdf">PDF</a>)
(July 19, 2019). </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/2.2/docs/man/html/">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/2.2/docs/man/html/">
OpenCL 2.2 Reference Pages.</a> </li>
<li> <a href="https://www.khronos.org/files/opencl22-reference-guide.pdf">
OpenCL 2.2 Reference Guide.</a> </li>
Expand All @@ -129,9 +131,9 @@
<li> OpenCL 2.1 Environment
<a href="specs/opencl-2.1-environment.pdf">
Specification</a>. </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/2.1/docs/man/xhtml/">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/">
OpenCL 2.1 Reference Pages.</a>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/2.1/docs/OpenCL-2.1-refcard.pdf">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/2.1/docs/OpenCL-2.1-refcard.pdf">
OpenCL 2.1 Quick Reference Card.</a> </li>
</ul>

Expand All @@ -148,9 +150,9 @@
<li> OpenCL 2.0 Extension
<a href="specs/opencl-2.0-extensions.pdf">
Specification </a> (March 11, 2016). </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/2.0/docs/man/xhtml/">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/">
OpenCL 2.0 Reference Pages.</a>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/2.0/docs/OpenCL-2.0-refcard.pdf">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/2.0/docs/OpenCL-2.0-refcard.pdf">
OpenCL 2.0 Quick Reference Card.</a> </li>
</ul>

Expand All @@ -164,9 +166,9 @@
<li> OpenCL 1.2 Extensions
<a href="specs/opencl-1.2-extensions.pdf">
Specification </a> (September 22, 2015). </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/1.2/docs/man/xhtml/">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/1.2/docs/man/xhtml/">
OpenCL 1.2 Reference Pages.</a> </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/1.2/docs/OpenCL-1.2-refcard.pdf">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/1.2/docs/OpenCL-1.2-refcard.pdf">
OpenCL 1.2 Quick Reference Card.</a> </li>
</ul>

Expand All @@ -181,9 +183,9 @@
<a href="http://www.cutt.co.jp/book/978-4-87783-256-8.html">
Japanese translation </a>
of the specification is also available. </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/1.1/docs/man/xhtml/">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/1.1/docs/man/xhtml/">
OpenCL 1.1 Reference Pages.</a> </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/1.1/docs/OpenCL-1.1-refcard.pdf">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/1.1/docs/OpenCL-1.1-refcard.pdf">
OpenCL 1.1 Reference Card.</a> </li>
</ul>

Expand All @@ -194,9 +196,9 @@
<li> OpenCL 1.0 API and C Language
<a href="specs/opencl-1.0.pdf">
Specification </a> (revision 48, October 6, 2009). </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/1.0/docs/man/xhtml/">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/">
OpenCL 1.0 Reference Pages.</a> </li>
<li> <a href="http://www.khronos.org/registry/OpenCL//sdk/1.0/docs/OpenCL-1.0-refcard.pdf">
<li> <a href="http://www.khronos.org/registry/OpenCL/sdk/1.0/docs/OpenCL-1.0-refcard.pdf">
OpenCL 1.0 Reference Card.</a> </li>
</ul>

Expand Down
68 changes: 68 additions & 0 deletions sdk/3.0/docs/katex/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# [<img src="https://khan.github.io/KaTeX/katex-logo.svg" width="130" alt="KaTeX">](https://khan.github.io/KaTeX/) [![Build Status](https://travis-ci.org/Khan/KaTeX.svg?branch=master)](https://travis-ci.org/Khan/KaTeX)

[![Join the chat at https://gitter.im/Khan/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Khan/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.

* **Fast:** KaTeX renders its math synchronously and doesn't need to reflow the page. See how it compares to a competitor in [this speed test](http://jsperf.com/katex-vs-mathjax/).
* **Print quality:** KaTeX’s layout is based on Donald Knuth’s TeX, the gold standard for math typesetting.
* **Self contained:** KaTeX has no dependencies and can easily be bundled with your website resources.
* **Server side rendering:** KaTeX produces the same output regardless of browser or environment, so you can pre-render expressions using Node.js and send them as plain HTML.

KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, and IE 8 - IE 11. A list of supported commands can be on the [wiki](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX).

## Usage

You can [download KaTeX](https://github.com/khan/katex/releases) and host it on your server or include the `katex.min.js` and `katex.min.css` files on your page directly from a CDN:

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js"></script>
```

#### In-browser rendering

Call `katex.render` with a TeX expression and a DOM element to render into:

```js
katex.render("c = \\pm\\sqrt{a^2 + b^2}", element);
```

If KaTeX can't parse the expression, it throws a `katex.ParseError` error.

#### Server side rendering or rendering to a string

To generate HTML on the server or to generate an HTML string of the rendered math, you can use `katex.renderToString`:

```js
var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}");
// '<span class="katex">...</span>'
```

Make sure to include the CSS and font files, but there is no need to include the JavaScript. Like `render`, `renderToString` throws if it can't parse the expression.

#### Rendering options

You can provide an object of options as the last argument to `katex.render` and `katex.renderToString`. Available options are:

- `displayMode`: `boolean`. If `true` the math will be rendered in display mode, which will put the math in display style (so `\int` and `\sum` are large, for example), and will center the math on the page on its own line. If `false` the math will be rendered in inline mode. (default: `false`)
- `throwOnError`: `boolean`. If `true`, KaTeX will throw a `ParseError` when it encounters an unsupported command. If `false`, KaTeX will render the unsupported command as text in the color given by `errorColor`. (default: `true`)
- `errorColor`: `string`. A color string given in the format `"#XXX"` or `"#XXXXXX"`. This option determines the color which unsupported commands are rendered in. (default: `#cc0000`)

For example:

```js
katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, { displayMode: true });
```

#### Automatic rendering of math on a page

Math on the page can be automatically rendered using the auto-render extension. See [the Auto-render README](contrib/auto-render/README.md) for more information.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md)

## License

KaTeX is licensed under the [MIT License](http://opensource.org/licenses/MIT).
1 change: 1 addition & 0 deletions sdk/3.0/docs/katex/contrib/auto-render.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added sdk/3.0/docs/katex/fonts/KaTeX_AMS-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_AMS-Regular.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_AMS-Regular.woff
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_AMS-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Fraktur-Bold.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Fraktur-Bold.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Fraktur-Bold.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Bold.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Bold.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Bold.woff
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Bold.woff2
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Italic.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Italic.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Italic.woff
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Italic.woff2
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Regular.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Regular.woff
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Main-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Italic.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Italic.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Italic.woff
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Regular.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Regular.woff
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Math-Regular.woff2
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_SansSerif-Bold.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_SansSerif-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Script-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Script-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size1-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size1-Regular.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size1-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size2-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size2-Regular.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size2-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size3-Regular.eot
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size3-Regular.ttf
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size3-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file added sdk/3.0/docs/katex/fonts/KaTeX_Size4-Regular.eot
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f9068ae

Please sign in to comment.