Skip to content

Definitions under outline.entry are missing in the website #234

@YDX-2147483647

Description

@YDX-2147483647

対象ドキュメント

#show outline.entry: it => link(
  it.element.location(),
  it.indented(it.prefix(), it.inner()),
)

entry is a definition under the outline scope, and it also has a few definitions (typst.app/docs), namely, outline.entry.{indented,prefix,inner}.

問題

However, definitions under outline.entry are missing in typst-jp. The last paragraph on this page is the fill parameter of outline.entry.

As shown below, our templates only handle a single level of scope, and ignore definitions in definition.

$ cd website/src
$ rg scope
utils/isPageOfKind.test.ts
51:                                     scope: [],
121:                                    scope: [],
183:                                    scope: [],
227:                                            scope: [],

types/model.ts
81:     scope: Func[];
122:            scope: Func[];

components/templates/TypeTemplate.tsx
53:                     {content.scope.length > 0 && (
60:                                     {content.scope.map((method, index) => (

components/templates/FuncTemplate.tsx
73:                     {content.scope.length > 0 && (
80:                                     {content.scope.map((method, index) => (
Screenshot of the outline (as a JSON field) of outline (as the element) in docs.json
Screenshot of bodies of outline in docs.json

改善案

Considering that this page have not been translated, and the official typst-docs also has a bug about it, I suggest doing nothing for the time being and dealing with it later.
typst/typst#6135

Update: The bug in typst-docs has been fixed in typst/typst#6684.

貢献意思

  • このIssueを解決するPull Requestの作成を自身で希望する場合はチェックしてください。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtranslationTranslation additions or improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions