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

Internationalization, Accessibility and HTML syntax quick fixes #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Generate the HTML in the docs/ folder via the Makefile provided:

Generate the HTML manually:

$ python generate-tag-assist.py > docs/index.html
$ python gen-chooser.py > docs/index.html
$ cp style.css docs/style.css

# Knowledge base
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>HXL hashtag chooser</title>
<link rel="stylesheet" href="style.css"/>
<link rel="icon" href="icon.png"/>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
Expand All @@ -27,7 +27,7 @@ <h2>What kind of data do you have in the column?</h2>
<li><a href="#x_???_000">None of the above</a></li>
</ul>
<div class="nav">
<a>&nbsp</a>
<a>&nbsp;</a>
<a href="http://hxlstandard.org/standard/dictionary" target="_blank">HXL dictionary</a>
</div>
</section>
Expand Down Expand Up @@ -36782,6 +36782,6 @@ <h2>Use this hashtag and attributes</h2>
<a href="http://hxlstandard.org/standard/dictionary" target="_blank">HXL dictionary</a>
</div>
</section>
<script src="script.js"></script>
</body>
<script src="script.js"></script>
</html>
8 changes: 4 additions & 4 deletions gen-chooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def display_question(id, hashtag=None, attributes=[], previous_id=None):
if previous_id is not None:
print(" <a href=\"#{}\">Back a step</a>".format(esc(previous_id)))
else:
print(" <a>&nbsp</a>")
print(" <a>&nbsp;</a>")
print(" <a href=\"http://hxlstandard.org/standard/dictionary\" target=\"_blank\">HXL dictionary</a>")
print(" </div>")
print(" </section>")
Expand Down Expand Up @@ -110,16 +110,16 @@ def display_result(option, hashtag, attributes, previous_id):
print(" </section>")

print("<!DOCTYPE html>")
print("<html>")
print("<html lang=\"en\">")
print(" <head>")
print(" <meta charset=\"utf-8\"/>")
print(" <title>HXL hashtag chooser</title>")
print(" <link rel=\"stylesheet\" href=\"style.css\"/>")
print(" <link rel=\"icon\" href=\"icon.png\"/>")
print(" <meta charset=\"utf-8\"/>")
print(" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>")
print(" </head>")
print(" <body>")
display_question("top")
print(" <script src=\"script.js\"></script>")
print(" </body>")
print(" <script src=\"script.js\"></script>")
print("</html>")