Git Product home page Git Product logo

tran62 / antora-default-ui-hugo-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from basil/antora-default-ui-hugo-theme

0.0 0.0 0.0 273 KB

A Hugo theme based on the Antora default UI, with full support for Asciidoctor

Home Page: https://antora-default-ui-hugo-theme.netlify.app

License: Mozilla Public License 2.0

Makefile 0.11% CSS 57.75% JavaScript 20.45% HTML 21.63% Ruby 0.07%

antora-default-ui-hugo-theme's Introduction

Antora Default UI Hugo Theme

GitHub contributors GitHub stars GitHub forks MPL 2.0 License

A Hugo theme based on the Antora default UI, with full support for Asciidoctor. (Demo)

Screenshot

screenshot

Prerequisites

Before starting, ensure that you have installed Hugo and created a new site.

Also ensure that you have installed Asciidoctor.

Installation

Clone the theme repository from GitHub into your site's themes directory:

$ git clone https://github.com/basil/antora-default-ui-hugo-theme.git themes/antora-default-ui-hugo-theme

Alternatively, add the theme as a Git submodule:

$ git submodule add https://github.com/basil/antora-default-ui-hugo-theme.git themes/antora-default-ui-hugo-theme

Then, add the theme to your site's configuration file (config.toml):

theme = "antora-default-ui-hugo-theme"

For more information, consult the Hugo documentation.

Configuration

Configure the Asciidoctor attributes in your site's configuration file (config.toml) for use with this theme:

[markup]
  [markup.asciidocext]
    [markup.asciidocext.attributes]
      "icons" = "font"
      "source-highlighter" = "highlightjs"
  [markup.highlight]
    # Disable Goldmark Chroma syntax highlighter
    codeFences = false

Optionally, configure a description and keywords for the home page:

[params]
  description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
  keywords = ["foo", "bar"]

Optionally, configure a copyright message and year for the footer:

copyright = "<name>. All rights reserved."

[params]
  since = <year>

Optionally, configure a URL for use with the Edit this page feature:

[params]
  editThisPage = "https://github.com/organization/repository/edit/master/content/"

Customization

Custom CSS can be added to assets/css/custom.css.

Syntax Highlighting

This theme uses highlight.js for syntax highlighting. The version of highlight.js shipped in this theme supports all of the highlight.js common languages and AsciiDoc. To add support for additional languages, download a custom package with the desired languages and place it in assets/js/vendor/highlight.pack.js.

License

Released under the Mozilla Public License, Version 2.0 (MPL-2.0).

Acknowledgements

antora-default-ui-hugo-theme's People

Contributors

basil avatar

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.