knighn import
Import a code project (every route), a site, a design file or HTML into Knighn.
knighn import [options] <SOURCE>
For example:
knighn import .
knighn import https://site.com --crawl
knighn import design.fig
knighn import . --local out
knighn import . --as template
| Argument | What it is |
|---|---|
SOURCE |
A project folder, a site address (https://…), or a .fig, .pen, .svg, image or .html file. |
| Option | What it does | Default |
|---|---|---|
--local <local> |
Write .html designs to this folder instead of saving them on Knighn. | |
--as <as> |
design (default) or template: your own Home templates. | design |
--one |
One design for the whole project. | |
--crawl |
A site: add the same-origin pages the page links to. | |
--name <name> |
The design name, or the start of each name ("Tailwind Plus" gives "Tailwind Plus Salient") | |
--only <only> |
Only these route groups, with commas (salient,radiant) | |
--scheme <scheme> |
The colour scheme the pages see: light (default) or dark. | light |
--restart |
Start again: do not go on from an import that stopped. | |
-o, --output <output> |
HTML file: output path. | <name>.<format> |
-f, --format <format> |
HTML file: fig or json. | fig |
--css <css> |
HTML file: CSS file to apply before conversion. | |
--cssText <cssText> |
HTML file: inline CSS text to apply before conversion. | |
--tailwind <tailwind> |
HTML file: Tailwind utility candidates to compile and apply. | |
--tailwindFile <tailwindFile> |
HTML file: file with Tailwind utility candidates. | |
--pageName <pageName> |
HTML file: scene graph page name. | DOM/CSS |
--json |
Print a machine-readable summary to stdout. |
Examples
Import a .fig file as a Knighn design file in the folder designs:
knighn import circle-text.fig --local designs
circle-text 1/1 ✓ circle-text.fig
1 designs
[0] ✓ circle-text 1 pages
file: /private./designs/circle-text.html