diff --git a/docs/plasmid/getting-started.md b/docs/plasmid/getting-started.md index bebc82c..0b8463c 100644 --- a/docs/plasmid/getting-started.md +++ b/docs/plasmid/getting-started.md @@ -83,7 +83,7 @@ Most things here you can ignore: you only really need to worry about what's in t - This adds a field with a given name and type that will be read from the JSON. - You will notice that `Codec.STRING` is itself a `Codec`! Every field you declare will require a Codec to describe how that field should be handled. In this case, we're indicating that the greeting field should be loaded using `Codec.STRING`. In the same way, we could reference any other codec we create to add it as a field! This is very useful in allowing combinations of codecs to create complex structures! - - Codec tip: most serializable Minecraft types will hold a static `CODEC` field for use (e.g. `BlockPos.CODEC` or `Identifier.CODEC`). If not, we bundle a `MoreCodecs` type which provides some common ones that are not included in the vanilla codebase (e.g. `MoreCodecs.TEXT`). + - Codec tip: most serializable Minecraft types will hold a static `CODEC` field for use (e.g. `BlockPos.CODEC` or `Identifier.CODEC`). If not, we bundle a `MoreCodecs` type which provides some common ones that are not included in the vanilla codebase (e.g. `MoreCodecs.URL`). - The parameter to `.fieldOf()` specifies the name of the field (in JSON) that this value will be read from. diff --git a/mkdocs.yml b/mkdocs.yml index a38e43f..905c802 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,7 @@ site_name: Nucleoid Docs repo_url: https://github.com/NucleoidMC/nucleoid-docs repo_name: NucleoidMC/nucleoid-docs +edit_uri: edit/main/docs/ theme: name: material @@ -10,6 +11,7 @@ theme: - navigation.tabs - navigation.sections - toc.integrate + - content.action.edit palette: - media: "(prefers-color-scheme: light)" scheme: default @@ -25,6 +27,8 @@ theme: name: Switch to dark mode icon: repo: fontawesome/brands/github + edit: material/pencil + view: material/eye nav: - index.md @@ -49,6 +53,8 @@ extra: link: https://github.com/NucleoidMC - icon: fontawesome/brands/twitter link: https://twitter.com/NucleoidMC + - icon: fontawesome/brands/mastodon + link: https://floss.social/@Nucleoid copyright: Content on this site is licensed CC-BY-SA; excluding code snippets, which are licensed under The Unlicense.