Giter VIP home page Giter VIP logo

aries-antora-ui's Introduction

aries-antora-ui ui bundle extension

Warning
This repository contains files derived from the Antora Default UI, which is MPL2.0 licensed. Therefore, the contents of this repository must NOT be included in an Apache release. See link:

Description

This ui bundle extension creates the UI bundle for Apache Aries.

Instructions for Aries site maintenance

The Aries Antora website build uses the packed UI bundle built from these sources. For the production build, this packed UI bundle must be available from the git repo accessed as a noe module.

Production

After you are satisfied with your local changes, run gulp and commit your changes and the modified build/aries-antora-ui-bundle.zip, and push to GitHub (or GitBox). Aries website builds will now use the modifed UI.

Local development

After making changes, run gulp;yarn pack. This will pack the UI bundle, including both sources and the build bundle, into a .tgz of a node module. Modify the package.json file in aries-antora so the "@apache-aries/aries-antora-ui" devDependency points to this file. For instance, on my system, this looks like this:

    "@apache-aries/aries-antora-ui": "file:///Users/david/projects/aries/aries-antora-ui/apache-aries-aries-antora-ui-v0.0.1.tgz"

Running npm run clean-build will now build the site with the locally modified UI bundle.

Converting this project to avoid usin @djencks/antora-ui-builder

TODO: expand this

For convenience, this project is initially set up to use @djencks/antora-ui-builder to extend the Antora default UI. If this is determined to be undesirable, it should be easy to turn this into a modified clone of the Antora default UI:

  • rename master to something else, such as builder.

  • Set the Antora Default UI as a remote.

  • Pull master from the Antora Default UI.

  • Copy the files from the builder branch, src, over the src directory on master.

Generic Usage

To build a ui bundle based on the antora-ui-default sources with the additions from this extension, run gulp.

To combine the UI elements from this extension with other elements, using @djencks/antora-ui-builder, include in your antora-ui.yml a clause such as:

---
sources:
  - path: antora-ui-default #replace or extend as needed
  - path: @djencks/aries-antora-ui
---

Set up your UI project as a ui builder project and include in the package.json

---
{
  "name": "...",
  "version": "...",
  "description": "...",
  "main": "gulpfile.js",
  "files": [
    "src/**/*",
    "build/**/*"
  ],
  "devDependencies": {
    "@djencks/antora-ui-builder": "https://experimental-repo.s3-us-west-1.amazonaws.com/djencks-antora-ui-builder-v0.0.1.tgz",
    "antora-ui-default": "git+https://gitlab.com/djencks/antora-ui-default.git#issue-126-requireable",
    "@djencks/aries-antora-ui": "https://experimental-repo.s3-us-west-1.amazonaws.com/djencks-aries-antora-ui-v0.0.1.tgz"
  }
}
---

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.