Explorer

html-ui.docs-index-page

description
The page /docs: the list of the documents
type
Fn(language: String, names: List<Record{id: String, name: String}>) -> @definy.service-io
expression
fn(language$0, names$1) =>
  @html-ui.page(
    language: $0,
    title: @html-ui.text(language: $0, en: "Docs", ja: "ドキュメント", eo: "Dokumentoj"),
    body: [
      @html.element(
        name: "h1",
        attributes: [],
        children: [
          @html.text(text: @html-ui.text(language: $0, en: "Docs", ja: "ドキュメント", eo: "Dokumentoj"))
        ]
      ),
      @html.element(
        name: "p",
        attributes: [],
        children: [
          @html.text(
            text: @html-ui.text(
              language: $0,
              en: "The design notes and know-how of definy (the module docs of the project docs, in Japanese)",
              ja: "definy の設計とノウハウ (プロジェクト docs のモジュール docs)",
              eo: "La dezajnaj notoj kaj scioj de definy (la modulo docs de la projekto docs, japane)"
            )
          )
        ]
      ),
      @html.element(
        name: "ul",
        attributes: [],
        children: @core.list-map(
          T: Record{id: String, name: String},
          U: @html.node,
          f: fn(item$2) =>
            let short$3 = @core.string-slice(value: $2.name, start: 5, end: @core.string-length(value: $2.name));
            @html.element(
              name: "li",
              attributes: [],
              children: [
                @html.element(
                  name: "a",
                  attributes: [{name: "href", value: @core.string-concat(left: "/docs/", right: $3)}],
                  children: [@html.text(text: $3)]
                )
              ]
            ),
          xs: $1
        )
      )
    ]
  )
visibility
public
html-ui.docs-index-page (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: yhR6BMbYanFGB-YTZuk-vkasm4MONHBOj3q0hSQGIU8
content hash: 7w_TVbZhrVVu32gYoSQO2NMOkurOKk5HIJlsIUGLUi4