/ Search

Search Epistola

Find documentation, integration guides, tour steps, blog posts and pages.

DocsIntegrationsTourBlogPage
↑↓↵esc

Publish a template

Publish the catalog's Next release as a numbered release, and deploy it to an environment if you use them.

In Epistola 2.0 you do not publish one template. You publish the catalog it is in. Publishing turns everything in the catalog’s Next release into a release with a number. Applications generate their documents from releases. How this fits together is in From template to document.

Before you begin

You need Content Publisher access to the tenant. If changes still need to be checked, you also need Content Author access (see step 4).

Review the changes together with the document owner. Follow Review a template for this. Keep the examples you agreed on.

Publishing includes every change in the Next release, including changes by other people and in other templates. Check that all of it is ready.

Publish the Next release

  1. Open the catalog, or any template in it.
  2. If you edited a layout, wait until the editor has saved, then go back to the template.
  3. In the bar at the top, choose Publish…. The dialog Publish catalog name opens.
  4. Read What changes. It lists every added, changed and removed resource. Publishing checks each change and marks it ready. For that step you need Content Author access.
  5. Read the proposed version number. A correction raises the last digit, an addition the middle digit, and a breaking change the first digit. A breaking change also shows This can break what is connected to it, with the reason. Agree such a change with the owner of the connected system first.
  6. Optionally, write a note under What changed, in your words.
  7. Leave Deploy to unticked if you do not use environments. See the next section if you do.
  8. Choose Publish.

Expected result: the bar says Everything is published. The new release is listed under Releases in the catalog’s side nav. A request that names no environment and no version gets the highest release (the highest version number). That is this release, unless the catalog already has a release with a higher number, for example after a fix to an older line. Tell the owner of the connected system the release number and what changed.

Under Advanced you can raise the version number, for example to mark a big change.

If Publish… is missing, or the dialog says This cannot be published yet, follow Fix publishing problems.

What a release keeps

A release does not change after you publish it. It keeps its own copy of what it holds:

  • the templates, their variants and data contracts
  • the themes, stencils, fonts and images they use
  • the rendering defaults it was published with
  • the exact releases of other catalogs it uses

If you later change a theme or stencil, or delete an image, the release still renders as before. To change a published template, you publish a new release. See Update a published template.

Deploy to an environment (optional)

Some organisations use environments, such as Test and Production, to control which release an application gets. If an application names an environment, it gets only the releases deployed there. Deploying needs Content Publisher access.

You can deploy in three places:

  • In the publish dialog, tick the environments under Deploy to before you choose Publish.
  • In the catalog, open Deployments in the side nav. Under the environment, pick the release in Deploy a release and choose Deploy.
  • Open Environments from the tenant menu, open the environment, and use Deploy a release there.

The release is deployed beside the releases the environment already serves. A request without a version gets the highest release there; the environment page marks it Latest here. Requests that ask for an older version keep getting it.

To check what an application gets, open the environment and use Try a document. Pick the template and choose Make a PDF. It renders the deployed release with the template’s first example.

A test environment can also follow your unpublished work. Open the menu on Next release in the bar and choose Try it on an environment…. The environment then uses your work as you save it, with the preview watermark. A production environment cannot follow unpublished work.

To roll back, choose Undeploy next to the newer release. The environment serves the previous release again. The release itself still exists under Releases. The environment page keeps a history of every deploy and undeploy.

The training course Releases in practice goes through this step by step.

Hand work to a publisher

An author who cannot publish can still prepare the changes and choose Mark ready on each variant. Then give the publisher:

  • the tenant and the catalog
  • the templates and variants you changed, and why
  • the examples you reviewed

The publisher checks the list under What changes before publishing.

Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →