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

Static site generation: Ant task for previewing articles #38

Draft
wants to merge 200 commits into
base: encoding_workflow
Choose a base branch
from

Commits on Apr 3, 2023

  1. Configuration menu
    Copy the full SHA
    dca6f50 View commit details
    Browse the repository at this point in the history
  2. Create Apache Ant buildfile.

    Only working task so far is to generate a preview version of a
    given article.
    amclark42 committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    49e6b29 View commit details
    Browse the repository at this point in the history
  3. Alter XSLT to be run outside Cocoon.

    Some of the parameters defined in template_article.xsl already had
    fallback values in imported stylesheets.
    
    head.xsl can take an optional $assets-path.
    amclark42 committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    1d5bbbc View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. Add Saxon HE licenses

    amclark42 committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    321f072 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1282bfe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4bcf21a View commit details
    Browse the repository at this point in the history
  4. Run generate_static_articles.xsl using the Ant buildfile.

    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.
    amclark42 committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    645fda0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0a33d99 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. Configuration menu
    Copy the full SHA
    d71571d View commit details
    Browse the repository at this point in the history
  2. Use file separator Ant property for OS-agnostic processing.

    The resulting build file is hard to read, but would hopefully make
    the Ant tasks usable on Windows machines.
    amclark42 committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    aa84a5b View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. Configuration menu
    Copy the full SHA
    6187c6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01f2f94 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Add "checkXmlResolver" Ant build target.

    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.
    amclark42 committed May 2, 2023
    Configuration menu
    Copy the full SHA
    3ea13ce View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. Build out "generateSite" task.

    Files are copied into the static site directory and static HTML is
    wrapped in DHQ trappings.
    amclark42 committed May 5, 2023
    Configuration menu
    Copy the full SHA
    67a7a51 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Comment out call to external Ant build file.

    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.
    amclark42 committed May 12, 2023
    Configuration menu
    Copy the full SHA
    7f09ab0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45be5e0 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Configuration menu
    Copy the full SHA
    16a286f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12dfb9f View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. Configuration menu
    Copy the full SHA
    737010e View commit details
    Browse the repository at this point in the history
  2. Add "zipPreviewArticle" task to the Ant build file.

    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.
    amclark42 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    f23d170 View commit details
    Browse the repository at this point in the history
  3. Tweak name of ZIP file

    amclark42 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    703425d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f9ad3b2 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Small edits to comments.

    Default Ant task is back to 'previewArticle'
    amclark42 committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    850ebe0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50770cf View commit details
    Browse the repository at this point in the history
  3. Set up a second property for the static directory path.

    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.
    amclark42 committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    df58229 View commit details
    Browse the repository at this point in the history
  4. With Ash make minor fixes to static site generation such that it now …

    …works EXCEPT that we have not generated the individual volume/issue index pages yet.
    sydb committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    c3d2ddc View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Configuration menu
    Copy the full SHA
    11d6ed8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1b150a View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Configuration menu
    Copy the full SHA
    844d4b2 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    581e2cf View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Change name of generation routine to "issue" (from "article") because…

    … it does more than just articles
    sydb committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    2affd1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1ba2c1 View commit details
    Browse the repository at this point in the history
  3. More DRY maps

    amclark42 committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    b888656 View commit details
    Browse the repository at this point in the history
  4. Tweak how maps for transforms are handled (including moving filename …

    …generation to a function which cleverly generates a map entry)
    sydb committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    9554a64 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e5fd09a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    09c03c5 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Handle articles that appear in 2+ issues (000109).

    With this change, article resources will be copied to all relevant
    issue directories within the static site dir.
    
    Copying article XML is now done by Ant rather than through the XSLT.
    amclark42 committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    6c35064 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    e5f4a98 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Configuration menu
    Copy the full SHA
    bb906f5 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. Configuration menu
    Copy the full SHA
    56a1fe9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb89b42 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Add metadata-insertion routine for experimentations with UVic Endings…

    … Project staticSearch system
    sydb committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    63ead78 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2023

  1. Configuration menu
    Copy the full SHA
    f478044 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    c10e5d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Configuration menu
    Copy the full SHA
    e8012e8 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Configuration menu
    Copy the full SHA
    e10397f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81f1dba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    580e83e View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Download a local copy of XHTML DTD to keep from slamming W3C server.

    Also, remove references to the "dir-separator" XSLT parameter, since
    it isn't necessary for the stylesheet to know.
    amclark42 committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    a3ff94b View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Remove $dir-separator from generate_static_issues.xsl.

    We found that the XSLT generating static HTML from the TOC is
    sufficiently insulated from Windows-specific directory separators.
    amclark42 committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    66bb42c View commit details
    Browse the repository at this point in the history
  2. Add a file mapper to put article XML in the issue directory.

    Personally, I think it makes more sense to store the XML in the same
    directory as the article HTML. However, DHQ's links require the XML
    to be in the issue directory instead.
    amclark42 committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    f286bd5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2e42be View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. Configuration menu
    Copy the full SHA
    77be91c View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Ensure that the URLs at the bottom of the page are accurate.

    Added `dhq:set-up-issue-transformation()` to reduce duplication and
    hard-to-read variables in the template for <journal>.
    amclark42 committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    298eb92 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    1fdcdc7 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Generate the Atom news feed

    amclark42 committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    e1b125b View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    9278213 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Configuration menu
    Copy the full SHA
    8da0cff View commit details
    Browse the repository at this point in the history
  2. Generate exactly one previous version of an article.

    The static site generation XSLT now checks for <dhq:revisionNote>
    and tries to transform the previous version of the article. Not
    sure yet what happens when there is more than one revision to an
    article, however.
    amclark42 committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    24fc11d View commit details
    Browse the repository at this point in the history
  3. Create favicon.ico.base64

    jawalsh committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    6b54855 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Zip up stable articles in XML format, for About page.

    Now the Ant build file created by generate_static_issues.xsl also
    includes a target for zipping up only those articles which can be
    considered stable. The ZIP is stored at data/dhq-xml.zip and is
    referenced by the DHQ About page.
    amclark42 committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    8494c99 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8082923 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    792136f View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Saxon updates:

     * Change hierarchy of common/lib/ directory to match what Saxon expects.
     * Update to Saxon 12.4.
    sydb committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    09e8ae7 View commit details
    Browse the repository at this point in the history
  2. latest from main

    sydb committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    9dd0b29 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Merge pull request #66 from Digital-Humanities-Quarterly/sydb_re-arra…

    …nge_library
    
    Re-arrange library, updating to Saxon 12
    amclark42 authored Feb 12, 2024
    Configuration menu
    Copy the full SHA
    1459dec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    367fb8a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3edef06 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cee8275 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    103358d View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Configuration menu
    Copy the full SHA
    1b96365 View commit details
    Browse the repository at this point in the history
  2. Add preview/index.html and preview/bios.html.

    It seems that the preview index links to the articles in their
    usual place, so there's no need to copy the article HTML to another
    directory.
    amclark42 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    bac7d55 View commit details
    Browse the repository at this point in the history
  3. Add indexes of DHQ articles and authors.

    Also added a new template "transform-with-sorting" in order to
    reduce redundancy when producing an HTML page requires two
    transformations. The new template is not yet back-ported to older
    instances of this pattern.
    amclark42 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    c9382bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6fbbf56 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Added a new "explore" page

    Currently includes placeholder explanations of different article recommendation approaches.
    juliaflanders committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    f025945 View commit details
    Browse the repository at this point in the history
  2. Update explore.html

    Expanded description of keywording approach
    juliaflanders committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    a13f6de View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    8019edc View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    73ab5e0 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    23b41d4 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Configuration menu
    Copy the full SHA
    5229e6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    431153d View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Update explore.html

    Added finalized language describing each recommendation method
    juliaflanders committed May 13, 2024
    Configuration menu
    Copy the full SHA
    db1c91f View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Configuration menu
    Copy the full SHA
    847dd36 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ad7904 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    1119d86 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a256c9 View commit details
    Browse the repository at this point in the history
  3. change recommendation box color for better contrast with links, short…

    …en <a> tag on documentation out to explore.html
    joelsjlee committed May 15, 2024
    Configuration menu
    Copy the full SHA
    0c167ed View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Add 404 and 500 error pages to static site.

    The error pages are generated using the fallback logic in
    template_article.xsl, just as Cocoon does it. However, I've edited
    the XSLT because it will not be able to dynamically report what URL
    the user tried to access.
    amclark42 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    48b1882 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    568e61b View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    47c461d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5df700 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    3d5de3f View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Configuration menu
    Copy the full SHA
    6473971 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Prepare to generate preview version of the site.

    head.xsl introduces special CSS rules for the preview site, and
    topnavigation.xsl adds a "Preview" to the header. A new parameter,
    "previewable", determines whether these are added to the HTML
    output.
    
    Also, fixed the alt text for the banner and DHQ logos.
    amclark42 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    c995f93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    08b72a8 View commit details
    Browse the repository at this point in the history
  3. "Preview" -> "Proofing"

    amclark42 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    2faa52c View commit details
    Browse the repository at this point in the history
  4. Set up new Ant build target, "makeProofingSite".

    generate_static_issues.xsl now includes and passes on the
    "doProofing" parameter when generating HTML for articles in the
    TOC. The XSLT does not yet transform the "editorial" articles.
    amclark42 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    bfd575e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7e41d56 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    17d25cf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f1bd6d7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3826ded View commit details
    Browse the repository at this point in the history
  9. Restructure template in toc.xsl; add parameter to control noise.

    toc.xsl now has a "do-list-articles" parameter, which controls
    whether or not every article is listed for a given issue. toc.xsl
    has it turned on by default. The static_issues stylesheet turns it
    off, because the flood of messages hides useful warnings.
    amclark42 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    05f7724 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Use new function to generate lists of recommendations.

    Implements my suggestions in PR #77: to select the precise row
    needed without iteration; and to abstract out the code needed to
    build each recommendation section's list of articles.
    amclark42 committed May 29, 2024
    Configuration menu
    Copy the full SHA
    7b18112 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da95426 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3484e97 View commit details
    Browse the repository at this point in the history
  4. Include "explore" HTML in the static site build.

    Also, moved the regular expression into build-properties.xml, so
    it'll be easier to find and change in the future.
    amclark42 committed May 29, 2024
    Configuration menu
    Copy the full SHA
    1f0752a View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Produce ONLY the internal preview when asked.

    Added a "do-proofing-full" parameter to generate_static_issues.xsl,
    which, in combination with "do-proofing", determines whether the
    stylesheet handles all articles, TOC indexes, and compression of
    XML. When "do-proofing" is on and "do-proofing-full" is turned off,
    only the "editorial", internal preview is reproduced.
    amclark42 committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    38ee456 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    443cabc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d704846 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. Separate ${toDir} property into multiple properties.

    The directories for the static and proofing sites are now set in
    build-properties.xml. The paths to those directories, and to the
    base directory, are still set in build.xml, with ".path" added to
    the property name. So, references to `${toDir.static}` may now have
    been changed to `${toDir.static.path}`.
    
    I've tested generateIssues and generateSite, and they work as
    before.
    amclark42 committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    9375ccb View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    a948fdd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e158852 View commit details
    Browse the repository at this point in the history
  3. Use relative links to articles and bios from editorial/issue index.

    I did not replace the link to the Internal Preview's "Articles"
    list yet, because the Ant process doesn't generate it.
    amclark42 committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    207edc8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    19c7b13 View commit details
    Browse the repository at this point in the history
  5. update TSVs, restructure recommendation code and add conditionals whe…

    …n some articles have none or some of the three recommendation systems
    joelsjlee committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    d653eaa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2da73bb View commit details
    Browse the repository at this point in the history
  7. Use relative links from proofing article page to bios page.

    I discovered that the code used to generate the anchor to the
    linked contributor's biography is out-of-sync with the code used
    to generate the bios page. Links will work but don't take you
    directly to the clicked contributor.
    amclark42 committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    74733eb View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Don't run "compressStatic" as part of "generateSite" target.

    Per collaborative development meeting. We can `rsync` the static
    site directory to the DHQ server, rather than taking the time to
    compress and transmit it.
    amclark42 committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    af4d7f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Configuration menu
    Copy the full SHA
    7613d10 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c99b7d View commit details
    Browse the repository at this point in the history
  3. Provide the option to generate a full copy of DHQ for proofing.

    The "generateSite" target uses the generic property to determine
    where files should be saved. The "makeInternalPreview" target
    prompts users whether they want to generate the full site or not.
    amclark42 committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    571fd1b View commit details
    Browse the repository at this point in the history
  4. Only prompt for do.proofing.full if it hasn't been set yet.

    So someone can issue the command
    `ant -Ddo.proofing.full=true makeInternalPreview`
    in, for instance, a headless environment.
    amclark42 committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    02d1b98 View commit details
    Browse the repository at this point in the history
  5. Remove starter.html from full site build.

    ...it's pretty obviously a Cocoon holdover.
    amclark42 committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    ae2ba24 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    21f736d View commit details
    Browse the repository at this point in the history
  7. Use relative links within toolbars for published/preview articles.

    Fixed path to articles from the preview index.
    amclark42 committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    e18ae76 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    458b7f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    49a3223 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f9240a View commit details
    Browse the repository at this point in the history
  3. update with stable versions of tsvs, fixing quoting issues and commen…

    …ted code in the title tag
    joelsjlee committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    452d67f View commit details
    Browse the repository at this point in the history
  4. Merge pull request #77 from Digital-Humanities-Quarterly/static_site_…

    …generation
    
    DHQ Recommendation Box for Static Site Generation
    joelsjlee authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    df41f75 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Manually correct dhq2html.xsl …

    @amclark42, @joelsjlee, and I had a problem with our correction to dhq2html (we did it in wrong branch, basically), so this is our attempt to get it right at least in the static_site_generation branch. My problem to move these changes to uvepss_03 branch. Sigh.
    sydb committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    5c6bc6f View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. update TSVs with Authors with Affiliations column, adjust dhq2html.xs…

    …l indexing of TSVs accordingly
    joelsjlee committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2d23b88 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    f34aca7 View commit details
    Browse the repository at this point in the history
  2. Make help description into one big <echo>.

    It will be easier to edit the description without having to worry
    about shifting tags to accommodate character limits per line.
    amclark42 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    767770c View commit details
    Browse the repository at this point in the history
  3. Add help documentation for makeInternalPreview target.

    Also, tweaked paths in the help documentation.
    amclark42 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    f23c138 View commit details
    Browse the repository at this point in the history
  4. Edit help documentation for generateIssues and -Site.

    Also added documentation for the `compressStatic` target, since
    `generateSite` no longer calls it.
    amclark42 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    236ba47 View commit details
    Browse the repository at this point in the history
  5. Tweak the use of @sydb's defaultnotice target...

    ...so the notice only appears when no Ant targets were explicitly
    invoked (read: someone just ran `ant`).
    
    We may still decide to change the default Ant target before
    switching to the static site for publication.
    amclark42 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    924c389 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'static_site_generation' into static_site_preview-site

    Had to add back the "get-vol" template which was needed by
    template_editorial_article.xsl.
    amclark42 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    d04b7e6 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Merge pull request #80 from Digital-Humanities-Quarterly/joel_auth_affil

    update TSVs with Authors with Affiliations column, adjust dhq2html.xsl indexing of TSVs accordingly
    joelsjlee authored Jun 24, 2024
    Configuration menu
    Copy the full SHA
    a4b84c8 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Export oXygen scenario for running the "makeInternalPreview" build.

    Per meeting with Syd and Julia. The scenario builds only the
    "editorial" section of the TOC, not any other part of the DHQ site.
    amclark42 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    cfe9a2c View commit details
    Browse the repository at this point in the history
  2. Add more Ant-in-oXygen scenarios!

    New scenarios for the Ant build targets: generateSite,
    previewArticle, and zipPreviewArticle. All scenarios load the Saxon
    JARs from `common/lib/`.
    amclark42 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    87d2eda View commit details
    Browse the repository at this point in the history
  3. Prompt to generate a proofing copy of the full DHQ site.

    Because this is preferable to running "generateSite", I removed
    that target from the oXygen scenarios.
    amclark42 committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    4a23479 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Create XSLT to generate all lists of articles for proofing.

    article_list.xsl produces a single webpage for a given sort method
    and sort direction. The new stylesheet `article_list_all.xsl`
    runs 6 transformations to produce every webpage variant of
    `editorial/articles.html`.
    amclark42 committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    df35610 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1eb4f0 View commit details
    Browse the repository at this point in the history
  3. Refactor article_list.xsl to use XSLT 3.0, reduce duplication.

    I removed and condensed a lot of repeated code into two templates:
    one that creates and sorts all the rows of the table, and one that
    generates all the cells for the row corresponding to an article.
    
    Rather than nesting a table of author names into the last cell of
    each row, I set up an unordered list of names. I also removed the
    "center" class from the first two cells, because the
    `display:block;` CSS rule was keeping them from displaying like
    regular table cells.
    
    I also added comments and variables, and re-formatted the
    whitespace for readability.
    amclark42 committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    fd4dbc0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b8fea22 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Move sorting links outside the table, into new named template.

    Rather than having table headings that serve as both labels and
    actionable links, I've moved the links to alternative sort pages
    into a list shown before the table. `<a>` elements aren't used when
    the link would be to the current page, which makes it easy to see
    at a glance which sort method is applied. The display of the table
    and the navigation stay consistent when navigating between pages.
    amclark42 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    b46ccd7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    089432e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b29730d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d701c4d View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Don't kill the build if the proofing directory can't be deleted.

    For example, if the directory doesn't exist because this is the
    first time we're running "makeInternalPreview", the <delete> task
    shouldn't fail.
    
    Also, delete the empty `dhq-proofing/vol/` directory created by
    "generateArticles" when we're not proofing the full site.
    amclark42 committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    7e25a20 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8beda44 View commit details
    Browse the repository at this point in the history
  3. Normalize whitespace in article ID.

    Fixes a broken link to article 000605's XML.
    amclark42 committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    2bfc84a View commit details
    Browse the repository at this point in the history
  4. Edit URLs in the recommendations box to work without a server.

    Rather than starting with "/dhq/", URLs to other articles start
    with "../../../../" to get back to the root directory. (We could
    trim the `/vol/` from the full URL to reduce the path, but this
    seemed simpler and fairly reliable.)
    amclark42 committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    ad0bc29 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Merge branch 'static_site_generation' into static_site_preview-site

    Updated column used to create a relative link to recommended article,
    and added a fallback message if the URL column doesn't match
    expectations. (The fallback is very noisy but doesn't terminate the
    transformation.)
    amclark42 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    d0afc57 View commit details
    Browse the repository at this point in the history
  2. Change default Ant target to help.

    Per DHQ collaborative development meeting. Because DHQ editors are
    most likely to use the oXygen transformation scenarios rather than
    the command line, we agreed that it is most helpful for Ant to
    outline the possible targets when the user hasn't explicitly said
    which one they want.
    amclark42 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    32c4f40 View commit details
    Browse the repository at this point in the history
  3. Remove AddThis button and Editorial area "logout" button

    ...from sidebar.
    amclark42 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    56b5518 View commit details
    Browse the repository at this point in the history
  4. Use relative paths in oXygen scenarios.

    The `${git(working_copy_path)}` editor variable might be new in
    oXygen v26; it doesn't work in v25.1.
    amclark42 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    a14d23c View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    7621122 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Add path_to_home parameter to various stylesheets.

    The new parameter is used to make relative links within the header
    navbar and the HTML <head>. It does not yet fix links in the
    sidebar navigation menu.
    
    Because the parameter has to be set as part of the transformation,
    only the regular issue indexes, contributor bios, and articles have
    this working so far. But it does work!
    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    8454d33 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8afe010 View commit details
    Browse the repository at this point in the history
  3. Use relative links in sidenavigation.xsl, update to XSLT 3.0.

    Greatly streamlined some of the code in the stylesheet.
    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    27bdc94 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    85fe646 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    50354cf View commit details
    Browse the repository at this point in the history
  6. Add dhq:set-up-issue-transformation#4 for setting relative paths.

    Explicitly set a default value for `$path_to_home` in the Internal
    Preview stylesheets.
    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    721afc7 View commit details
    Browse the repository at this point in the history
  7. Use relative paths in static pages...

    ...assuming they're served out of a directory below the DHQ home
    directory.
    
    Also, use the "Proofing copy" header for the lists of all articles
    (in the Preview area), and make sure the Javascript is loaded from
    static pages.
    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2c6a4b6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7750eb3 View commit details
    Browse the repository at this point in the history
  9. Fix link to news.xml

    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    6861a94 View commit details
    Browse the repository at this point in the history
  10. Use zipPreviewArticle to generate previewArticle.

    `previewArticle` now calls zipPreviewArticle, then unzips the
    results. Doing it this way means that the HTML doesn't change
    between targets; it will always stand independent of the DHQ
    repository.
    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    7065156 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0a3d358 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bad9d2d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    85da91c View commit details
    Browse the repository at this point in the history
  14. Fix sidebar nav in 000150.

    The custom stylesheet for 000150 had a duplicate template which
    overrode the usual sidebar nav. I've skimmed it and there doesn't
    seem to be anything special about it, so I commented it out. Better
    to maintain the sidebar navigation in one place, not two.
    amclark42 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    fcb1383 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Merge pull request #85 from Digital-Humanities-Quarterly/static_site_…

    …preview-site
    
    Make internal preview version of DHQ for proofing the static site
    amclark42 authored Jul 23, 2024
    Configuration menu
    Copy the full SHA
    ac26978 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2773d22 View commit details
    Browse the repository at this point in the history
  3. More small refactors to sidenavigation.xsl.

    Added an introductory comment with changelog.
    amclark42 committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    e701ca9 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. First pass at refactoring author_index.xsl.

    The stylesheet now does a better job of handling language changes
    and Unicode characters with accent marks etc. However, the output
    doesn't yet work with author_sort.xsl.
    amclark42 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    a1428a5 View commit details
    Browse the repository at this point in the history
  2. Use "fall-through" XSLT behavior for author names.

    Rather than relying on the existence of <dhq:family>,
    <dhq:author_name> now tries to apply templates on that element.
    This fixes an outstanding bug where organizational authors (e.g.
    "DHQ editorial team" in 000493) were described with leading commas,
    separating the name from a family name that didn't exist.
    
    Starting to set up to do sorting within author_index.xsl, rather
    than requiring another step with author_sort.xsl (which works now,
    btw).
    amclark42 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    213e776 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5a55d3 View commit details
    Browse the repository at this point in the history
  4. Compile each author's articles; remove author_sort from workflow.

    The navigation aids haven't been added yet, but the authors entries
    look great and appear to be sorting correctly.
    
    generate_static_issues.xsl does not take transform the results of
    author_index.xsl with author_sort.xsl.
    amclark42 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    7e181d9 View commit details
    Browse the repository at this point in the history
  5. Add internal navigation for author index.

    author_index.xsl now includes a navigation bar (redesigned for
    accessibility), and headings for the alphabetical groupings of
    authors.
    
    The navbar is now represented with a list inside <nav>, rather than
    a table. I've adjusted the CSS to make the navbar look much like it
    used to, though it will now wrap on smaller screens.
    amclark42 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    6e1f48a View commit details
    Browse the repository at this point in the history
  6. Only include headings for actual letters in Authors Index.

    Fixes bug due to ADHO's sort key starting with an underscore.
    
    Also, added a bunch more comments.
    amclark42 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    7e5e357 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    d2852e0 View commit details
    Browse the repository at this point in the history
  2. Add ARIA labels for heading and link back to navbar.

    As I put in a comment, this isn't an ideal solution. I'd be more
    comfortable separating the heading from the link, except that I'd
    need buy-in from the DHQ team. So instead: a slightly more
    accessible implementation of what DHQ already had, plus a comment
    musing about how one could do better.
    amclark42 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    9e77135 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5a6f993 View commit details
    Browse the repository at this point in the history
  4. Move common code into template and function.

    I expect these will need to be used in other stylesheets, so I'm
    preparing to move them to a common stylesheet.
    amclark42 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    0066c2f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f10e991 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Handle elements within an article title, remove ending whitespace.

    Quotation marks and language changes are carried into the HTML
    output of the author index. I've added a function from dhq2html.xsl
    into common-components.xsl to determine which quotation marks get
    used.
    
    Also, whitespace is stripped from the end of the last text node
    inside `//titleStmt/title`. This solves a common issue where a
    single space would appear between the title and the comma following
    it.
    amclark42 committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    7714370 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3024f27 View commit details
    Browse the repository at this point in the history
  3. Move "get-article-title" template to common components stylesheet.

    The title index will also need to be able to generate a link from
    an article title. It's easier to maintain that logic in a single
    place.
    amclark42 committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    4fdf36e View commit details
    Browse the repository at this point in the history
  4. Start refactoring title_index.xsl.

    The title_sort.xsl phase has been removed from
    generate_static_issues.xsl, but hasn't yet been added to the main
    stylesheet. The sort key also needs to be adjusted to factor in
    leading stopwords.
    amclark42 committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    45485d3 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Implement language-specific stopwords for sorting titles.

    The implementation works for titles with language codes placed
    directly on them. It will fail for titles that are mostly in
    English but which lead with some text marked as being in another
    language.
    
    Also, moved the logic for generating links to articles into a
    common function.
    amclark42 committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    f74a2bc View commit details
    Browse the repository at this point in the history
  2. Handle stopwords when the first child of <title> has @xml:lang.

    DHQ doesn't have any articles fitting this use case, so I wrote a
    test to make sure this works. (It does.) I'll comment it out or
    delete it later.
    amclark42 committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    cd8af74 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    caf4c00 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c5f8a8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b552dec View commit details
    Browse the repository at this point in the history
  6. Use CSS media queries instead of expression().

    It looks like `expression()` was used prior to Internet Explorer 8.
    
    In dhq_screen.css, I replaced these with CSS media queries, which
    are a standardized way of capturing the same behavior (no greater-
    than symbol necessary).
    
    In dhq.css, I used `width` and `max-width` rules to capture what I
    _think_ the expression was trying to do. We don't need to support
    IE6 anymore, I hope.
    
    I also removed the full-page background image in favor of a
    background color and border on the sidebar. The static site now
    looks much the same as the Cocoon site.
    amclark42 committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    11b0977 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Move assets copying to generateIssues build step.

    Fixes problem discovered by @jawalsh where the Javascript did not
    load when previewing only the Internal Preview area.
    amclark42 committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7d23a25 View commit details
    Browse the repository at this point in the history
  2. Include more explanation of $path_to_home parameter and values.

    After inquiries by @sydb and @jawalsh, I decided the stylesheets
    needed more explanation about how `$path_to_home` should be set and
    where it is used.
    amclark42 committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7050a0c View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Merge pull request #89 from Digital-Humanities-Quarterly/static_site_…

    …make-standalone
    
    Make static site standalone
    jawalsh authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    bd5a1d2 View commit details
    Browse the repository at this point in the history