Skip to content

Commit 5c4f40b

Browse files
committed
fix
1 parent bae80ea commit 5c4f40b

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

docs/browser.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -673,16 +673,6 @@ function write_block(io, content)
673673
write(io, content)
674674
end
675675

676-
# function generate_constraint_buttons_html(constraint_dims::NamedTuple)
677-
# total_constraints = sum_namedtuple(constraint_dims)
678-
# buttons_html = join([begin
679-
# """<button class="constraint-btn" data-type="$key" data-dim="$dim">$key</button>"""
680-
# end for (key, dim) in pairs(constraint_dims)], "\n")
681-
# return """<span class='constraints-wrapper' data-order='$total_constraints'>
682-
# $buttons_html <strong style='margin-left:5px;'>($total_constraints)</strong>
683-
# </span>"""
684-
# end
685-
686676
function generate_constraint_buttons_html(constraint_dims::NamedTuple)
687677
return constraint_dims
688678
end
@@ -790,12 +780,14 @@ end
790780
# ---------------------------
791781
# Layer 2: HTML assembly
792782
# ---------------------------
793-
function assemble_browser_html(json_str)
783+
function assemble_problems_browser_html(json_str)
794784
html_parts = [
795785
TABLE_PRESENTATION,
786+
"```@raw html",
796787
TABLE_STYLE,
797788
build_table_html(json_str),
798789
TABLE_LOGIC,
790+
"```",
799791
]
800792
return join(html_parts, "\n")
801793
end

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ repo_url = "github.com/control-toolbox/OptimalControlProblems.jl"
9191
# ==============================
9292
# --- Generate Problems Documentation ---
9393
# ==============================
94-
draft = true # If true, code blocks in markdown are not executed
94+
draft = false # If true, code blocks in markdown are not executed
9595
exclude_from_draft=Symbol[
9696
# :beam # example: exclude beam from draft docs
9797
]

0 commit comments

Comments
 (0)