GithubHelp home page GithubHelp logo

isabella232 / aem-importer-markdown-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/aem-importer-markdown-maven-plugin

0.0 0.0 0.0 28 KB

AEM Importer for Markdown Maven Plugin

License: Apache License 2.0

Groovy 1.40% Java 98.60%

aem-importer-markdown-maven-plugin's Introduction

AEM Importer for Markdown Maven Plugin

CircleCI

  • Are you using Adobe Experience Manager?
  • Are you using Apache Maven?
  • Do you write (or generate) documentation in Markdown?
  • Would you like to serve your Markdown documentation using AEM?
  • Would you like to integrate the conversion process into your Maven build?

If you've answered all questions with yes, you've come to the right place.

This Maven plugin allows the creation of AEM packages from Markdown files.

Building

$ mvn clean install

Configuring

Add following stuff to your pom.xml

  <build>
    <plugins>
      <plugin>
        <groupId>com.adobe.aem</groupId>
        <artifactId>aem-importer-markdown-maven-plugin</artifactId>
        <version>1.11-SNAPSHOT</version>
        <configuration>
          <root>/content/udp/en/open/source/markdown-aem-maven</root>
          <rootType>udp/components/structure/githubdocumentation</rootType>
          <type>udp/components/structure/githubdocumentation</type>
          <pageTemplate>/apps/udp/templates/importedgithubpage</pageTemplate>
          <rootTemplate>/apps/udp/templates/githubdocumentation</rootTemplate>
          <branches>
            <master>path/to/master/checkout</master>
            <develop>path/to/develop/checkout</develop>
          </branches>
          <pages>
            <page>README.md</page>
            <page>docs*</page>
          </pages>  
        </configuration>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>package</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

Parameters

Parameter Description
root this is the path in AEM where your pages are being created. Make sure not to overwrite important existing content
rootType this is the sling:resourceType of the root page
type this is the sling:resourceType for all imported pages
pageTemplate page template path for the root page
rootTemplate page template path for imported pages
branches key-value pairs of branches and the root path of the local checkout
docs list of patterns of paths or file names that should be imported

Running

$ mvn aem-importer-markdown-maven-plugin:package

Releasing

This project is configured to deploy to Maven Central via Sonatype OSS. If you want to release yourself, first create an account in the Sonatype JIRA and open a new issue, requesting access to the group com.adobe.aem. Please reference trieloff and adobe-bot in your request, so that we can confirm your permission.

In the next step, edit your ~/.m2/settings.xml to include a new <server> section:

<settings>
  <servers>
    <server>
      <id>ossrh</id>
      <username><!-- your Sonatype username --></username>
      <password><!-- your Sonatype password --></password>
    </server>
  </servers>
</settings>

Deploying a Build

To deploy a build, use the pre-configured Maven Release Plugin with following commands:

$ mvn release:clean release:prepare
$ mvn release:perform

Releases can only be performed when you

  • have commit permissions on this repository
  • have access to the Sonatype group

License/Copyright

Copyright 2017 Adobe Systems Incorporated. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

aem-importer-markdown-maven-plugin's People

Contributors

filmaj avatar skius avatar trieloff 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.