Skip to content
Merged
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
6 changes: 4 additions & 2 deletions src/PlumedToHTML/PlumedToHTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def get_html( inpt, name, outloc, tested, broken, plumedexe, usejson=None, maxch
plumed_formatter = load_formatter_from_file(formatfile, "PlumedFormatter", keyword_dict=keyword_dict, input_name=name, hasload=found_load, broken=any(broken), auxinputs=inputfiles, auxinputlines=inputfilelines, valuedict=valuedict, actions=actions, checkaction=checkaction )

# Now generate html of input
html = '<div class="plumedpreheader">\n'
html = '<div class="plumedInputContainer">\n'
html += '<div class="plumedpreheader">\n'
html += f'<div class="headerInfo" id="value_details_{name}"> Click on the labels of the actions for more information on what each action computes </div>\n'
html += '<div class="containerBadge">\n'
for i in range(len(tested)) :
Expand Down Expand Up @@ -404,7 +405,8 @@ def get_html( inpt, name, outloc, tested, broken, plumedexe, usejson=None, maxch
else :
# html += highlight( final_inpt, plumed_lexer, HtmlFormatter() )
html += highlight( final_inpt, plumed_lexer, plumed_formatter )

#close the html = '<div class="plumedInputContainer">\n'
html += '</div>\n'
# Now remove keywords that appear in examples
mykeywords = plumed_formatter.getCheckActionKeywords()
for key in mykeywords :
Expand Down
4 changes: 4 additions & 0 deletions src/PlumedToHTML/assets/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<style>
.plumedInputContainer{
width: 100%;
overflow: auto;
}
.plumedpreheader{
width: 100%;
display: grid;
Expand Down