For the complete documentation index, see llms.txt
Skip to main content

Feedback widget for Antora

Add PushFeedback to your Antora site.

Prerequisites​

  • A PushFeedback project. Copy its project ID from Projects > your project > Snippet and replace <YOUR_PROJECT_ID> in the examples.
  • An Antora project.

Examples use pushfeedback 0.1.87. Choose one installation mode.

The examples extend the Antora Default UI with supplemental UI files. Keep your existing UI bundle.

Installation​

Floating button​

Example page with a floating Feedback button on the right edge

  1. Add supplemental_files under your existing playbook ui configuration:

    ui:
    supplemental_files: ./supplemental-ui
  2. Copy partials/head-scripts.hbs from your UI bundle to supplemental-ui/partials/head-scripts.hbs. Keep its contents and append:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.esm.js"></script>
  3. Copy partials/footer-content.hbs from the bundle to supplemental-ui/partials/footer-content.hbs. Keep the existing footer and append:

    <feedback-button project="<YOUR_PROJECT_ID>" button-position="bottom-right" modal-position="bottom-right" button-style="dark">Feedback</feedback-button>

Inline button​

Feedback button placed within page content

  1. Add supplemental_files under your existing playbook ui configuration:

    ui:
    supplemental_files: ./supplemental-ui
  2. Copy partials/head-scripts.hbs from your UI bundle to supplemental-ui/partials/head-scripts.hbs. Keep its contents and append:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.esm.js"></script>
  3. Copy partials/footer-content.hbs from the bundle to supplemental-ui/partials/footer-content.hbs. Keep the existing footer and append:

    <feedback-button project="<YOUR_PROJECT_ID>" button-position="default" modal-position="center" button-style="dark">Feedback</feedback-button>

Embedded form​

Feedback form embedded directly in a page

  1. Add supplemental_files under your existing playbook ui configuration:

    ui:
    supplemental_files: ./supplemental-ui
  2. Copy partials/head-scripts.hbs from your UI bundle to supplemental-ui/partials/head-scripts.hbs. Keep its contents and append:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.esm.js"></script>
  3. Copy partials/footer-content.hbs from the bundle to supplemental-ui/partials/footer-content.hbs. Keep the existing footer and append:

    <feedback-modal project="<YOUR_PROJECT_ID>" embedded="true"></feedback-modal>

Like and dislike buttons​

Inline Helpful and Not helpful rating buttons

  1. Add supplemental_files under your existing playbook ui configuration:

    ui:
    supplemental_files: ./supplemental-ui
  2. Copy partials/head-scripts.hbs from your UI bundle to supplemental-ui/partials/head-scripts.hbs. Keep its contents and append:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pushfeedback/pushfeedback.esm.js"></script>
  3. Copy partials/footer-content.hbs from the bundle to supplemental-ui/partials/footer-content.hbs. Keep the existing footer and append:

    <p>Was this helpful?</p>
    <div class="pushfeedback-thumbs-row">
    <feedback-button project="<YOUR_PROJECT_ID>" rating="1" button-position="default" modal-position="center" button-style="light" custom-font="true">
    Helpful
    </feedback-button>
    <feedback-button project="<YOUR_PROJECT_ID>" rating="0" button-position="default" modal-position="center" button-style="light" custom-font="true">
    Not helpful
    </feedback-button>
    </div>

Verify the installation​

Run your Antora build command, such as npx antora antora-playbook.yml. Open your site and send a test message. Confirm it appears in your PushFeedback project. Check allowed URLs if submission fails.

Next steps​

See Layout, Styles, and Text for widget options.