Skip to content

Commit

Permalink
fixed makejs
Browse files Browse the repository at this point in the history
  • Loading branch information
raindrum committed Sep 18, 2024
1 parent 942b358 commit 4d50ba3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
14 changes: 9 additions & 5 deletions citeurl/web/makejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# internal imports
from .. import Citator
from .resources import unify_regex, format_page, sources_table
from .resources import SOURCES_INTRO, VERSION
from .resources import VERSION

COPYRIGHT_MESSAGE = f"""
// This script was made with CiteURL {VERSION}, an extensible framework
Expand All @@ -25,10 +25,9 @@
BASE_JS_PATH = _dir / 'citeurl.js'

PAGE = """
<h1>CiteURL</h1><title>CiteURL</title>
<div class="narrow">
<p>Type a legal citation into the box below, and I'll try to send you
directly to the case or law that it references:</p>
<p>Paste a <a href="citations">legal citation</a> here, and you can
go somewhere else on the Web to read what it refereneces:</p>
<form onsubmit="handleSearch(event)">
<div class="searchbar">
<input type="search" name="q" id="q" placeholder="Enter citation..."
Expand Down Expand Up @@ -151,7 +150,12 @@ def makejs(
javascript = _remove('PAGEBEHAVIOR', javascript)

if include_sources_table:
table = (f'{SOURCES_INTRO}\n{sources_table(citator)}')
table = (
'<p>This static instance of '
'<a href="https://raindrum.github.io/citeurl/">CiteURL</a> '
'supports the following types of citation:</a></p>'
f'\n{sources_table(citator)}'
)
else:
table = ''

Expand Down
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ <h1>404 - Not found</h1>
</div>


<script id="__config" type="application/json">{"base": "/", "features": [], "search": "/assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.0"}</script>
<script id="__config" type="application/json">{"base": "/", "features": [], "search": "/assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.1"}</script>


<script src="/assets/javascripts/bundle.56dfad97.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/frontends/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ <h2 id="gnome-shell-search-provider">GNOME Shell Search Provider</h2>
</div>


<script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.0"}</script>
<script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.1"}</script>


<script src="../assets/javascripts/bundle.56dfad97.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ <h2 id="credits">Credits</h2>
</div>


<script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.0"}</script>
<script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.1"}</script>


<script src="assets/javascripts/bundle.56dfad97.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/library/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6965,7 +6965,7 @@ <h2 id="citeurl.StringBuilder.to_dict" class="doc doc-heading">
</div>


<script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.0"}</script>
<script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.1"}</script>


<script src="../assets/javascripts/bundle.56dfad97.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/template-yamls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ <h3 id="template-inheritance">Template Inheritance</h3>
</div>


<script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.0"}</script>
<script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.07f07601.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": "11.4.1"}</script>


<script src="../assets/javascripts/bundle.56dfad97.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ markdown_extensions:
- pymdownx.superfences

extra:
version: 11.4.0
version: 11.4.1
history_buttons: false
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name = 'citeurl',
version = '11.4.0',
version = '11.4.1',
description = 'an extensible tool to process legal citations in text',
author = 'Simon Raindrum Sherred',
author_email = 'simonraindrum@gmail.com',
Expand Down

0 comments on commit 4d50ba3

Please sign in to comment.