From 3cc7ab7a9dd92c6f1d04ff1b29cb8dda2acb53c7 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Mon, 14 Sep 2026 15:01:49 +0900 Subject: [PATCH] docs: describe only the current site in the readme --- README.md | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a429ea4..7f5d309 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,12 @@ Static front-end for the archived [BMI Platform](https://bmi.neuroinf.jp/) (Brain Machine Interface Platform), built with [Vite](https://vite.dev/), React and TypeScript. -The site was two XOOPS installations, and later two Create React App -projects (`bmi-front` and `bmi-researchers`). This app serves both: +The app serves two halves of the site: -| Path | Former project | Content | -| --- | --- | --- | -| `/` | `bmi-front` | the portal: papers, original contents, press releases, research sites, materials, column | -| `/researchers/` | `bmi-researchers` | the XooNIps database and its site information | +| Path | Content | +| --- | --- | +| `/` | the portal: papers, original contents, press releases, research sites, materials, column | +| `/researchers/` | the XooNIps database and its site information | Each half keeps its own theme. The two stylesheets style the same selectors (`body`, `#header`, `#main`, ...), so `src/main.tsx` loads only the half the @@ -82,11 +81,9 @@ There is currently no test suite. ## Styles -The Create React App builds appended normalize.css after the themes. This app -uses `modern-normalize` instead and keeps its `box-sizing: border-box`; the -theme rules that were content-box arithmetic state their border-box totals, -and the few rules normalize.css used to override (`h1`, `hr`) state the values -it produced. `src/normalize-overrides.css` restates the form-control font. +The base stylesheet is `modern-normalize`, with its `box-sizing: border-box` +kept: sizes in the themes are border-box totals. `src/normalize-overrides.css` +sets the form-control font. ## Deployment @@ -109,22 +106,22 @@ are only put back at the end. Apache needs `Options FollowSymLinks` and `AllowOverride All` on both directories. Use symlinks rather than `Alias`: an `Alias` maps the URL outside the document root, so `.htaccess` no longer applies and the SPA fallback and -the legacy redirects stop working. +the redirects stop working. `/researchers/` is a real directory on disk as well as an SPA route, so `public/.htaccess` sends every request that is not a real file to `index.html`, directories included. -### Legacy URLs +### Redirects -`.htaccess` keeps the earlier addresses working with a 301: +`.htaccess` redirects these addresses with a 301: | From | To | | --- | --- | | `/researchers/modules/xoonips/download.php?file_id=N` | `/researchers/modules/xoonips/file/N` | -| `/researchers/database/file/...` (v1) | `/researchers/modules/xoonips/file/...` | +| `/researchers/database/file/...` | `/researchers/modules/xoonips/file/...` | -The other XOOPS addresses (`/researchers/modules/xoonips/detail.php?item_id=N`, +XOOPS-style addresses (`/researchers/modules/xoonips/detail.php?item_id=N`, `/index.php`, ...) are redirected inside the app. ## Google Analytics