Test Your Changes Locally

    • OUT OF DATE
      +
      This documentation is out of date

      If you’ve never built the site on your device, complete the Install Antora and Get the Site Playbook Project steps first.

      Generating the Site

      1. Open a terminal and switch (cd) to the docs-site folder.

      2. Run Antora with your local playbook:

        docs-site $ antora local-antora-playbook
      3. The cloning progress of each component repository is displayed in the console, followed by any AsciiDoc or Antora warning and error messages.

        1. A warning indicates that a document contains invalid AsciiDoc syntax. Antora will continue to build the site, but pages generated from invalid AsciiDoc will not display correctly.

        2. Errors cause the site build to fail.

      4. If no errors terminate the build, site generation is complete when the command prompt ($) reappears in the terminal.

      5. Antora generated the site into a directory named public. Switch to it.

        docs-site $ cd public
      6. On some operating systems, you can open the site directly from the command line by typing open and the name of an HTML file.

        public $ open index.html

        Or, you can navigate to and open index.html using your file explorer or browser.

      7. Review your changes on the local site.

      8. Make additional edits if needed, and fix any documents that report warnings.

      9. Run Antora again and review your changes in the site.

      When you’re satisfied with your work and fixed any reported errors, it’s time to send your changes upstream for review.

      Since some of the respositories listed in the playbook are private, Antora will look for git credentials to use to connect to those repositories. If Antora fails because it can’t connect to the private repositories, you’re git credentials likely aren’t configured. See git credentials to learn how to configure the git credentials for Antora to use.