How jaywcjlove/linux-command works
Linux Command is a searchable static reference site built from a collection of command guides. The principal workflow turns Markdown command entries into a searchable index and rendered pages; visitors search the index, then open a guide. The repository also contains dedicated list, hot-command, contributor, and shared page templates. The build and browser implementation are sampled, but individual command guides and template internals are not, so their relationships are shown only where the build source establishes them.
Main entry points: build.mjs Site generator · index.js Search UI · data.json Command index · list.ejs Search results
Components 13
Reference content
- Command guides
command - Command index
dist/data.json
Site generation
- Site generator
scripts/build.mjs - Page templates
template
Search experience
- Search UI
template/js/index.js - Copy control
template/js/copy-to-clipboard.js
Rendered pages
- Home page
template/index.ejs - Search results
template/list.ejs - Command detail
template/details.ejs - Hot commands
template/hot.ejs - Contributors
template/contributors.ejs - Shared page elements
template/partial
Other components
- Visitor
Connections 13
- Site generator → Command guides: reads guides
scripts/build.mjs - Site generator → Command index: writes index
scripts/build.mjs - Site generator → Page templates: renders templates
scripts/build.mjs - Site generator → Home page: renders home
scripts/build.mjs - Site generator → Search results: renders results
scripts/build.mjs - Site generator → Command detail: renders guides
scripts/build.mjs - Site generator → Hot commands: renders hot page
scripts/build.mjs - Site generator → Contributors: renders contributors
scripts/build.mjs - Visitor → Search UI: enters query
template/js/index.js - Search UI → Command index: searches data
template/js/index.js - Search UI → Search results: opens results
template/js/index.js - Visitor → Command detail: opens guide
- Visitor → Copy control: copies command