When you publish an article, HAIMDALL doesn't only store it: it also builds a ready-made web page for it, a complete HTML file saved on the server. Readers can be given that file directly, without HAIMDALL having to look anything up in its database first. These pre-built pages are called static pages.
Why static pages?
Speed: a ready-made page can be sent straight away, from disk or from a content delivery network (CDN).
Resilience: published help stays readable even while the database or the application is busy or being upgraded.
Scale: readers' traffic doesn't compete with your authors' work in the editor.
What's in a static page
Each page holds the article's published text in one language, its title and description, the folder it's in (as a breadcrumb), and your theme's custom CSS and JavaScript. Callouts, tables, image sizes, columns, code boxes, links and file downloads all look as they do on the help site.
Each product version has its own set of pages, so readers of an older version keep seeing that version's text.
Note
A static page holds only the text that applies to every territory. Articles that are limited to some territories, or have passages that are, are always shown through the live help site instead, so each reader sees their own territory's content. This happens automatically.
When pages are rebuilt
You never build pages by hand. HAIMDALL rebuilds them whenever what readers should see changes:
What happens | Pages rebuilt |
|---|---|
An article is published (on its own or with Publish Selected) | That article, in every language that's published |
An article's URL changes and is published | That article; the page at the old address is removed |
A reusable template that other articles embed is published | Every article that embeds it |
A saved style is changed and the theme is published | Every article that uses the style |
An article is deleted, or restored | Its pages are removed, or built again |
An upgrade changes how pages are built, or HAIMDALL starts with no pages (a new server or container) | All pages, in the background |
Restoring an older version only changes the draft, which goes back through review, so nothing unreviewed ever reaches a static page.
Important
Publishing the theme (colours, logo, custom CSS and JavaScript) doesn't rebuild existing static pages. They pick up the new theme the next time each article is published. The live help site shows the new theme straight away.
If a page can't be built
Publishing never fails because of a static page. If a page can't be built or saved, the article is still published, the help site still shows it, and the problem appears on System › Health under Recent errors, so whoever looks after your server can fix it.
Serving static pages from your own web server
HAIMDALL serves the static pages itself, at the same addresses as the rest of your help site (for example /latest/en/getting-started/installing). If you run a web server or CDN in front of HAIMDALL, it can serve them straight from HAIMDALL's public/rendered folder instead. See HTTPS and Reverse Proxy for setting up a web server in front of HAIMDALL.
Warning
A web server that serves the files directly skips HAIMDALL's checks: it would show region-specific articles without choosing the reader's territory, and keep showing pages while your help site is switched off. Send those addresses to HAIMDALL unless you're sure your content doesn't need them.
Static pages use a simple built-in layout with your theme's custom CSS, so they're readable everywhere but don't look exactly like the live help site's pages.