aboutsummaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2023-01-30 22:05:18 +0000
committerUbuntu <github@matdoes.dev>2023-01-30 22:05:18 +0000
commit2539f948c7a88a86b27b1878f6c28976285f348c (patch)
tree870de6fcb6f3fcdb696c2c4db7c0f8f64241a681 /codegen
parentd195f400ed71b114a9ea5e66ff98dec65e6dc47a (diff)
downloadazalea-drasl-2539f948c7a88a86b27b1878f6c28976285f348c.tar.xz
have docs for all crates
Diffstat (limited to 'codegen')
-rwxr-xr-xcodegen/lib/code/registry.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/codegen/lib/code/registry.py b/codegen/lib/code/registry.py
index 4df82c09..86f5f02d 100755
--- a/codegen/lib/code/registry.py
+++ b/codegen/lib/code/registry.py
@@ -9,7 +9,9 @@ REGISTRIES_DIR = get_dir_location('../azalea-registry/src/lib.rs')
def generate_registries(registries: dict):
code = []
- code.append('''// This file is automatically generated in codegen/lib/code/registry.py
+ code.append('''#![doc = include_str!("../README.md")]
+
+// This file is automatically generated in codegen/lib/code/registry.py
use azalea_buf::{BufReadError, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable};
use azalea_registry_macros::registry;