Skip to content

Move tutorial pages into a mdbook #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ exclude = [
"arrayfire/*",
]

[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "./scripts/mathjax.script", ]

[features]
algorithm = []
arithmetic = []
Expand Down
19 changes: 0 additions & 19 deletions doc/external_docs.css

This file was deleted.

171 changes: 0 additions & 171 deletions doc/vectorization.md

This file was deleted.

14 changes: 0 additions & 14 deletions generate_docs.sh

This file was deleted.

7 changes: 7 additions & 0 deletions scripts/generate_documentation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# this script meant to be run from the root of arrayfire-rust

cargo rustdoc -- --html-in-header ./scripts/mathjax.script

mdbook build tutorials-book && cp -r tutorials-book/book ./target/doc/arrayfire/
File renamed without changes.
1 change: 0 additions & 1 deletion src/arith/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,6 @@ mod op_assign {
bit_assign_func!(BitAndAssign, bitand_assign, bitand);
bit_assign_func!(BitOrAssign, bitor_assign, bitor);
bit_assign_func!(BitXorAssign, bitxor_assign, bitxor);

}

///Implement negation trait for Array
Expand Down
19 changes: 8 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,25 @@
//! not be concerned about low-level optimizations that are frequently required to
//! achieve high throughput on most parallel architectures.

//! This crate provides Rust bindings for the ArrayFire library. Given below table shows the rust bindings compatability with ArrayFire upstream. If you find any bugs, please report them on [github](https://github.com/arrayfire/arrayfire-rust/issues).
//! This crate provides Rust bindings for the ArrayFire library. Given below table shows
//! the rust bindings compatability with ArrayFire upstream. If you find any bugs,
//! please report them on [github](https://github.com/arrayfire/arrayfire-rust/issues).
//!
//! | arrayfire-rust crate | ArrayFire Upstream |
//! |:--------------|:---------|
//! | M.m.p1 | M.m.p2 |
//! |:--------------------:|:------------------:|
//! | M.m.p1 | M.m.p2 |
//!
//! Only, Major(M) & Minor(m) version numbers need to match. *p1* and *p2*
//! are patch/fix updates for `arrayfire-rust` & `ArrayFire` respectively,
//! and they don't need to match.
//!
//! ## Tutorials
//!
//! - [Getting Started with ArrayFire](./getting_started.html)
//! - [Introduction to Vectorization](./vectorization.html)
//! - [Array and Matrix Manipulation](./array_and_matrix_manipulation.html)
//! - [Indexing](./indexing.html)
//! - [Configure ArrayFire Environment](./configuring_arrayfire_environment.html)
//! Please go through our [tutorials](./book/index.html) book for more explanations on how to
//! use ArrayFire to speedup your code.

#![doc(
html_logo_url = "http://www.arrayfire.com/logos/arrayfire_logo_symbol.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://arrayfire.com/docs/rust"
html_root_url = "http://arrayfire.org/arrayfire-rust/arrayfire/index.html"
)]
#![warn(missing_docs)]
#![allow(non_camel_case_types)]
Expand Down
1 change: 1 addition & 0 deletions tutorials-book/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
11 changes: 11 additions & 0 deletions tutorials-book/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[book]
authors = ["Pradeep Garigipati"]
language = "en"
multilingual = false
src = "src"
title = "Rust Wrapper for ArrayFire HPC Library"

[output.html]
theme = "src/theme"
mathjax-support = true
default-theme = "ayu"
7 changes: 7 additions & 0 deletions tutorials-book/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Summary

- [Getting Started](./getting_started.md)
- [Introduction to Vectorization](./vectorization.md)
- [Array and Matrix Manipulation](./array_and_matrix_manipulation.md)
- [Indexing](./indexing.md)
- [Configuring ArrayFire Runtime Environment](./configuring_arrayfire_environment.md)
Loading