From 4c3b0dd758776e16f2dc482b40351e68f9609676 Mon Sep 17 00:00:00 2001 From: ltabis Date: Tue, 30 Apr 2024 19:29:16 +0200 Subject: [PATCH] chore: update glossary example --- .../docs/rhai-autodocs/1-glossary.mdx | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/examples/docusaurus/docusaurus-example/docs/rhai-autodocs/1-glossary.mdx b/examples/docusaurus/docusaurus-example/docs/rhai-autodocs/1-glossary.mdx index b3e482b..40192f1 100644 --- a/examples/docusaurus/docusaurus-example/docs/rhai-autodocs/1-glossary.mdx +++ b/examples/docusaurus/docusaurus-example/docs/rhai-autodocs/1-glossary.mdx @@ -6,6 +6,7 @@ slug: /api/glossary import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import Link from '@docusaurus/Link'; +import CodeBlock from '@theme/CodeBlock'; export const Highlight = ({ children, color }) => ( @@ -15,18 +16,30 @@ export const Highlight = ({ children, color }) => ( ## global -- type Tragedy -- get/set get Tragedy.age -> int -- get/set set Tragedy.age = int -- get/set get Tragedy.name -> string -- fn new_romeo() -> Tragedy -- fn new_juliet() -> Tragedy -- index get/set index get Tragedy[_: int] -> ? -- index get/set index set Tragedy[_: int] = ? +- type + Tragedy +- get/set + get Tragedy.age -> int +- get/set + set Tragedy.age = int +- get/set + get Tragedy.name -> string +- fn + new_romeo() -> Tragedy +- fn + new_juliet() -> Tragedy +- index get/set + index get Tragedy[_: int] -> ? +- index get/set + index set Tragedy[_: int] = ? ## my_module -- fn hello_world() -- fn hello_world(message: String) -- fn add(a: int, b: int) -> int -- type NewType +- fn + hello_world() +- fn + hello_world(message: String) +- fn + add(a: int, b: int) -> int +- type + NewType