Skip to content

Commit 1eafc74

Browse files
committed
starting mkdocs material
1 parent d952598 commit 1eafc74

File tree

5 files changed

+129
-0
lines changed

5 files changed

+129
-0
lines changed

docs/index.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Welcome to micro**BioRust**
2+
3+
A blazing-fast, sustainable bioinformatics toolkit written in [Rust](https://www.rust-lang.org/) — for microbial genomics, file parsing, and data exploration.
4+
5+
---
6+
7+
## Features
8+
9+
- ⚡ High-performance parsing for Bioinformatics (e.g. GenBank, GFF3, EMBL)
10+
- 🦀 Built in Rust for speed and safety
11+
- 🔄 Python bindings via PyO3 for InterOp - Rust meets Python
12+
- 📦 Open source and community-driven
13+
14+
---
15+
16+
## Get Started
17+
18+
Add to your Cargo.toml
19+
```cargo add microBioRust```
20+
21+
to add the whole workspace
22+
```cargo add seqmetrics
23+
cargo add heatmap
24+
cargo add microbiorust-py```
25+
26+
or clone the repo
27+
```git clone https://github.com/LFloffman/microBioRust.git```
28+
29+
Build the project
30+
```cargo build```
31+
32+
Run all the tests
33+
```cargo test```

docs/installation.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
**How to Install**
2+
3+
**Install Rust (recommended method):**
4+
5+
Please see [here](https://www.rust-lang.org/tools/install) for base environment installation details for Rust programming language
6+
7+
For MacOSX, Linux or other unix OS you can install Rust _via_:
8+
9+
```curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh```
10+
11+
For further details on Windows please see: [other install](https://forge.rust-lang.org/infra/other-installation-methods.html)
12+
13+
**Install with Conda:**
14+
*Disclaimer:* While conda is a powerful package manager, it is primarily designed for managing Python environments, and the
15+
Rust package available may not always be up-to-date or include all the necessary components
16+
17+
```conda install conda-forge::rust```
18+
19+
20+
**Install with Python for Rust with Python InterOp**
21+
To use Python Interoperability you will need to install Python and additionally you may need (even if in a conda environment):
22+
23+
For Linux:
24+
```export LD_LIBRARY_PATH=[directory where python is located]```
25+
26+
For MacOSX:
27+
```export DYLD_LIBRARY_PATH=[directory where python is located]```
28+
29+
For Windows please see this StackOverflow issue for a fix: [fix here](https://stackoverflow.com/questions/79627918/cant-set-python-version-when-running-rust-analyzer-and-pyo3-on-wsl/79627921#79627921)
30+
31+
32+
33+
34+
35+

docs/stylesheets/extra.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:[email protected]&display=swap');
2+
3+
/* Light mode (scheme: default) */
4+
[data-md-color-scheme="default"] {
5+
--md-default-bg-color: #fefcfb;
6+
--md-default-fg-color: #1f2128;
7+
--md-primary-fg-color: #e45a28;
8+
--md-accent-fg-color: #f4a63a;
9+
}
10+
11+
/* Dark mode (scheme: slate) */
12+
[data-md-color-scheme="slate"] {
13+
--md-default-bg-color: #1f2128;
14+
--md-default-fg-color: #fefcfb;
15+
--md-primary-fg-color: #F4A63A;
16+
--md-accent-fg-color: #E45928;
17+
}
18+
19+
/* Light mode */
20+
[data-md-color-scheme="default"] h1,
21+
[data-md-color-scheme="default"] h1 strong,
22+
[data-md-color-scheme="default"] h2 {
23+
font-family: 'Roboto Slab', sans-serif;
24+
font-weight: 400 !important;
25+
color: #333333 !important; /* Choose your light mode color */
26+
}
27+
28+
/* Dark mode */
29+
[data-md-color-scheme="slate"] h1,
30+
[data-md-color-scheme="slate"] h1 strong,
31+
[data-md-color-scheme="slate"] h2 {
32+
font-family: 'Roboto Slab', sans-serif;
33+
font-weight: 400 !important;
34+
color: #FEFCFB !important; /* Your dark mode color */
35+
}
36+
.md-typeset h1 strong {
37+
font-weight: 600 !important;
38+
}

docs/usage.md

Whitespace-only changes.

mkdocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
site_name: microBioRust docs
2+
theme:
3+
name: material
4+
font:
5+
text: "Open Sans"
6+
palette:
7+
- scheme: default
8+
toggle:
9+
icon: material/weather-night
10+
name: Switch to dark mode
11+
primary: custom
12+
accent: custom
13+
- scheme: slate
14+
toggle:
15+
icon: material/weather-sunny
16+
name: Switch to light mode
17+
primary: custom
18+
accent: custom
19+
features:
20+
- navigation.tabs
21+
custom_dir: overrides
22+
extra_css:
23+
- stylesheets/extra.css

0 commit comments

Comments
 (0)