Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 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
51 changes: 51 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy docs to GitHub Pages

on:
push:
branches:
- main
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: docs/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: docs

- name: Build website
run: yarn build
working-directory: docs

- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build

deploy:
name: Deploy to GitHub Pages
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,22 @@ venv/
.pixi/
.venv-unit/
tools/

# Docs (Docusaurus)
docs/node_modules/
docs/build/
docs/.docusaurus/
docs/.cache-loader/
AGENT.md
AGENTS.md

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The yarn references can be moved now

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. removing them

yarn-error.log*
80 changes: 80 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Nebari Data Science Pack Documentation

This directory contains the [Docusaurus 3.5.2](https://docusaurus.io/) site for the Nebari Data Science pack.

## Prerequisites

- Node.js `>= 18` (enforced by the `engines` field in `package.json`).
- Yarn (Classic, v1.22.x). Install globally with `npm install -g yarn`, then verify with `yarn --version`.

The site has been built and tested against Node 20 and Yarn 1.22.22.

## Install

```bash
cd docs
yarn install
```

## Local development

```bash
yarn start
```

Starts the Docusaurus dev server with hot reload on http://localhost:3000/.

Note: the lunr search index is generated only by `yarn build`. The search box in the dev server will return no results; use a production build to exercise search.

## Production build

```bash
yarn build
```

Emits static files to `docs/build/`. The build step also produces the lunr search index via `docusaurus-lunr-search`.

## Preview the production build

```bash
yarn run serve
```

Serves the contents of `docs/build/` locally so you can verify the production output, including search.

## Troubleshooting

### `ValidationError: Invalid options object. Progress Plugin has been initialized using an options object that does not match the API schema`

This is a webpack-version mismatch. Docusaurus 3.5.2 targets webpack 5.94; webpack 5.97+ tightens the `ProgressPlugin` options schema and rejects what Docusaurus passes. `package.json` pins the resolution with:

```json
"resolutions": {
"webpack": "5.94.0"
}
```

Yarn applies `resolutions` on install, but if `node_modules` was populated before the field existed (or by a different package manager) the wrong webpack stays cached. Reinstall cleanly:

```bash
cd docs
rm -rf node_modules yarn.lock
yarn install
yarn build
```

Comment thread
killua156 marked this conversation as resolved.
Resolved
## Deployment

The site deploys automatically via [Netlify](https://www.netlify.com/) whenever changes land on the `main` branch. Configuration lives in [`netlify.toml`](../netlify.toml) at the repository root:

| Setting | Value |
|---------|-------|
| Base directory | `docs/` |
| Build command | `yarn run build` |
| Publish directory | `build/` (resolved to `docs/build/`) |
| Node version | `20` |
| Yarn version | `1.22.22` |

Pull requests get an automatic Netlify deploy preview, so reviewers can browse the rendered site before merging. No manual deploy step is required; if you need to trigger a rebuild without a code change, do it from the Netlify dashboard.

To point the site at a custom domain, update `url` in [`docusaurus.config.js`](./docusaurus.config.js) and configure the domain in Netlify. The current default, `https://nebari-data-science-pack.netlify.app`, matches the Netlify-generated subdomain.
Comment thread
killua156 marked this conversation as resolved.
Resolved
14 changes: 14 additions & 0 deletions docs/docs/introduction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Introduction
description: Documentation for the Nebari Data Science pack.
slug: /
sidebar_position: 1
last_update:
date: 2026-06-04
---

# Nebari Data Science Pack

:::note[Documentation in progress]
This documentation site is being built out. Content is coming soon.
:::
117 changes: 117 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
// @ts-check

const {themes: prismThemes} = require('prism-react-renderer');
const lightCodeTheme = prismThemes.github;
const darkCodeTheme = prismThemes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Nebari Data Science Pack',
tagline: 'Deploy JupyterHub with jhub-apps on Nebari',
favicon: 'img/favicon.ico',

url: 'https://nebari-dev.github.io',
baseUrl: '/nebari-data-science-pack/',

organizationName: 'nebari-dev',
projectName: 'nebari-data-science-pack',

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',

i18n: {
defaultLocale: 'en',
locales: ['en'],
},

markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],

plugins: [
[
require.resolve('docusaurus-lunr-search'),
{
languages: ['en'],
},
],
],

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
sidebarCollapsible: true,
showLastUpdateTime: true,
editUrl:
'https://github.com/nebari-dev/nebari-data-science-pack/edit/main/docs/docs/',
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
navbar: {
title: 'Nebari Data Science Pack',
logo: {
alt: 'Nebari logo',
src: 'img/logo.svg',
},
items: [
{
href: 'https://github.com/nebari-dev/nebari-data-science-pack',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Source',
items: [
{
label: 'GitHub',
href: 'https://github.com/nebari-dev/nebari-data-science-pack',
},
{
label: 'Nebari',
href: 'https://nebari.dev',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Nebari contributors.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['bash', 'yaml', 'toml', 'python'],
},
}),
};

module.exports = config;
45 changes: 45 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "nebari-data-science-pack-docs",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@docusaurus/theme-mermaid": "3.5.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-lunr-search": "^3.6.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"engines": {
"node": ">=18.0"
},
"resolutions": {
"webpack": "5.94.0"
}
}
10 changes: 10 additions & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docsSidebar: [
'introduction',
],
};

module.exports = sidebars;
Loading
Loading