2026-06-11 00:03:22 +08:00
2026-06-08 10:01:31 +08:00
2026-06-01 08:05:16 +08:00
2024-01-08 17:53:04 +08:00
2026-06-01 08:05:16 +08:00
2026-06-11 00:03:22 +08:00
2026-04-27 05:59:03 +08:00
2026-06-08 12:20:06 +08:00
2026-02-27 10:41:05 +08:00
2026-02-27 10:41:05 +08:00
2025-03-20 12:23:18 +08:00
2026-03-24 05:57:02 +08:00
2026-04-27 05:59:03 +08:00

M-Labs.hk website source code

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. For deployment, see the nix-scripts repository. Commits to https://git.m-labs.hk/M-Labs/web2019.git are automatically deployed to m-labs.hk through Hydra.

Clone the project:

git clone https://git.m-labs.hk/M-Labs/web2019.git
cd web2019

Install Zola and Node.js (e.g. nix-shell -p zola nodejs).

Start with targeting m-labs.hk domain:

npm install
npm run build
zola serve

Environmental variable DOMAINNAME can be specified to substitute links on the website.

Development builds are also available. npm run build-dev to re/build once, or npm run start-dev for incremental continuous builds as source files change.

Datasheets (docs/sinara-datasheets/) are generated separately in deployment and will 404 locally unless added manually. See sinara-hw/datasheets repo for datasheets source.

Domain handling

Environmental variable DOMAINNAME controls only the following links on the website:

  • email mailto: links
  • hook for the RFQ server (window.API_RFQ) variable

If absent, DOMAINNAME defaults to m-labs.hk.

S
Description
No description provided
Readme 140 MiB
Languages
JavaScript 68.6%
HTML 13.7%
SCSS 12.1%
CSS 4.7%
Python 0.9%