Repository navigation
Add placeholder landing page for Nebari Data Science Pack #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5915cf0
docs: add Docusaurus site with Netlify deployment
killua156 5cc750b
docs: address PR review feedback, add MLflow/GPU, audit content
killua156 8d7c949
docs: replace full docs with placeholder landing page
killua156 25c339a
docs: remove all Netlify references
killua156 41f9e40
Remove troubleshooting section and deployment boilerplate from docs R…
killua156 5c440de
Convert docs to TypeScript and simplify workflow to match nebi
killua156 a885e17
Remove yarn log references from .gitignore
killua156 9adb7a9
Update .github/workflows/docs.yml
killua156 cf5e554
Merge branch 'main' into docs/docusaurus-site
killua156 45cc65d
Merge branch 'main' into docs/docusaurus-site
andrewfulton9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` | ||
|
|
||
|
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. | ||
|
killua156 marked this conversation as resolved.
Resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
| ::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. removing them