diff --git a/CLI/html/index.html b/CLI/html/index.html deleted file mode 100644 index e3cf8cc7..00000000 --- a/CLI/html/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - Luau Web REPL - - -
- -
- -

- - -
-

-
- -
- -

- -
- - - - - \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 03464dae..b72c630b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,12 +39,9 @@ if(LUAU_BUILD_WEB_REPL AND EMSCRIPTEN) # declare exported functions to emscripten target_link_options(Luau.Repl.Web PRIVATE -sEXPORTED_FUNCTIONS=['_getExceptionFromPtr','_executeScript'] -sEXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -sNO_DISABLE_EXCEPTION_CATCHING) - - # copy html directory - add_custom_command(TARGET Luau.Repl.Web PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/CLI/html ${CMAKE_BINARY_DIR}/webrepl) # custom output directory for webm + js file - set_target_properties(Luau.Repl.Web PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/webrepl/luau) + set_target_properties(Luau.Repl.Web PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/docs/assets/luau) else() if(LUAU_BUILD_CLI) add_executable(Luau.Repl.CLI) diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml index ad2e55fd..ae103e0a 100644 --- a/docs/_data/navigation.yml +++ b/docs/_data/navigation.yml @@ -25,3 +25,5 @@ pages: url: /profile - title: Library url: /library + - title: Demo + url: /demo diff --git a/docs/_includes/repl.html b/docs/_includes/repl.html new file mode 100644 index 00000000..c2189a52 --- /dev/null +++ b/docs/_includes/repl.html @@ -0,0 +1,53 @@ +
+
+ +
+ +

+ + +
+

+
+ +
+ +

+ +
+
+ + + \ No newline at end of file diff --git a/docs/_pages/demo.md b/docs/_pages/demo.md new file mode 100644 index 00000000..b7e649f2 --- /dev/null +++ b/docs/_pages/demo.md @@ -0,0 +1,7 @@ +--- +permalink: /demo +title: Demo +toc: true +--- + +{% include repl.html %} \ No newline at end of file