ビルド20分、ファイルサイズ1.75GB。日本語検索できるように。
成果物
手順
ビルドに20分かかった。ファイルサイズは1.75GBいる。
cd /tmp/work wget https://github.com/getzola/zola/archive/refs/tags/v0.14.0.tar.gz tar xf v0.14.0.tar.gz cd zola-0.14.0 cargo build --features search/indexing-ja
インストールしたい場所へコピーする。
cd .. PATH_DIR=/home/pi/root/sys/env/tool TO=$PATH_DIR/ssg cp ./zola-0.14.0 "$TO"
パスが通っている場所へシンボリックリンクを作る。
ln -s $TO/zola-0.14.0/target/debug/zola $PATH_DIR/zola
バージョン確認
zola --version
zola 0.14.0
ヘルプ
zola --help
zola 0.14.0 Vincent Prouillet <hello@vincentprouillet.com> A fast static site generator with everything built-in USAGE: zola [OPTIONS] <SUBCOMMAND> FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: -c, --config <config> Path to a config file other than config.toml in the root of project -r, --root <root> Directory to use as root of project [default: .] SUBCOMMANDS: build Deletes the output directory if there is one and builds the site check Try building the project without rendering it. Checks links help Prints this message or the help of the given subcommand(s) init Create a new Zola project serve Serve the site. Rebuild and reload on change automatically
参考
おまけ
ビルドログ
Updating git repository `https://github.com/Keats/syntect.git` Updating git submodule `https://github.com/sethlopezme/InspiredGitHub.tmtheme.git` Updating git submodule `https://github.com/sublimehq/Packages` Updating git submodule `https://github.com/braver/Solarized.git` Updating git submodule `https://github.com/kkga/spacegray.git` Updating crates.io index Downloaded arrayvec v0.4.12 Downloaded ammonia v3.1.2 Downloaded weezl v0.1.5 Downloaded webp v0.1.3 Downloaded gif v0.11.2 Downloaded ctrlc v3.1.9 Downloaded notify v4.0.17 Downloaded tinystr v0.3.4 Downloaded any_ascii v0.1.7 Downloaded tokio-util v0.6.7 Downloaded pathdiff v0.2.0 Downloaded unic-langid v0.9.0 Downloaded reqwest v0.11.4 Downloaded socket2 v0.4.0 Downloaded utf-8 v0.7.6 Downloaded num-format v0.4.0 Downloaded siphasher v0.3.5 Downloaded sha2 v0.9.5 Downloaded sct v0.6.1 Downloaded lexical-sort v0.3.1 Downloaded relative-path v1.4.0 Downloaded hyper v0.14.10 Downloaded open v1.7.1 Downloaded nodrop v0.1.14 Downloaded httpdate v1.0.1 Downloaded csv v1.1.6 Downloaded futures-macro v0.3.15 Downloaded h2 v0.3.3 Downloaded slotmap v1.0.5 Downloaded http-body v0.4.2 Downloaded webpki-roots v0.21.1 Downloaded unic-langid-impl v0.9.0 Downloaded markup5ever v0.10.1 Downloaded rayon-core v1.9.1 Downloaded onig v6.2.0 Downloaded rustls v0.19.1 Downloaded rayon v1.5.1 Downloaded tokio v1.8.1 Downloaded sass-sys v0.4.22 Downloaded lexical-core v0.7.6 Downloaded onig_sys v69.7.0 Downloaded minify-html v0.4.11 Downloaded libwebp-sys v0.2.0 Downloaded 43 crates (10.1 MB) in 6.42s (largest was `libwebp-sys` at 5.0 MB) Compiling libc v0.2.98 Compiling cfg-if v1.0.0 Compiling autocfg v1.0.1 Compiling proc-macro2 v1.0.27 Compiling unicode-xid v0.2.2 Compiling syn v1.0.73 Compiling memchr v2.4.0 Compiling lazy_static v1.4.0 Compiling serde_derive v1.0.126 Compiling serde v1.0.126 Compiling log v0.4.14 Compiling bitflags v1.2.1 Compiling version_check v0.9.3 Compiling ppv-lite86 v0.2.10 Compiling ryu v1.0.5 Compiling byteorder v1.4.3 Compiling itoa v0.4.7 Compiling crossbeam-utils v0.8.5 Compiling regex-syntax v0.6.25 Compiling once_cell v1.8.0 Compiling fnv v1.0.7 Compiling hashbrown v0.11.2 Compiling pkg-config v0.3.19 Compiling crossbeam-epoch v0.9.5 Compiling rayon-core v1.9.1 Compiling getrandom v0.1.16 Compiling scopeguard v1.1.0 Compiling siphasher v0.3.5 Compiling crc32fast v1.2.1 Compiling percent-encoding v2.1.0 Compiling adler v1.0.2 Compiling regex-automata v0.1.10 Compiling base64 v0.13.0 Compiling serde_json v1.0.64 Compiling same-file v1.0.6 Compiling maplit v1.0.2 Compiling ucd-trie v0.1.3 Compiling adler32 v1.2.0 Compiling either v1.6.1 Compiling pin-project-lite v0.2.7 Compiling unic-char-range v0.9.0 Compiling futures-core v0.3.15 Compiling weezl v0.1.5 Compiling bytes v1.0.1 Compiling lazycell v1.3.0 Compiling slab v0.4.3 Compiling unic-common v0.9.0 Compiling proc-macro-hack v0.5.19 Compiling color_quant v1.1.0 Compiling matches v0.1.8 Compiling linked-hash-map v0.5.4 Compiling safemem v0.3.3 Compiling untrusted v0.7.1 Compiling spin v0.5.2 Compiling scoped_threadpool v0.1.9 Compiling tinyvec_macros v0.1.0 Compiling futures-task v0.3.15 Compiling bytemuck v1.7.0 Compiling xml-rs v0.8.3 Compiling unicode-segmentation v1.8.0 Compiling deunicode v0.4.3 Compiling typenum v1.13.0 Compiling proc-macro-nested v0.1.7 Compiling encoding_index_tests v0.1.4 Compiling humansize v1.1.1 Compiling httparse v1.4.1 Compiling pin-utils v0.1.0 Compiling futures-channel v0.3.15 Compiling futures-sink v0.3.15 Compiling futures-io v0.3.15 Compiling new_debug_unreachable v1.0.4 Compiling try-lock v0.2.3 Compiling tinystr v0.3.4 Compiling tower-service v0.3.1 Compiling lexical-core v0.7.6 Compiling httpdate v1.0.1 Compiling mac v0.1.1 Compiling encoding_rs v0.8.28 Compiling utf8-ranges v1.0.4 Compiling precomputed-hash v0.1.1 Compiling utf-8 v0.7.6 Compiling arrayvec v0.5.2 Compiling levenshtein_automata v0.1.1 Compiling static_assertions v1.1.0 Compiling mime v0.3.16 Compiling regex-syntax v0.4.2 Compiling pulldown-cmark v0.8.0 Compiling dtoa v0.4.8 Compiling ipnet v2.3.1 Compiling doc-comment v0.3.3 Compiling arrayvec v0.4.12 Compiling cfg-if v0.1.10 Compiling bytecount v0.6.2 Compiling xmlparser v0.13.3 Compiling any_ascii v0.1.7 Compiling bytecount v0.3.2 Compiling nodrop v0.1.14 Compiling unicode-width v0.1.8 Compiling byte-tools v0.3.1 Compiling strum v0.21.0 Compiling opaque-debug v0.3.0 Compiling strsim v0.8.0 Compiling ansi_term v0.11.0 Compiling vec_map v0.8.2 Compiling quick-error v1.2.3 Compiling opaque-debug v0.2.3 Compiling fake-simd v0.1.2 Compiling relative-path v1.4.0 Compiling pathdiff v0.2.0 Compiling glob v0.3.0 Compiling termcolor v1.1.2 Compiling num-traits v0.2.14 Compiling indexmap v1.7.0 Compiling num-integer v0.1.44 Compiling memoffset v0.6.4 Compiling miniz_oxide v0.4.4 Compiling rayon v1.5.1 Compiling num-rational v0.3.2 Compiling num-iter v0.1.42 Compiling tokio v1.8.1 Compiling futures-macro v0.3.15 Compiling futures-util v0.3.15 Compiling tracing-core v0.1.18 Compiling unicase v2.6.0 Compiling nom v5.1.2 Compiling generic-array v0.14.4 Compiling slotmap v1.0.5 Compiling thread_local v1.1.3 Compiling phf_shared v0.8.0 Compiling walkdir v2.3.2 Compiling miniz_oxide v0.3.7 Compiling deflate v0.8.6 Compiling pest v2.1.3 Compiling unic-char-property v0.9.0 Compiling unic-ucd-version v0.9.0 Compiling http v0.2.4 Compiling gif v0.11.2 Compiling unicode-bidi v0.3.5 Compiling form_urlencoded v1.0.1 Compiling line-wrap v0.1.1 Compiling yaml-rust v0.4.5 Compiling tinyvec v1.2.0 Compiling slug v0.1.4 Compiling heck v0.3.3 Compiling encoding-index-tradchinese v1.20141219.5 Compiling encoding-index-japanese v1.20141219.5 Compiling encoding-index-korean v1.20141219.5 Compiling encoding-index-singlebyte v1.20141219.5 Compiling encoding-index-simpchinese v1.20141219.5 Compiling unic-langid-impl v0.9.0 Compiling futf v0.1.4 Compiling lindera-fst v0.1.1 Compiling lexical-sort v0.3.1 Compiling roxmltree v0.13.1 Compiling textwrap v0.11.0 Compiling block-padding v0.1.5 Compiling open v1.7.1 Compiling tracing v0.1.26 Compiling phf v0.8.0 Compiling unic-ucd-segment v0.9.0 Compiling pest_meta v2.1.3 Compiling unicode-normalization v0.1.19 Compiling http-body v0.4.2 Compiling encoding v0.2.33 Compiling tendril v0.4.2 Compiling unic-langid v0.9.0 Compiling quote v1.0.9 Compiling want v0.3.0 Compiling aho-corasick v0.7.18 Compiling csv-core v0.1.10 Compiling crossbeam-channel v0.5.1 Compiling jobserver v0.1.22 Compiling num_cpus v1.13.0 Compiling time v0.1.43 Compiling getrandom v0.2.3 Compiling mio v0.7.13 Compiling filetime v0.2.14 Compiling socket2 v0.4.0 Compiling iovec v0.1.4 Compiling net2 v0.2.37 Compiling atty v0.2.14 Compiling inotify-sys v0.1.5 Compiling nix v0.20.0 Compiling png v0.16.8 Compiling unic-segment v0.9.0 Compiling idna v0.2.3 Compiling generic-array v0.12.4 Compiling num-format v0.4.0 Compiling flate2 v1.0.20 Compiling regex v1.5.4 Compiling minify-html v0.4.11 Compiling mime_guess v2.0.3 Compiling cc v1.0.69 Compiling rand_core v0.5.1 Compiling rand_core v0.6.3 Compiling sass-sys v0.4.22 Compiling bytes v0.4.12 Compiling clap v2.33.3 Compiling inotify v0.7.1 Compiling mio v0.6.23 Compiling url v2.2.2 Compiling block-buffer v0.9.0 Compiling digest v0.9.0 Compiling digest v0.8.1 Compiling block-buffer v0.7.3 Compiling crossbeam-deque v0.8.0 Compiling parse-zoneinfo v0.3.0 Compiling gh-emoji v1.0.3 Compiling svg_metadata v0.4.2 Compiling ctrlc v3.1.9 Compiling pest_generator v2.1.3 Compiling rand_chacha v0.2.2 Compiling rand_pcg v0.2.1 Compiling rand_chacha v0.3.1 Compiling onig_sys v69.7.0 Compiling ring v0.16.20 Compiling libwebp-sys v0.2.0 Compiling nom_locate v2.1.0 Compiling nom_locate v1.0.0 Compiling html5ever v0.25.1 Compiling nom-tracable-macros v0.5.2 Compiling strum_macros v0.21.1 Compiling mio-extras v2.0.6 Compiling sha2 v0.9.5 Compiling sha-1 v0.8.2 Compiling tokio-util v0.6.7 Compiling chrono-tz v0.5.3 Compiling zola v0.14.0 (/tmp/work/zola-0.14.0) Compiling rand v0.7.3 Compiling rand v0.8.4 Compiling pest_derive v2.1.0 Compiling nom-tracable v0.5.2 Compiling notify v4.0.17 Compiling phf_generator v0.8.0 Compiling ws v0.9.1 Compiling nom-bibtex v0.3.0 Compiling h2 v0.3.3 Compiling jpeg-decoder v0.1.22 Compiling string_cache_codegen v0.5.1 Compiling phf_codegen v0.8.0 Compiling bincode v1.3.3 Compiling bstr v0.2.16 Compiling chrono v0.4.19 Compiling toml v0.5.8 Compiling string_cache v0.8.1 Compiling serde_urlencoded v0.7.0 Compiling serde_yaml v0.8.17 Compiling rust-stemmers v1.2.0 Compiling webpki v0.21.4 Compiling sct v0.6.1 Compiling tiff v0.6.1 Compiling markup5ever v0.10.1 Compiling lindera-core v0.3.3 Compiling globset v0.4.8 Compiling csv v1.1.6 Compiling plist v1.1.0 Compiling hyper v0.14.10 Compiling webpki-roots v0.21.1 Compiling rustls v0.19.1 Compiling sass-rs v0.2.2 Compiling lindera-ipadic v0.3.3 Compiling lindera-dictionary v0.3.3 Compiling image v0.23.14 Compiling ignore v0.4.18 Compiling tokio-rustls v0.22.0 Compiling lindera v0.3.5 Compiling hyper-rustls v0.22.1 Compiling elasticlunr-rs v2.3.13 Compiling globwalk v0.8.1 Compiling reqwest v0.11.4 Compiling xml5ever v0.16.1 Compiling tera v1.12.1 Compiling markup5ever_rcdom v0.1.0 Compiling ammonia v3.1.2 Compiling onig v6.2.0 Compiling syntect v5.0.0 (https://github.com/Keats/syntect.git?branch=scopestack#6b36f5eb) Compiling webp v0.1.3 Compiling errors v0.1.0 (/tmp/work/zola-0.14.0/components/errors) Compiling utils v0.1.0 (/tmp/work/zola-0.14.0/components/utils) Compiling config v0.1.0 (/tmp/work/zola-0.14.0/components/config) Compiling front_matter v0.1.0 (/tmp/work/zola-0.14.0/components/front_matter) Compiling link_checker v0.1.0 (/tmp/work/zola-0.14.0/components/link_checker) Compiling imageproc v0.1.0 (/tmp/work/zola-0.14.0/components/imageproc) Compiling rendering v0.1.0 (/tmp/work/zola-0.14.0/components/rendering) Compiling library v0.1.0 (/tmp/work/zola-0.14.0/components/library) Compiling search v0.1.0 (/tmp/work/zola-0.14.0/components/search) Compiling templates v0.1.0 (/tmp/work/zola-0.14.0/components/templates) Compiling site v0.1.0 (/tmp/work/zola-0.14.0/components/site) Finished dev [unoptimized] target(s) in 18m 19s
対象環境
- Raspbierry pi 4 Model B
- Raspberry Pi OS buster 10.0 2020-08-20 ※
- bash 5.0.3(1)-release
$ uname -a Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux