Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #83

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Fix #83

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ do
done



g++ -std=c++20 "$build_dir"almo.cpp -o "$build_dir"almo

if [ $? -ne 0 ]; then
echo "ビルドに失敗しました。"
exit 1
fi


echo "ビルドが完了しました。"
9 changes: 0 additions & 9 deletions src/render.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ namespace almo {
#include "template.html"
;

std::string SIDEBAR_BULDER =
#include "sidebar.js"
;


std::string load_html_template(std::string html_path, std::string css_setting) {
Expand Down Expand Up @@ -67,14 +64,8 @@ namespace almo {
} else {
runner = "<!-- Runner is not required. Skip this. -->";
}

std::string sidebar_builder = "<script>" + SIDEBAR_BULDER + "</script>";

// runner を挿入
result = std::regex_replace(result, std::regex("\\{\\{runner\\}\\}"), runner);
// sidebar_builder を挿入
result = std::regex_replace(result, std::regex("\\{\\{sidebar_builder\\}\\}"), sidebar_builder);


return result;
}
Expand Down