Skip to content

Commit d9ba41c

Browse files
committed
docs(website): setup website
1 parent 15598f5 commit d9ba41c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3046
-687
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 20 deletions
This file was deleted.

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
skip = package-lock.json,CHANGELOG.md,**/*.js
3+
ignore-words-list = hist,scrip,SCRIP
4+
ignore-regex = name="ba"

.github/workflows/website.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
# Build job
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 24
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v3
31+
- name: Install dependencies
32+
run: npm ci
33+
- name: Build with VitePress
34+
run: |
35+
npm run build
36+
touch docs/.vitepress/dist/.nojekyll
37+
- name: Upload artifact
38+
id: deployment
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: docs/.vitepress/dist
42+
43+
# Deployment job
44+
deploy:
45+
needs: build
46+
permissions:
47+
pages: write
48+
id-token: write
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
name: Deploy
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ __pycache__
33
build
44
server.spec
55
CLAUDE.md
6-
*.egg-info
6+
*.egg-info
7+
node_modules
8+
docs/.vitepress/dist
9+
docs/.vitepress/cache

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
99
rev: "v5.0.0"
1010
hooks:
11-
- id: check-added-large-files
1211
- id: check-case-conflict
1312
- id: check-merge-conflict
1413
- id: check-symlinks
@@ -40,7 +39,6 @@ repos:
4039
rev: v2.3.0
4140
hooks:
4241
- id: codespell
43-
args: ["-I", ".codespell-ignore"]
4442

4543
- repo: https://github.com/abravalheri/validate-pyproject
4644
rev: "v0.23"

docs/.vitepress/config.mjs

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import { defineConfig } from "vitepress";
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
base: "/QuickView",
6+
title: "E3SM QuickView",
7+
description:
8+
"How to start with the E3SM QuickView suite to look at your climate data",
9+
head: [["link", { rel: "stylesheet", href: "/custom.css" }]],
10+
themeConfig: {
11+
// https://vitepress.dev/reference/default-theme-config
12+
search: {
13+
provider: "local",
14+
},
15+
logo: "/icon-full.png",
16+
nav: [
17+
{ text: "Home", link: "/" },
18+
{ text: "NERSC", link: "/nersc/" },
19+
{ text: "Guides", link: "/guides/data" },
20+
],
21+
22+
sidebar: {
23+
"/nersc/": [
24+
{
25+
text: "Connecting to NERSC",
26+
items: [{ text: "Login", link: "/nersc/login" }],
27+
},
28+
{
29+
text: "Perlmutter",
30+
items: [
31+
{ text: "Introduction", link: "/nersc/perlmutter" },
32+
{ text: "Quick View", link: "/nersc/perlmutter-run-quickview" },
33+
{
34+
text: "Quick Compare",
35+
link: "/nersc/perlmutter-run-quickcompare",
36+
},
37+
],
38+
},
39+
],
40+
"/guides/": [
41+
{
42+
text: "Introduction",
43+
items: [
44+
{ text: "Data Format", link: "/guides/data" },
45+
{ text: "Installation", link: "/guides/installation" },
46+
],
47+
},
48+
{
49+
text: "Quick View",
50+
items: [
51+
{ text: "Getting started", link: "/guides/quickview" },
52+
{ text: "Resources", link: "/guides/quickview/resources" },
53+
],
54+
},
55+
{
56+
text: "Quick Compare",
57+
items: [
58+
{ text: "Getting started", link: "/guides/quickcompare" },
59+
{ text: "Resources", link: "/guides/quickcompare/resources" },
60+
],
61+
},
62+
{
63+
text: "Installations",
64+
items: [
65+
{ text: "Desktop bundle", link: "/guides/installation/desktop" },
66+
{ text: "Conda package", link: "/guides/installation/conda" },
67+
],
68+
},
69+
{
70+
text: "Development",
71+
items: [
72+
{ text: "Introduction", link: "/guides/dev" },
73+
{ text: "Setup", link: "/guides/dev/setup" },
74+
{ text: "Publish to NERSC", link: "/guides/dev/nersc" },
75+
{ text: "Continuous Integration", link: "/guides/dev/ci" },
76+
],
77+
},
78+
],
79+
},
80+
81+
socialLinks: [
82+
{ icon: "github", link: "https://github.com/Kitware/QuickView" },
83+
],
84+
},
85+
});

docs/README.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)