Skip to content

HTML documentation: Stable page URLs for the chunked HTML doc - #11966

Open
jmarrec wants to merge 9 commits into
NatLabRockies:developfrom
jmarrec:html_doc
Open

jmarrec wants to merge 9 commits into
NatLabRockies:developfrom
jmarrec:html_doc

Conversation

@jmarrec

@jmarrec jmarrec commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Pull request overview

Description of the purpose of this PR

The chunked HTML guides on Read the Docs used pandoc's default %s-%i.html chunk template, so page file names were prefixed with the section number (e.g. 1.9-group-surface-construction-elements.html). Adding or reordering a chapter renumbered every page after it and broke any link to latest/ (or any templated link like https://energyplus.readthedocs.io/en/v{MAJOR}.{MINOR}.{PATCH}/guides/input-output-reference/1.9-group-surface-construction-elements.html#surfaceconstructionassignments)

  • Pass --chunk-template=%i.html so pages are named after the section label only.
  • Rename a few I/O Reference group labels to match their .tex file name (e.g. group---performance-curves ==> group-performance-curves), and update the references that used them.

I tested this on my fork

https://energyplus.readthedocs.io/en/v26.2.0/guides/input-output-reference/1.9-group-surface-construction-elements.html#constructionassignmentset

becomes

https://jmarrec-energyplus.readthedocs.io/v26.2.0/guides/input-output-reference/group-surface-construction-elements.html#constructionassignmentset

(@mitchute we have the "en/" language path in there... I guess it's too late to remove it)

Pull Request Author

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions
  • If any defect files are updated to a more recent version, upload new versions here or on DevSupport
  • If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
  • If structural output changes, add to output rules file and add OutputChange label
  • If adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependencies
  • If adding/removing any output files (e.g., eplustbl.*)
    • Update ..\scripts\Epl-run.bat
    • Update ..\scripts\RunEPlus.bat
    • Update ..\src\EPLaunch\ MainModule.bas, epl-ui.frm, and epl.vbp (VersionComments)
    • Update ...github\workflows\energyplus.py

Reviewer

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally
  • Check any new function arguments for performance impacts
  • Verify IDF naming conventions and styles, memos and notes and defaults
  • If new idf included, locally check the err file and other outputs

@jmarrec jmarrec self-assigned this Nov 24, 2026
@jmarrec jmarrec added DoNotPublish Includes changes that shouldn't be reported in the changelog Documentation Related primarily on the LaTeX-based EnergyPlus documentation Developer Issue Related to cmake, packaging, installers, or developer tooling (CI, etc) labels Nov 24, 2026
@mitchute

Copy link
Copy Markdown
Collaborator

@jmarrec this is a nice clean up. Thanks for addressing it.

There are a couple other labels with a colon that will be problematic, such as:

\section{Using EnergyPlus as a Library}\label{sec:api-usage}
that we'll need to also address.

I tried accessing the API pages from the TOC on your forked docs, and they don't resolve to anything.

Screenshot 2026-11-24 at 10 20 02 AM

@jmarrec

jmarrec commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

@mitchute I fixed the colon issue, and a few other kinks:

  • An engineering equation with an extra closing brace
  • pandoc doesn't recognize "\the\year" so the copyright was reading "1996-" and not "1996-2026"
  • The title page is now "merged" inside index.html so it starts with the E+ logo, copyright and build sha.

I also improved the navigation by using a breadcrumb-like navbar:

https://jmarrec-energyplus.readthedocs.io/v26.2.0/guides/input-output-reference/outputtableannual.html#outputtableannual

image

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Developer Issue Related to cmake, packaging, installers, or developer tooling (CI, etc) Documentation Related primarily on the LaTeX-based EnergyPlus documentation DoNotPublish Includes changes that shouldn't be reported in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants