Skip to content

Commit c046162

Browse files
committed
Docs astro site: first pass
1 parent b47f089 commit c046162

34 files changed

Lines changed: 6291 additions & 37 deletions

.github/workflows/docs.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'docs/**'
8+
- '.github/workflows/docs.yml'
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: true
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: docs
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 22
37+
cache: pnpm
38+
cache-dependency-path: docs/pnpm-lock.yaml
39+
40+
- name: Install dependencies
41+
run: pnpm install --frozen-lockfile
42+
43+
- name: Build site
44+
run: pnpm build
45+
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: docs/dist
50+
51+
deploy:
52+
needs: build
53+
runs-on: ubuntu-latest
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
steps:
58+
- name: Deploy to GitHub Pages
59+
id: deployment
60+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ![rustar-aligner](docs/logo/rustar-logo.svg)
1+
# ![rustar-aligner](docs/src/assets/rustar-logo.svg)
22

33
A Rust reimplementation of [STAR](https://github.com/alexdobin/STAR) (Spliced Transcripts Alignment to a Reference), the widely-used RNA-seq aligner originally written in C++ by Alexander Dobin.
44

docs-old/logo/rustar-icon.png

-116 KB
Binary file not shown.

docs-old/logo/rustar-logo.png

-1.09 MB
Binary file not shown.

docs/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Build output
2+
dist/
3+
4+
# Dependencies
5+
node_modules/
6+
7+
# Astro cache
8+
.astro/
9+
10+
# Logs
11+
npm-debug.log*
12+
pnpm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
16+
# Environment
17+
.env
18+
.env.production
19+
20+
# OS
21+
.DS_Store

docs/astro.config.mjs

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import starlight from '@astrojs/starlight';
4+
5+
export default defineConfig({
6+
site: 'https://psy-fer.github.io',
7+
base: '/rustar-aligner',
8+
integrations: [
9+
starlight({
10+
title: 'rustar-aligner',
11+
logo: {
12+
src: './src/assets/rustar-icon.svg',
13+
},
14+
favicon: '/favicon.svg',
15+
components: {
16+
Header: './src/components/Header.astro',
17+
},
18+
customCss: ['./src/styles/custom.css'],
19+
social: [
20+
{
21+
icon: 'github',
22+
label: 'GitHub',
23+
href: 'https://github.com/Psy-Fer/rustar-aligner',
24+
},
25+
],
26+
editLink: {
27+
baseUrl: 'https://github.com/Psy-Fer/rustar-aligner/edit/main/docs/',
28+
},
29+
sidebar: [
30+
{
31+
label: 'Getting started',
32+
items: [
33+
{ label: 'Introduction', slug: 'getting-started/introduction' },
34+
{ label: 'Installation', slug: 'getting-started/installation' },
35+
{ label: 'Quick start', slug: 'getting-started/quick-start' },
36+
],
37+
},
38+
{
39+
label: 'Guides',
40+
items: [
41+
{ label: 'Generating a genome index', slug: 'guides/genome-index' },
42+
{ label: 'Single-end alignment', slug: 'guides/single-end' },
43+
{ label: 'Paired-end alignment', slug: 'guides/paired-end' },
44+
{ label: 'Two-pass mode', slug: 'guides/two-pass' },
45+
{ label: 'Chimeric detection', slug: 'guides/chimeric' },
46+
{ label: 'Gene quantification', slug: 'guides/quantification' },
47+
{ label: 'Migrating from STAR', slug: 'guides/migrating-from-star' },
48+
],
49+
},
50+
{
51+
label: 'Reference',
52+
items: [
53+
{ label: 'CLI parameters', slug: 'reference/cli-parameters' },
54+
{ label: 'Output files', slug: 'reference/output-files' },
55+
{ label: 'STAR compatibility', slug: 'reference/star-compatibility' },
56+
{ label: 'Performance', slug: 'reference/performance' },
57+
],
58+
},
59+
{
60+
label: 'About',
61+
items: [
62+
{ label: 'Contributing', slug: 'about/contributing' },
63+
{ label: 'Changelog', slug: 'about/changelog' },
64+
{ label: 'License', slug: 'about/license' },
65+
],
66+
},
67+
],
68+
}),
69+
],
70+
});

docs/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "rustar-aligner",
3+
"version": "0.0.1",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "astro dev",
8+
"start": "astro dev",
9+
"build": "astro build",
10+
"preview": "astro preview",
11+
"astro": "astro"
12+
},
13+
"dependencies": {
14+
"@astrojs/starlight": "^0.38.4",
15+
"astro": "^6.2.1",
16+
"sharp": "^0.34.5"
17+
},
18+
"packageManager": "pnpm@10.33.2",
19+
"pnpm": {
20+
"onlyBuiltDependencies": ["esbuild", "sharp"]
21+
}
22+
}

0 commit comments

Comments
 (0)