GithubHelp home page GithubHelp logo

isabella232 / arc42-archetype-en Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kiwigrid/arc42-archetype-en

0.0 0.0 0.0 566 KB

A maven archetype creating a maven module/project initialized with arc42 document template in english based on "golden master" (https://github.com/arc42/arc42-template).

License: MIT License

arc42-archetype-en's Introduction

What?

This is a Maven Archetype to create a new maven project or module covering a projects architecture documentation.

The archetype will create a ready to go module containing the arc42 template
documents and the module pom.xml creating an html and pdf output.

Why?

Available Archetypes get lack of pdf export or plantuml support.

How?

Build locally

mvn install

Use

mvn archetype:generate \
  -DarchetypeGroupId=com.kiwigrid \
  -DarchetypeArtifactId=arc42-archetype-en \
  -DarchetypeVersion=1.0.0 \
  -DgroupId=org.sample \
  -DartifactId=documentation

The generated module will look like

./documentation
|-- pom.xml
'-- src
    '-- main
        '-- doc
            '-- arc42
                '-- 01
                    '-- ...adoc
                   ...
                 '-- 12
                     '-- ...adoc
                 '-- images
                     '--  logo.png
                 '-- arc42.adoc
                 '-- config.adoc

Content

  • arc42.adoc the main document to render.

  • config.adoc document settings defaults

  • logo.png the default document logo

  • 01 โ€ฆโ€‹ 12 the arc42 template chapter from the "Golden Master" (github)

    • the chapters are organized as sub folder instead on file name prefixes only

  • images the common document images

  • pom.xml covers the build settings with the major settings

<project ... >
    ...
    <name>your project title</name>
    ...
    <build>
        <plugins>
            ... <!--(1)-->
            <plugin>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctor-maven-plugin</artifactId>
                ...
                <configuration>
                    ...
                    <attributes>
                        ...
                        <document-name>your documentation title</document-name> <!--(2)-->
                        <document-logo>logo.png</document-logo> <!--(3)-->
                    </attributes>
                </configuration>
                <executions>
                    <execution>
                        <id>asciidoc-to-html</id>
                        ...
                    </execution>
                    <execution>
                        <id>asciidoc-to-pdf</id>
                        ...
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
  1. copies the image resources

  2. the documentation title is initialized with the project name

  3. the documentation header page logo

arc42-archetype-en's People

Contributors

krasv avatar fafischer 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.