Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
预览:https://ydx-2147483647.github.io/typst/
目前这里的文档有两部分内容:
实质性内容翻译自旧版 typst 官方仓库(大致是v0.10)。由于翻译方式难以持续,后来只有零星更新。纸夜已经建了新的 typst-docs-l10n,希望解决这一问题,但距实用还有差距。
辅助性内容源于 typst.app/docs 上的代码,功能一直有 bug(比如左侧边栏在窄屏上能点到,尽管不显示)。而且这套代码有著作权争议,被劳麦批评过(虽然并无惩罚)。
尽管目前这里的文档早已落后官方,但事实上仍经常有人看。比如上面说的误触 bug,最近已经被独立报告了两次。
日本人让翻译工作有了转机。他们最初照搬我们的做法。被劳麦批评后,他们开发了新的程序,已经活过多个 typst 版本。他们生成辅助性内容的程序很好用,于是最近在中国人和 UTC+2 人的推动下,进一步开发支持了任意语言,并从 typst-jp 移动到了 https://github.com/typst-community/typst-docs-web 。不过当时只做了日文版和英文版,中文版正在适配(typst-community/typst-docs-web#21)。
这个PR略微改了下实质性内容的格式,让它与 typst-docs-web 兼容。
Relates-to: #14