Skip to content

Commit

Permalink
Merge pull request #3 from broadinstitute/docs
Browse files Browse the repository at this point in the history
create jupyterbook stub for docs
  • Loading branch information
leoank authored Jan 22, 2025
2 parents 2ff836c + 8871885 commit 2a7d17c
Show file tree
Hide file tree
Showing 19 changed files with 153 additions and 18 deletions.
40 changes: 40 additions & 0 deletions docs/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: deploy-documentation

# Only run this when the master branch changes
on:
push:
branches:
- main
# Only run if edits in documentation
paths:
- docs/starrynight-docs/**
- docs/.github/workflows/deploy.yml

# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Install dependencies
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.10

- name: Install dependencies
run: |
pip install jupyter-book
# Build the book
- name: Build the book
run: |
jupyter-book build starrynight-docs/
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./starrynight-docs/_build/html
34 changes: 34 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Book settings

# Learn more at https://jupyterbook.org/customize/config.html
title: starrynight Documentation
author: Broad Institute
copyright: "2025"
#logo: img/logo.svg

# Only build files that are in the ToC
only_build_toc_files: true

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force

# Information about where the book exists on the web
repository:
url: https://github.com/broadinstitute/starrynight
branch: main # Which branch of the repository should be used when creating links (optional)
path_to_book: starrynight-docs

html:
baseurl: broadinstitute.github.io
use_repository_button: true
use_issues_button: true
use_edit_page_button: true
comments:
hypothesis: true

parse:
myst_enable_extensions:
# Only required if you use html <img>
- html_image
17 changes: 17 additions & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Table of contents

format: jb-book
root: overview
parts:
- caption: FAQ
chapters:
- file: costs
- caption: Running starrynight
chapters:
- file: step_0_creating_project
- file: step_1_creating_inventory_index
- file: step_2_creating_pipeline
- caption: Technical Guides
chapters:
- file: troubleshooting_runs
- file: versions
3 changes: 3 additions & 0 deletions docs/starrynight-docs/costs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# starrynight Costs

TODO
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
15 changes: 15 additions & 0 deletions docs/starrynight-docs/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# What is starrynight?

TODO

## What do I need to have to run this?

TODO

## Can I contribute code to starrynight?

Feel free! We welcome contributions.

## Who made this?

starrynight is a project from the Imaging Platform at the Broad Institute in Cambridge, MA, USA.
14 changes: 14 additions & 0 deletions docs/starrynight-docs/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# starrynight Overview

## Projects

In starrynight, a project is TODO.
The first step in starrynight is creating a project.
See [how to create a project](step_0_creating_project.md).

## Index and Inventory

In starrynight, after a project is created, an index and inventory are made from the project files.
An index is TODO.
An inventory is TODO.
See [how to create an index and inventory](step_1_creating_inventory_index).
18 changes: 18 additions & 0 deletions docs/starrynight-docs/step_0_creating_project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Creating a Project in starrynight

Go to the starrynight home page and click on the `Create Project` button.

![Create a new project](./images/screen_1.png)

Then fill the details of your project.

![Project creation form](./images/screen_2.png)

- Name: The name of your project.
- Description: A short description of your project.
- Dataset: S3 URL of the dataset. It can also be a local path if you are running starrynight locally.
- Workspace: S3 URL where you want to save intermediate files. It can also be a local path if you are running starrynight locally.
- Parser: Select the appropriate parser according to your dataset file naming convention. More information on individual parsers can be found here.
- Project Type: Select a project template. This will help you setup a default workflow for your project. You can also change this later after project creation.

Click on create project.
3 changes: 3 additions & 0 deletions docs/starrynight-docs/step_1_creating_inventory_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Creating an Inventory and Index in starrynight

TODO
3 changes: 3 additions & 0 deletions docs/starrynight-docs/step_2_creating_pipeline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Creating a Pipeline in starrynight

TODO
3 changes: 3 additions & 0 deletions docs/starrynight-docs/troubleshooting_runs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Troubleshooting starrynight Runs

TODO
3 changes: 3 additions & 0 deletions docs/starrynight-docs/versions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Versions

TODO
18 changes: 0 additions & 18 deletions docs/user.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# User guide

## Create a new project

Go to the starrynight home page and click on the `Create Project` button.

![Create a new project](./images/screen_1.png)

Then fill the details of your project.

![Project creation form](./images/screen_2.png)

- Name: The name of your project.
- Description: A short description of your project.
- Dataset: S3 URL of the dataset. It can also be a local path if you are running starrynight locally.
- Workspace: S3 URL where you want to save intermediate files. It can also be a local path if you are running starrynight locally.
- Parser: Select the appropriate parser according to your dataset file naming convention. More information on individual parsers can be found here.
- Project Type: Select a project template. This will help you setup a default workflow for your project. You can also change this later after project creation.

Click on create project.

## Add your aws credentials to view project outputs

Expand Down

0 comments on commit 2a7d17c

Please sign in to comment.