GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lighthouse-soft-navigation/packages/docs at main · push-based/lighthouse-soft-navigation

Expand file tree

/

docs

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

docs

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
public
public
 
 
scripts
scripts
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
project.json
project.json
 
 
tsconfig.app.json
tsconfig.app.json
 
 
tsconfig.json
tsconfig.json
 
 

README.md

Outline

lighthouse-soft-navigation docs

The documentation site for @push-based/lighthouse-soft-navigation, built with Angular and prerendered to static HTML for GitHub Pages.

Develop

pnpm nx serve docs

Opens a dev server with hot reload on http://localhost:4300.

Build

pnpm nx build docs

Produces a fully prerendered site in dist/packages/docs/browser with /lighthouse-soft-navigation/ as base href, ready for GitHub Pages. Use --configuration=development for a build with / as base href.

Write content

Pages are Markdown files under src/content/<section>/<page>.md. Register a page in src/app/docs/nav.ts to give it a route, a title and a description; the sidebar, the start page, prerendering and the previous/next links all derive from that list.

Pages start with their first paragraph: the page title and description come from nav.ts.

Markdown extras:

  • Fenced code blocks are highlighted. Add a file name with ```js title="flow.mjs".
  • > [!TIP], > [!NOTE], > [!IMPORTANT] and > [!WARNING] block quotes render as callouts.
  • Links that start with /docs/ are in-app links and are rewritten for the base href. Other links that start with / point to files in public, are rewritten for the base href and open in a new tab.
  • Images live in public/images and are referenced as images/<file>.
  • <!-- diagram: name --> draws one of the inline diagrams from src/app/docs/diagrams.ts, and <!-- cta --> adds the install call to action.

The site follows the system colour scheme and offers a toggle in the header; the choice is stored in localStorage. Colours come from the push-based design tokens in src/tokens.scss, mapped to semantic roles with light and dark values in src/styles.scss. Use the semantic roles (--surface, --text, --border, --accent, ...) in components, never the raw --color-* ramps.

Preview image

node packages/docs/scripts/og-image.mjs renders public/og-image.png from an HTML version of the landing page hero. Run it after changing the hero's look.

The mark in public/images/mark.svg, the favicon and the touch icon are the user-flow ones.

Example report

node packages/docs/scripts/example-report.mjs renders public/examples/soft-navigation-flow.html, the flow report linked from the results guide, by measuring the single page app of the e2e fixtures. Build the package first with pnpm nx build lighthouse-soft-navigation. Run it after a change to what the package reports.

Deploy

.github/workflows/docs.yml builds and deploys the site on every push to main that touches the docs. The site is served at https://push-based.github.io/lighthouse-soft-navigation/. The repository's Pages source must be set to "GitHub Actions".

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.