cat / 012
clone

a spreadsheet for the terminal: lotus 1-2-3 looks, google sheets keys and formulas, one go binary

Site: a sidebar per section; the homepage drops its headline; A1 holds a short label

Dami committed 4e51e8b
The navbar picks a section and the sidebar lists that section's pages,
so the two no longer show the same list. The hero's headline and the
page title's tagline go (the logomark names 012; a hidden h1 keeps the
outline), and the install line is the install script.
commit
4e51e8b033d23f9db13a8b6098f5f9c2a87f9695
parent
74484903cfa991ae61b050e23f7d74247ce28c8b
author
Dami <dami.etoile@gmail.com>
kind
feat risk score 2.0 of 3, Jev's estimate
5 files changed, +45 -37
Mdocs/contributing/site.md10++++++----
Mwebsite/docusaurus.config.ts21++++++---------------
Mwebsite/sidebars.ts24+++++++++++++++++++-----
Mwebsite/src/pages/index.module.css16+++++++++-------
Mwebsite/src/pages/index.tsx11+++++------
M docs/contributing/site.md +6 -4
@@ -88,8 +88,9 @@ the site's first commit for every page there has been.
8888 `.md` files are CommonMark, so `<`, `{` and HTML comments are text and8989 markup rather than MDX. A page that needs components would be `.mdx`.9090 - Each folder's `README.md` is its category's page (`/docs/sheets/`),91- and the sidebar is generated from the tree: `_category_.json` for92- folders, `title` and `sidebar_position` for pages91+ and each section (top-level folder) has a sidebar of its own92+ (`website/sidebars.ts`), generated from its folder: `_category_.json`93+ for folders, `title` and `sidebar_position` for pages9394 ([Docs](testing.md#docs) has the rules the tree follows).9495 - Images in `docs/media/` are bundled from the pages that show them;9596 an image marked `#gh-dark-mode-only` or `#gh-light-mode-only` shows in
@@ -114,8 +115,9 @@ The landing page (`website/src/pages/index.tsx`) is drawn as a 012
114115 screen: a control panel with the mode indicator, the recording in an115116 overlay frame, the features as cells of a sheet (the one under the116117 pointer shows its entry in the control panel), and a status line. The117-navbar lists the docs' sections by folder, with the reference pages in118-a menu (`website/docusaurus.config.ts`); the control panel's menu bar118+navbar lists the docs' sections by folder, each opening its section's119+sidebar, so the sidebar lists that section's pages rather than the120+sections again (`website/docusaurus.config.ts`); the control panel's menu bar119121 lists the same sections, so on the landing page the navbar leaves them120122 to it. The121123 colors in `website/src/css/custom.css` are the reference palettes of the
M website/docusaurus.config.ts +6 -15
M website/sidebars.ts +19 -5
M website/src/pages/index.module.css +9 -7
M website/src/pages/index.tsx +5 -6
@@ -16,11 +16,11 @@ type Cell = {
1616 to: string;1717 };1818 19-// The control panel at rest: the pointer on A1, whose entry is a link to20-// the guides, as a cell in 012 holds one.19+// The control panel at rest: the pointer on A1, holding a label, written20+// with the apostrophe 012 shows before text.2121 const home: Cell = {2222 addr: 'A1',23- entry: '=HYPERLINK("/docs/getting-started/", "Get started")',23+ entry: "'Start here",2424 hint: 'Hover a cell, or Tab through them. F1 opens the guides.',2525 title: '',2626 body: '',
@@ -126,14 +126,14 @@ function Hero() {
126126 return (127127 <section className={styles.hero}>128128 <div className={styles.heroText}>129- <h1 className={styles.title}>A spreadsheet for the terminal.</h1>129+ <h1 className={styles.srOnly}>012</h1>130130 <p className={styles.sub}>131131 The control panel, the mode indicator and the character grid of Lotus 1-2-3. Inside the grid, Google132132 Sheets: typing replaces a cell, <code>=</code> starts a formula, Enter and Tab move you on, and Sheets'133133 shortcuts do what you expect. One pure-Go binary.134134 </p>135135 <pre className={styles.install} aria-label="Install">136- <span className={styles.prompt}>$ </span>go install github.com/FelineStateMachine/012/cmd/012@latest136+ <span className={styles.prompt}>$ </span>curl -fsSL https://012.dev.site/install.sh | sh137137 </pre>138138 <div className={styles.actions}>139139 <Link className={clsx(styles.action, styles.actionPrimary)} to="/docs/getting-started/">
@@ -228,7 +228,6 @@ export default function Home(): ReactNode {
228228 const [cell, setCell] = useState<Cell | null>(null);229229 return (230230 <Layout231- title="A spreadsheet for the terminal"232231 description="012 is a terminal spreadsheet with the look of Lotus 1-2-3 and the behavior of Google Sheets.">233232 <main className={styles.page}>234233 <ControlPanel cell={cell ?? home} pointing={cell !== null} />