renames sketch group/extrude group (#4016)

* renames

Signed-off-by: Jess Frazelle <github@jessfraz.com>

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

udpates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

fix parse

Signed-off-by: Jess Frazelle <github@jessfraz.com>

fix typos

Signed-off-by: Jess Frazelle <github@jessfraz.com>

docs

Signed-off-by: Jess Frazelle <github@jessfraz.com>

update tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

empty

* fix;

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* new

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add the types pages

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* Look at this (photo)Graph *in the voice of Nickelback*

* empty

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Jess Frazelle
2024-09-27 15:44:44 -07:00
committed by GitHub
parent 9a437ca973
commit e50de134b1
121 changed files with 3939 additions and 4087 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "derive-docs"
description = "A tool for generating documentation from Rust derive macros"
version = "0.1.28"
version = "0.1.29"
edition = "2021"
license = "MIT"
repository = "https://github.com/KittyCAD/modeling-app"

View File

@ -132,9 +132,9 @@ fn test_stdlib_line_to() {
/// ```
fn inner_line_to(
data: LineToData,
sketch_group: SketchGroup,
sketch: Sketch,
args: &Args,
) -> Result<SketchGroup, KclError> {
) -> Result<Sketch, KclError> {
Ok(())
}
},
@ -329,7 +329,7 @@ fn test_stdlib_option_input_format() {
}
#[test]
fn test_stdlib_return_vec_sketch_group() {
fn test_stdlib_return_vec_sketch() {
let (item, errors) = do_stdlib(
quote! {
name = "import",
@ -344,7 +344,7 @@ fn test_stdlib_return_vec_sketch_group() {
fn inner_import(
/// The args to do shit to.
args: Option<kittycad::types::InputFormat>
) -> Result<Vec<SketchGroup>> {
) -> Result<Vec<Sketch>> {
args
}
},
@ -352,11 +352,11 @@ fn test_stdlib_return_vec_sketch_group() {
.unwrap();
assert!(errors.is_empty());
expectorate::assert_contents("tests/return_vec_sketch_group.gen", &get_text_fmt(&item).unwrap());
expectorate::assert_contents("tests/return_vec_sketch.gen", &get_text_fmt(&item).unwrap());
}
#[test]
fn test_stdlib_return_vec_box_sketch_group() {
fn test_stdlib_return_vec_box_sketch() {
let (item, errors) = do_stdlib(
quote! {
name = "import",
@ -371,7 +371,7 @@ fn test_stdlib_return_vec_box_sketch_group() {
fn inner_import(
/// The args to do shit to.
args: Option<kittycad::types::InputFormat>
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Box<Sketch>>> {
args
}
},
@ -379,7 +379,7 @@ fn test_stdlib_return_vec_box_sketch_group() {
.unwrap();
assert!(errors.is_empty());
expectorate::assert_contents("tests/return_vec_box_sketch_group.gen", &get_text_fmt(&item).unwrap());
expectorate::assert_contents("tests/return_vec_box_sketch.gen", &get_text_fmt(&item).unwrap());
}
#[test]
@ -404,7 +404,7 @@ fn test_stdlib_doc_comment_with_code() {
fn inner_my_func(
/// The args to do shit to.
args: Option<kittycad::types::InputFormat>
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Box<Sketch>>> {
args
}
},
@ -435,7 +435,7 @@ fn test_stdlib_fail_non_camel_case() {
fn inner_import_thing(
/// The args to do shit to.
args: Option<kittycad::types::InputFormat>
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Box<Sketch>>> {
args
}
},
@ -459,7 +459,7 @@ fn test_stdlib_fail_no_code_block() {
fn inner_import(
/// The args to do shit to.
args: Option<kittycad::types::InputFormat>
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Box<Sketch>>> {
args
}
},
@ -493,7 +493,7 @@ fn test_stdlib_fail_name_not_in_code_block() {
fn inner_import(
/// The args to do shit to.
args: Option<kittycad::types::InputFormat>
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Box<Sketch>>> {
args
}
},

View File

@ -126,8 +126,8 @@ impl crate::docs::StdLibFn for MyFunc {
let mut generator = schemars::gen::SchemaGenerator::new(settings);
Some(crate::docs::StdLibFnArg {
name: "".to_string(),
type_: "[SketchGroup]".to_string(),
schema: <Vec<SketchGroup>>::json_schema(&mut generator),
type_: "[Sketch]".to_string(),
schema: <Vec<Sketch>>::json_schema(&mut generator),
required: true,
})
}
@ -181,6 +181,6 @@ impl crate::docs::StdLibFn for MyFunc {
#[doc = r" ```"]
fn inner_my_func(
#[doc = r" The args to do shit to."] args: Option<kittycad::types::InputFormat>,
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Box<Sketch>>> {
args
}

View File

@ -120,9 +120,9 @@ impl crate::docs::StdLibFn for LineTo {
required: true,
},
crate::docs::StdLibFnArg {
name: "sketch_group".to_string(),
type_: "SketchGroup".to_string(),
schema: SketchGroup::json_schema(&mut generator),
name: "sketch".to_string(),
type_: "Sketch".to_string(),
schema: Sketch::json_schema(&mut generator),
required: true,
},
]
@ -134,8 +134,8 @@ impl crate::docs::StdLibFn for LineTo {
let mut generator = schemars::gen::SchemaGenerator::new(settings);
Some(crate::docs::StdLibFnArg {
name: "".to_string(),
type_: "SketchGroup".to_string(),
schema: <SketchGroup>::json_schema(&mut generator),
type_: "Sketch".to_string(),
schema: <Sketch>::json_schema(&mut generator),
required: true,
})
}
@ -187,10 +187,6 @@ impl crate::docs::StdLibFn for LineTo {
#[doc = r" yes sirrr."]
#[doc = r" lineTo"]
#[doc = r" ```"]
fn inner_line_to(
data: LineToData,
sketch_group: SketchGroup,
args: &Args,
) -> Result<SketchGroup, KclError> {
fn inner_line_to(data: LineToData, sketch: Sketch, args: &Args) -> Result<Sketch, KclError> {
Ok(())
}

View File

@ -92,8 +92,8 @@ impl crate::docs::StdLibFn for Import {
let mut generator = schemars::gen::SchemaGenerator::new(settings);
Some(crate::docs::StdLibFnArg {
name: "".to_string(),
type_: "[SketchGroup]".to_string(),
schema: <Vec<SketchGroup>>::json_schema(&mut generator),
type_: "[Sketch]".to_string(),
schema: <Vec<Sketch>>::json_schema(&mut generator),
required: true,
})
}
@ -138,6 +138,6 @@ impl crate::docs::StdLibFn for Import {
#[doc = r" import"]
fn inner_import(
#[doc = r" The args to do shit to."] args: Option<kittycad::types::InputFormat>,
) -> Result<Vec<SketchGroup>> {
) -> Result<Vec<Box<Sketch>>> {
args
}

View File

@ -92,8 +92,8 @@ impl crate::docs::StdLibFn for Import {
let mut generator = schemars::gen::SchemaGenerator::new(settings);
Some(crate::docs::StdLibFnArg {
name: "".to_string(),
type_: "[SketchGroup]".to_string(),
schema: <Vec<SketchGroup>>::json_schema(&mut generator),
type_: "[Sketch]".to_string(),
schema: <Vec<Sketch>>::json_schema(&mut generator),
required: true,
})
}
@ -138,6 +138,6 @@ impl crate::docs::StdLibFn for Import {
#[doc = r" import"]
fn inner_import(
#[doc = r" The args to do shit to."] args: Option<kittycad::types::InputFormat>,
) -> Result<Vec<Box<SketchGroup>>> {
) -> Result<Vec<Sketch>> {
args
}