Giter Site home page Giter Site logo

antora-site-action's Introduction

Antora Site GitHub Action

GitHub action that can be used to generate the Antora site.

It supports as opt-in the Lunr index generator for documentation search.

Parameters

The action accepts the following parameters:

  • antora_playbook — that specifies the Antora playbook path within the repository

  • site_sources_path — the path within $GITHUB_WORKSPACE from where to run the site generation

  • antora_generator — Select antora generator for site

  • antora_docsearch_enabled — Flag for enabling antora docsearch

  • antora_docsearch_index_version — Select the document version to be indexed

How to add to your action

name: "Generate site using antora site action"
uses: kameshsampath/[email protected]
with:
    antora_playbook: antora-playbook.yml
    # optional path within the repo, defaults to ${{github.workspace}}
    site_sources_path: 'site-sources-folder'

A complete example is available here.

How to add to your action for Lunr documentation search index

name: "Generate site and doc search index using antora site action"
uses: kameshsampath/[email protected]
with:
    antora_playbook: antora-playbook.yml
    # optional path within the repo, defaults to ${{github.workspace}}
    site_sources_path: 'site-sources-folder'
    antora_generator: 'antora-site-generator-lunr'
    antora_docsearch_enabled: 'true'

A complete example using Lunr is available here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.