from/villagepump/機械翻訳したScrapboxをQuartzで公開2024-11-24
何をしようとしているのか言語化する
/Users/nishio/quartz/contentquartz.config.ts.$ npx quartz build --serveThis branch is 3 commits ahead of, 564 commits behind jackyzha0/quartz:v4$ git pull --rebase upstream v4CONFLICT (content): Merge conflict in package-lock.json
% git submodule add git@github.com:nishio/quartz.git quartz% git clone --depth 1 git@github.com:nishio/etude-github-actions.gitetude-github-actions/nishio/data.jsonは日本語版だな〜etude-github-actions/nishio/data_en_prev.jsonが取りあえず英語JSONかtmp_0.shにtasks/json_to_markdown/run.shって書いてあるtasks/json_to_markdownの中にGit SubmoduleでScrapboxToObsidianが入っているtmp_1.sh
cp etude-github-actions/nishio/data_en_prev.json nishio.json
tasks/json_to_markdown/run.sh
- quartzPagesができた
- これをquartzからみる
- `$ npx quartz create`
:
Choose how to initialize the content in `/Users/nishio/from_scrapbox/quartz/content`
│ ● Empty Quartz
│ ○ Copy an existing folder
│ ○ Symlink an existing folder
- ここでsymlinkにすればいいわけだな
:
2 | title: '"I can\'t shake it" and "I won\'t shake ...
---------------------^
at Object.yaml [as parse] (../plugins/transformers/frontmatter.ts:55:35)
fixed: https://github.com/nishio/from_scrapbox/commit/5374c3dc25148f6c70a2ace62b4e5396f68146c9
:
Cleaned output directory `public` in 4ms
Found 20937 input files from `content` in 196ms
Parsed 20937 Markdown files in 6m
Filtered out 0 files in 4ms
Emitted 20949 files to `public` in 5m
Done processing 20937 files in 11m
Started a Quartz server listening at http://localhost:8080
hint: exit with ctrl+c
from MarkdownからQuartzで静的生成してGithub Pagesでserveする
Github Wikiをコメントフォーム的に利用できるか?
記事に対する質問や誤りの指摘をGithub Issuesにするか?
:
Failed to process `content/Infinite sum compression using the inverse of a formal power series.md`: URI malformed
at decodeURI (<anonymous>)
at transformInternalLink (../util/path.ts:89:38)
at transformLink (../util/path.ts:207:20)
at ../plugins/transformers/links.ts:104:49
もうちょっと詳しいこと書いてくれてないとなおし方がわからん
あーー、ダメだー
無数にあるかと思ってげんなりしてたが意外と3個に収まった
これをえいやとGitHub Pagesで公開すればまあ公開はできる
Setting up your GitHub repository
buildするとpublic/が作られる
Quartz 4.0は静的HTMLの末尾に巨大なscriptタグがあり1ページ2.5MBある。20000ページあると50GB程度になり問題である。この問題の解決方法はないか?GitHub Issuesなどがないか検索して
#1607として報告されています。この中で、以下の解決策が挙げられています: