Skip to content

Commit 2fb128e

Browse files
committed
initial commit - templated book
0 parents  commit 2fb128e

13 files changed

Lines changed: 211 additions & 0 deletions

File tree

.copier-answers.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2+
_commit: 87f724d
3+
_src_path: https://github.com/gregcaporaso/q2docs-template
4+
author_website: https://cap-lab.bio
5+
book_author: Greg Caporaso
6+
book_id: news.rachis.org
7+
book_title: rachis project news
8+
book_type: Plugin documentation
9+
plugin_name: news.rachis.org

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
book/references/plugin-reference
2+
book/references/q2doc.bib
3+
book/_build/
4+
book/data/
5+
.locks/
6+
.DS_Store

.readthedocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
python: "mambaforge-latest"
12+
jobs:
13+
create_environment:
14+
- conda env create -p .env/ --file environment-files/readthedocs.yml
15+
build:
16+
html:
17+
#- PATH=$(pwd)/.env/bin/:$PATH q2doc refresh-cache
18+
- PATH=$(pwd)/.env/bin/:$PATH make html
19+
- mkdir -p $READTHEDOCS_OUTPUT
20+
- cp -a book/_build/* $READTHEDOCS_OUTPUT/
21+
22+
conda:
23+
environment: environment-files/readthedocs.yml

Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# helpers
2+
_copy-env-file:
3+
cp environment-files/readthedocs.yml book/_static/environment.yml
4+
5+
_copy-data:
6+
@if [ -d "book/data/" ]; then \
7+
cp -r book/data/ book/_build/html/data/; \
8+
echo "Copied data directory."; \
9+
else \
10+
echo "book/data/ not found, skipping copy."; \
11+
fi
12+
13+
_build-html:
14+
cd book && jupyter book build --html
15+
16+
_build-fast-preview:
17+
cd book && Q2DOC_FASTMODE= jupyter book build --html
18+
19+
_build-preview:
20+
cd book && Q2DOC_PREVIEW= jupyter book build --html
21+
22+
# main targets
23+
24+
autodoc:
25+
q2doc autodoc --singlepage --plugin news.rachis.org --output plugin-reference book
26+
27+
28+
html: _copy-env-file _build-html _copy-data
29+
30+
fast-preview: _copy-env-file _build-fast-preview _copy-data
31+
32+
preview: _copy-env-file _build-preview _copy-data
33+
34+
serve:
35+
npx serve book/_build/html/ -p 4000
36+
37+
clean:
38+
rm -rf book/_build/html/

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# rachis project news source
2+
3+
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/copier-org/copier)
4+
5+
## Development instructions
6+
7+
The following sub-sections illustrate how to develop this documentation.
8+
9+
### Create the development environment
10+
11+
To build this documentation locally for development purposes, first create your development environment.
12+
13+
```
14+
cd news.rachis.org
15+
conda env create -n news.rachis.org --file environment-files/readthedocs.yml
16+
conda activate news.rachis.org
17+
q2doc refresh-cache
18+
```
19+
20+
### Build the book
21+
22+
Next, build the book:
23+
24+
```
25+
make html
26+
```
27+
28+
### Serve the book locally
29+
30+
Finally, run the following to serve the built documentation locally:
31+
32+
```
33+
make serve
34+
```
35+
36+
Have fun!

book/_static/favicon.ico

33.8 KB
Binary file not shown.

book/_static/logo-dark.png

660 KB
Loading

book/_static/logo-light.png

670 KB
Loading

book/intro.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Introduction
2+
3+
:::{tip} Are you in the right place?
4+
5+
This is *rachis project news*, a collection of articles about the rachis project (formerly known as the QIIME 2 Framework).
6+
If you're looking to get started with QIIME 2, or for general information about the project, there are better resources.
7+
8+
Are you looking for:
9+
- the QIIME 2 homepage? That's [https://qiime2.org](https://qiime2.org).
10+
- learning resources for microbiome marker gene (i.e., amplicon) analysis? See the [QIIME 2 *amplicon distribution* documentation](https://amplicon-docs.qiime2.org).
11+
- learning resources for microbiome metagenome analysis? See the [MOSHPIT documentation](https://moshpit.qiime2.org).
12+
- installation instructions, plugins, books, videos, workshops, or resources? See the [QIIME 2 Library](https://library.qiime2.org).
13+
- general help? See the [QIIME 2 Forum](https://forum.qiime2.org)
14+
- information about the author? See [https://cap-lab.bio](https://cap-lab.bio).
15+
16+
Otherwise, if you're specifically looking for *rachis project news*, you're in the right place.
17+
[Read on... 📖](#tutorial)
18+
:::
19+
20+
## License
21+
22+
*rachis project news* (©2025) by [Greg Caporaso](https://cap-lab.bio) is licensed under [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en).

book/myst.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See docs at: https://mystmd.org/guide/frontmatter
2+
version: 1
3+
project:
4+
id: news.rachis.org
5+
title: rachis project news
6+
# description:
7+
keywords: ["QIIME", "QIIME 2", "microbiome", "metagenome"]
8+
# uncommenting "authors" will put the author list on every page
9+
# authors: ["Greg Caporaso"]
10+
# github:
11+
references:
12+
q2doc-api-target: https://develop.qiime2.org/en/latest/
13+
q2doc-usage-target: https://use.qiime2.org/en/latest/
14+
q2doc-library-target: https://library.qiime2.org
15+
q2doc-amplicon-target: https://amplicon-docs.readthedocs.io/en/latest/
16+
17+
plugins:
18+
- type: executable
19+
path: q2doc-plug.py
20+
21+
toc:
22+
- file: intro.md
23+
- file: tutorial.md
24+
25+
- title: References
26+
children:
27+
- title: Plugin Reference
28+
children:
29+
- pattern: plugin-reference/plugins/*.md
30+
- title: Artifact Classes and Formats
31+
children:
32+
- pattern: plugin-reference/artifacts/*.md
33+
34+
35+
downloads:
36+
- file: _static/environment.yml
37+
title: Conda environment file
38+
39+
site:
40+
template: https://github.com/ebolyen/myst-book-theme-poc.git
41+
options:
42+
folders: true
43+
favicon: _static/favicon.ico
44+
logo: _static/logo-light.png
45+
logo_dark: _static/logo-dark.png
46+
pretty_urls: false

0 commit comments

Comments
 (0)