-
Notifications
You must be signed in to change notification settings - Fork 5
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
static search with proper look-and-feel #91
Open
sydb
wants to merge
107
commits into
static_site_generation
Choose a base branch
from
jawalsh_uvepss_01
base: static_site_generation
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Separate out compression of generated site into new target so that I do not have to wait for ZIPping every time I test * Update help output to match * Fix typo in topnavigation
* mostly documentation updated, but also * made "help" the default target * rename the *.NOT files back
This commit adds the University of Victoria Endings Project Static Search codebase, version 1.4.5, with no mods. Thus this version of DHQ requires ant-contrib be installed on the local machine in order to build the "generateSearchable" target.
…tever dir hold the staticSearch version you want to use
Only working task so far is to generate a preview version of a given article.
Some of the parameters defined in template_article.xsl already had fallback values in imported stylesheets. head.xsl can take an optional $assets-path.
The XSLT now passes parameters onto template_article.xsl, and generates a mapping between source and static article directories. Fix bug in head.xsl: when multiple <title>s are provided, only the first is used.
The resulting build file is hard to read, but would hopefully make the Ant tasks usable on Windows machines.
Since the xmlresolver JAR needs to be loaded when Ant starts up, the new target tests for the required Java class and, if it's not available, provides instructions for running Ant with the JAR. The new task is a dependency for the targets which use Saxon HE.
Files are copied into the static site directory and static HTML is wrapped in DHQ trappings.
When restored, `generateSite` will try to find a derived build file "article-mapper.xml" which maps article directories from their source to the expected web directories.
The new task is intended to create a standalone HTML preview of an article, which can be sent to the article's author(s) for proofing.
Default Ant task is back to 'previewArticle'
To reduce confusion and duplication, "toDir.base" now refers to the path to the "dhq-static" directory, which contains a directory of static files AND the derived Ant file AND the compressed ZIP. "toDir.static" refers more specifically to the directory of static files within toDir.base. Also, added an XSL message to show progress through the TOC.
…works EXCEPT that we have not generated the individual volume/issue index pages yet.
I had a conversation with Martin a few weeks ago and learned that "raw" is the generally accepted scoring algorithm and (to my surprise) "tf-idf" is considered somewhat experimental. Also decided to just leave JSON indentation on during development. We probably want to turnit off in production, so files are smaller.
site generation branch (which has just gotten the latest from main, itself)
These files often shadow the actual HTML files we want to index (I think because they are one level above the desired files with the same name), and even when they do not shadow the desired file, these preview files are files we do not want to index. So delete them first.
* Show only 5 (not 12) hits. * Use the word “hits” instead of “Score” to describe how many hits. * Because the above improvement required a change _in the staticSearch/ code itself, add a new README file to document what change needs to be made each time a new version of UVEPSS is installed.
Starting point for advanced search page. This page undergoes processing by DHQ and staticSearch XSLT to generate user-facing advanced search page.
Add links to ssHighlight.js
…, & I fixed by hand)
* new recommendation code from @joelsjlee * tweaks to dhq2html we made this morning and maybe other stuff, at least, in theory.
Add some additional styling to search features.
difficult manual merges (to build.xml and common/xslt/head.xsl).
Including not loading staticSearch highlighting Javascript when in proofing mode
1) Update to v. 1.4.9 of staticSearch 2) No longer use symlink and numbered version directory 3) Change a few keywords from capitalized to lower-case.
I have done a bunch of ad hoc testing of the generateSearchable output, but then run the following methodical tests on this branch.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.