Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
15 changes: 14 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- cron: '17 */6 * * *'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false
Expand All @@ -19,18 +21,29 @@ jobs:
steps:
- uses: actions/checkout@v5
# ./docs is a symlink to this checkout of the product repository's docs.
# Read the fork this site is maintained against, so documentation edits here go live
# without waiting on an upstream merge.
- uses: actions/checkout@v5
with:
repository: openJiuwen-ai/sciencediscovery
repository: nanzhaogang/sciencediscovery
ref: main
path: sciencediscovery
sparse-checkout: docs
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
# Reads the Pages site this repository deploys to, so the sitemap and robots.txt match it:
# <owner>.github.io when the repository is an owner site, otherwise its project path. Only the
# main-branch run deploys, and the Pages site has to exist already: enabling it needs a token
# with administration/pages write, which GITHUB_TOKEN cannot provide.
- id: pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v6
- run: npm ci
- run: npm run build
env:
SITE_URL: ${{ steps.pages.outputs.base_url }}
- uses: actions/upload-pages-artifact@v3
with:
path: dist
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ScienceDiscovery website

The public website at <https://sciencediscovery.github.io/> has an interactive product demo, the bilingual user documentation with full-text search, a deployment guide, and downloads.
The public website at <https://sciencediscovery.github.io/> opens with a product screen recording, then the four headline capabilities, the bilingual user documentation with full-text search, a deployment guide, and downloads.

| Page | Source |
|---|---|
| Home (interactive demo, features) | `site/build.mjs`, `site/src/demo.js`, `site/src/viz.js` |
| Home (screen recording, four capabilities) | `site/build.mjs`, `site/src/site.css`, `site/src/media/ScienceDiscovery.mp4` |
| Documentation (with search) | rendered from the product repository's `docs/en` and `docs/zh` |
| Install (binary, Docker, source) | `site/build.mjs` (`D` strings) |
| Linux release assets | `release.json` |
Expand All @@ -23,9 +23,11 @@ npm run serve # http://127.0.0.1:4173/ (refuses to pick another port)

`npm run dev` rebuilds and then serves. There is no runtime dependency on a CDN or an API.

### Interactive demo
### Homepage video

`site/src/demo.js` replays seven scripted sessions in a replica of the product shell: literature survey, Idea Tree, Evolve, memory graph, protein pocket, crystal structure and differential expression. `site/src/viz.js` contains a small canvas 3D renderer (protein ribbon and ligand, perovskite supercell with octahedra) and the SVG plots (volcano, heatmap, XRD). All structures and data are generated locally and are illustrative, not experimental results.
The recording sits in the middle of the homepage and starts on its own: `autoplay muted loop playsinline`, with controls so a visitor can turn the sound on. Safari and Chrome only autoplay muted video, so the `muted` attribute is load-bearing, not cosmetic. The file lives in `site/src/media/` and is copied to `dist/media/`; replace `ScienceDiscovery.mp4` to update the recording.

Typography uses Microsoft YaHei first on every page, including headings, with the bundled Manrope and Source Serif 4 webfonts kept as fallbacks for machines without it.

### Search

Expand Down
Loading
Loading