From 1e089389e56b9a8051b69d25f78e479c8d648dcd Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 27 Apr 2021 14:11:46 +0200 Subject: [PATCH] Remove the example code from the interpreter namespace docs again I can't seem to convince sphinx/breathe/doxygen to include them like they work in the class docs. I tried the markdown quotes, spaces, \code/\endcode, \rst/\endrst but no luck yet. --- .../include/sixtyfps_interpreter.h | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/api/sixtyfps-cpp/include/sixtyfps_interpreter.h b/api/sixtyfps-cpp/include/sixtyfps_interpreter.h index 85245cc78..554b4bd6f 100644 --- a/api/sixtyfps-cpp/include/sixtyfps_interpreter.h +++ b/api/sixtyfps-cpp/include/sixtyfps_interpreter.h @@ -38,44 +38,6 @@ struct ErasedComponentBox : vtable::Dyn /// The entry point for this namespace is the \ref ComponentCompiler, which you can /// use to create \ref ComponentDefinition instances with the ComponentCompiler::build_from_source() /// or ComponentCompiler::build_from_path() functions. -/// -/// Example: -/// -/// This example loads a `.60` dynamically from a path: -/// -/// ``` -/// #include -/// -/// sixtyfps::interpreter::ComponentCompiler compiler; -/// auto definition = -/// compiler.build_from_path("hello.60"); -/// if (definition) { -/// auto instance = definition->create(); -/// instance->run(); -/// } -/// ``` -/// -/// This example loads a `.60` from a string and set some properties: -/// -/// ``` -/// #include -/// -/// std::string code = R"( -/// MyWin := Window { -/// property my_name; -/// Text { -/// text: "Hello, " + my_name; -/// } -/// } -/// )"; -/// -/// sixtyfps::interpreter::ComponentCompiler compiler; -/// auto definition = -/// compiler.build_from_source(code, ""); -/// auto instance = definition->create(); -/// instance->set_property("my_name", -/// sixtyfps::interpreter::Value(sixtyfps::SharedString("World"))); instance->run(); -/// ``` namespace sixtyfps::interpreter { class Value;